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

Disassembly:
push 0xffffffffffffffff
push 0x5830ec
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x164], eax
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [esp + 0x190]
mov edi, dword [esp + 0x188]
mov esi, dword [esp + 0x18c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4071ed
mov dword [eax], 0
test esi, esi
je 0x4074dc
test edi, edi
je 0x4074dc
lea ebp, [esi + 2]
push ebp
mov dword [esp + 0x34], ebp
call fcn.0040d00e
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x190], 0
call fcn.00406760
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x180], 1
test eax, eax
jne 0x407275
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.00405bc0
mov eax, 5
jmp 0x4074e1
push ebp
push 0
push eax
call fcn.004fc2f0
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.004fbf80
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4072d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4072d3
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4072b5
mov dword [ecx], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.00405bc0
mov eax, 0x13
jmp 0x4074e1
mov edx, dword [esp + 0x10]
push edx
call fcn.0054cfe0
mov eax, dword [esp + 0x14]
push eax
call fcn.0054e1f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4074b5
add esi, 0xa
push esi
call fcn.0040d00e
add esp, 4
push eax
lea ecx, [esp + 0x28]
call fcn.00406d90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov byte [esp + 0x180], 2
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407320
mov ecx, dword [esp + 0x24]
push 0x5c
push ecx
call fcn.004fd050
add esp, 8
test eax, eax
je 0x40735a
cmp byte [eax + 1], 0
jne 0x40735a
mov edi, dword [esp + 0x24]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407348
mov edx, dword [0x5ac658]
mov dword [edi], edx
jmp 0x407379
mov eax, dword [esp + 0x24]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407360
mov ecx, dword [str..]
mov dword [eax], ecx
mov dl, byte [0x5ac654]
mov byte [eax + 4], dl
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0xffffffff
je 0x40749c
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, edi
test byte [esp + 0x34], 0x10
jne 0x407470
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073b2
sub eax, edx
add eax, dword [esp + 0x30]
push eax
call fcn.0040d00e
add esp, 4
push eax
lea ecx, [esp + 0x20]
call fcn.00406d90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x180], 3
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4073e2
mov eax, dword [esp + 0x1c]
push 0x5c
push eax
call fcn.004fd050
add esp, 8
test eax, eax
je 0x407405
cmp byte [eax + 1], 0
je 0x407422
mov edi, dword [esp + 0x1c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407410
mov cx, word [0x5ac64c]
mov word [edi], cx
lea eax, [esp + 0x60]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407428
mov edi, dword [esp + 0x1c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407436
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0054cfe0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 2
call fcn.00405bc0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push esi
call ebp
test eax, eax
jne 0x4073a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0054e1f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 1
call fcn.00405bc0
test ebp, ebp
jne 0x4074b5
xor esi, esi
jmp 0x4074c4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4074bf
mov dword [eax], ebp
mov esi, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.00405bc0
mov eax, esi
jmp 0x4074e1
mov eax, 3
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x174
ret