Function at 0x405580
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468e51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [0x495f14]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x180]
test eax, eax
push ebp
push esi
mov esi, dword [esp + 0x180]
mov dword [esp + 8], eax
je 0x4055c7
mov dword [eax], 0
mov ebp, dword [esp + 0x184]
test ebp, ebp
je 0x4058c1
test esi, esi
je 0x4058c1
push ebx
push edi
lea edi, [ebp + 2]
push edi
mov dword [esp + 0x2c], edi
call fcn.00451e9e
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.004049f0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov dword [esp + 0x180], 0
jne 0x405661
mov esi, dword [esp + 0x10]
test esi, esi
je 0x405621
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040bb40
mov eax, 5
pop edi
pop ebx
mov ecx, dword [esp + 0x170]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x168]
pop ebp
xor ecx, esp
call fcn.00453275
add esp, 0x174
ret
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4056c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4056c9
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4056ab
mov dword [ecx], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040bb40
mov eax, 0x13
jmp 0x40563a
push ebx
call fcn.00439e10
push ebx
call fcn.0043a390
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x405897
add ebp, 0xa
push ebp
call fcn.00451e9e
add esp, 4
push eax
lea ecx, [esp + 0x30]
call fcn.00405110
mov ebp, dword [esp + 0x2c]
mov edx, ebp
mov byte [esp + 0x180], 1
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405710
push 0x5c
push ebp
call fcn.00454360
add esp, 8
test eax, eax
je 0x405745
mov cl, byte [eax + 1]
test cl, cl
jne 0x405745
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405733
mov ecx, dword [0x46f64c]
mov dword [edi], ecx
jmp 0x405760
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405748
mov edx, dword [str..]
mov dword [edi], edx
mov al, byte [0x46f648]
mov byte [edi + 4], al
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
je 0x405882
jmp 0x405780
test byte [esp + 0x34], 0x10
jne 0x405856
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405792
sub eax, edx
mov edx, dword [esp + 0x28]
add edx, eax
push edx
call fcn.00451e9e
add esp, 4
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.004049f0
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
mov byte [esp + 0x180], 2
mov eax, ebx
sub ecx, ebx
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4057d0
push 0x5c
push ebp
call fcn.00454360
add esp, 8
test eax, eax
je 0x4057f0
mov cl, byte [eax + 1]
test cl, cl
je 0x405804
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4057f3
mov ax, word [0x46f640]
mov word [edi], ax
lea eax, [esp + 0x60]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405810
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405820
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00439e10
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 1
call fcn.0040bb40
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405780
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0043a390
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 0
call fcn.0040bb40
test esi, esi
je 0x4058a6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4058a1
mov dword [eax], esi
mov esi, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040bb40
mov eax, esi
jmp 0x40563a
mov eax, 3
jmp 0x40563c