Function at 0x40f810
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x54997c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x5b5ecc]
push edi
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x168]
lea edx, [esp + 8]
push ecx
push 0x599914
push edx
mov dword [esp + 0x16c], 0
call fcn.0053091a
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x40f880
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fa55
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40fa4e
push ebp
mov ebp, dword [esp + 0x170]
push esi
mov eax, dword [0x5b5ecc]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x170]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x598a7c
push eax
mov byte [esp + 0x178], 1
call fcn.0053091a
mov ecx, dword [esp + 0x30]
add esp, 0x10
and ecx, 0x10
cmp cl, 0x10
je 0x40f96d
lea edx, [esp + 0x4c]
push str.idmmzcc.dll
push edx
call fcn.00524fd0
add esp, 8
test eax, eax
jne 0x40fa27
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebp
call esi
test eax, eax
jne 0x40fa27
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push str._s
push eax
mov byte [esp + 0x174], 2
call fcn.0053091a
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
push ebp
call esi
test eax, eax
je 0x40f957
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0040f5a0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 1
call fcn.00537b04
jmp 0x40fa27
mov esi, 0x5998fc
lea eax, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40f99a
test cl, cl
je 0x40f996
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40f99a
add eax, 2
add esi, 2
test cl, cl
jne 0x40f976
xor eax, eax
jmp 0x40f99f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fa27
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0x5998f8
push edx
mov byte [esp + 0x174], 3
call fcn.0053091a
mov edi, dword [esp + 0x24]
mov esi, dword [0x5ba8a4]
add esp, 0xc
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40f9ff
test cl, cl
je 0x40f9fb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40f9ff
add eax, 2
add esi, 2
test cl, cl
jne 0x40f9db
xor eax, eax
jmp 0x40fa04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fa12
push ebp
push edi
call fcn.0040f810
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.00537b04
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov byte [esp + 0x168], 0
call fcn.00537b04
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f89d
pop esi
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x158]
pop edi
mov dword fs:[0], ecx
add esp, 0x160
ret