Function at 0x40f7d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4654ca
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
mov eax, dword [esp + 0x380]
mov esi, dword [esp + 0x384]
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp eax, ebp
je 0x40fe66
cmp byte [eax], 0
je 0x40fe66
cmp esi, ebp
je 0x40fe66
cmp byte [esi], 0
je 0x40fe66
push eax
lea ecx, [esp + 0x214]
call fcn.00408210
push esi
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x37c], ebp
call fcn.00408210
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x214]
mov byte [esp + 0x37c], 1
call fcn.0040c060
mov ecx, eax
call fcn.0040bf80
cmp byte [eax], 0x5c
je 0x40f897
push 0x5c
push 1
lea ecx, [esp + 0x218]
call fcn.00401d60
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1f8]
call fcn.0040c060
mov ecx, eax
call fcn.0040bf80
cmp byte [eax], 0x5c
je 0x40f8c4
push 0x5c
push 1
lea ecx, [esp + 0x1fc]
call fcn.00401d60
mov eax, dword [esp + 0x1f8]
mov edi, 0x10
cmp dword [esp + 0x20c], edi
jae 0x40f8e0
lea eax, [esp + 0x1f8]
push eax
call fcn.0040f2f0
add esp, 4
test eax, eax
jne 0x40f9a3
push 1
push 2
lea ecx, [esp + 0x60]
call fcn.00407d10
mov byte [esp + 0x378], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:
lea edx, [esp + 0x1fc]
push edx
lea eax, [esp + 0x64]
push str.CreateDirectory:
push eax
call fcn.004052a0
add esp, 8
push eax
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004048a0
mov byte [esp + 0x378], 3
cmp dword [eax + 0x18], edi
jb 0x40f965
mov eax, dword [eax + 4]
jmp 0x40f968
add eax, 4
push eax
push str.BaseLib::CDirectoryCopy::Copy
push 0x3bb
push str..common_function.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
lea ecx, [esp + 0x20]
call fcn.00408840
lea ecx, [esp + 0x58]
mov byte [esp + 0x378], 1
call fcn.004055a0
push 1
push 2
lea ecx, [esp + 0x17c]
call fcn.00407d10
push 0x46ab24
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x17c]
push eax
mov byte [esp + 0x384], 4
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x178]
call fcn.004048a0
cmp dword [eax + 0x18], edi
jb 0x40f9ff
mov eax, dword [eax + 4]
jmp 0x40fa02
add eax, 4
lea edx, [esp + 0x22c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x158]
mov dword [esp + 0x18], esi
call fcn.00408840
cmp esi, 0xffffffff
jne 0x40fa60
lea ecx, [esp + 0x174]
mov byte [esp + 0x378], 1
call fcn.004055a0
lea ecx, [esp + 0x1f4]
call fcn.00408840
lea ecx, [esp + 0x210]
call fcn.00408840
mov eax, 1
jmp 0x40fe69
push 1
push 2
lea ecx, [esp + 0xe0]
call fcn.00407d10
push 1
push 2
lea ecx, [esp + 0x60]
mov byte [esp + 0x380], 5
call fcn.00407d10
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0xe0]
push edx
mov byte [esp + 0x384], 6
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x1f8]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
mov eax, dword [esp + 0x234]
and eax, edi
add esp, 8
cmp al, 0x10
jne 0x40fc9d
cmp byte [esp + 0x258], 0x2e
jne 0x40fb54
lea ecx, [esp + 0xa4]
mov byte [esp + 0x378], 5
call fcn.00405530
lea ecx, [esp + 0xa4]
mov ebx, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xa8], ebx
call fcn.004563aa
add esp, 4
lea ecx, [esp + 0x124]
mov byte [esp + 0x378], 4
call fcn.00405530
lea edx, [esp + 0x124]
push edx
mov dword [esp + 0x128], ebx
call fcn.004563aa
jmp 0x40fe40
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.004048a0
mov esi, eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x37c], 7
call fcn.004048a0
mov byte [esp + 0x378], 8
cmp dword [esi + 0x18], edi
jb 0x40fb8f
mov esi, dword [esi + 4]
jmp 0x40fb92
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x40fb9c
mov eax, dword [eax + 4]
jmp 0x40fb9f
add eax, 4
mov ecx, dword [esp + 0x14]
push esi
push eax
call fcn.0040f7d0
test eax, eax
lea ecx, [esp + 0x20]
setl bl
call fcn.00408840
lea ecx, [esp + 0x3c]
mov byte [esp + 0x378], 6
call fcn.00408840
test bl, bl
je 0x40fde4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.004048a0
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x37c], 9
call fcn.004048a0
mov byte [esp + 0x378], 0xa
cmp dword [esi + 0x18], edi
jb 0x40fc0c
mov esi, dword [esi + 4]
jmp 0x40fc0f
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x40fc19
mov eax, dword [eax + 4]
jmp 0x40fc1c
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00408840
lea ecx, [esp + 0x3c]
call fcn.00408840
test ebp, ebp
jge 0x40fde4
lea ecx, [esp + 0x58]
mov byte [esp + 0x378], 5
call fcn.004055a0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x378], 4
call fcn.004055a0
lea ecx, [esp + 0x174]
mov byte [esp + 0x378], 1
call fcn.004055a0
lea ecx, [esp + 0x1f4]
call fcn.00408840
lea ecx, [esp + 0x210]
call fcn.00408840
mov eax, ebp
jmp 0x40fe69
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004048a0
mov esi, eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x37c], 0xb
call fcn.004048a0
cmp dword [esi + 0x18], edi
jb 0x40fcd0
mov esi, dword [esi + 4]
jmp 0x40fcd3
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x40fcdd
mov eax, dword [eax + 4]
jmp 0x40fce0
add eax, 4
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
sete bl
cmp dword [esp + 0x54], edi
jb 0x40fd02
mov eax, dword [esp + 0x40]
push eax
call fcn.0041f6a2
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x378], 6
cmp dword [esp + 0x38], edi
jb 0x40fd32
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041f6a2
add esp, 4
test bl, bl
je 0x40fdac
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.004048a0
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x37c], 0xc
call fcn.004048a0
mov byte [esp + 0x378], 0xd
cmp dword [esi + 0x18], edi
jb 0x40fd71
mov esi, dword [esi + 4]
jmp 0x40fd74
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x40fd7e
mov eax, dword [eax + 4]
jmp 0x40fd81
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00408840
lea ecx, [esp + 0x3c]
call fcn.00408840
test ebp, ebp
jl 0x40fc45
jmp 0x40fde4
mov ecx, dword [esp + 0x14]
test byte [ecx + 4], 1
je 0x40fde4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xdc]
call fcn.004048a0
cmp dword [eax + 0x18], edi
jb 0x40fdd1
mov eax, dword [eax + 4]
jmp 0x40fdd4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call fcn.00408840
lea ecx, [esp + 0xa4]
mov byte [esp + 0x378], 5
call fcn.00405530
lea eax, [esp + 0xa4]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0xa8], esi
call fcn.004563aa
add esp, 4
lea ecx, [esp + 0x124]
mov byte [esp + 0x378], 4
call fcn.00405530
lea ecx, [esp + 0x124]
push ecx
mov dword [esp + 0x128], esi
call fcn.004563aa
mov esi, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x22c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fa60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40fc6a
or eax, 0xffffffff
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x368
ret 8