Function at 0x407020
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.DLL_strstr]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x264]
push 0x4ed4cc
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40705e
lea edx, [esp + 0x15c]
mov edi, 0x4ed4d0
jmp 0x4070bb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [esp + 0x10], edx
cmp byte [edx + esi], 0x5c
je 0x407083
mov al, byte [edx + esi - 1]
dec edx
cmp al, 0x5c
jne 0x407076
mov dword [esp + 0x10], edx
lea eax, [esp + 0x15c]
mov edi, esi
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + edx + 0x15d]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4ed4d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
test byte [esp + 0x1c], 0x10
jne 0x407187
lea eax, [esp + 0x48]
push str..ogf
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea ecx, [esp + 0x48]
push str..object
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea edx, [esp + 0x48]
push str..msh
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea eax, [esp + 0x48]
push str..dds
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea ecx, [esp + 0x48]
push str..model
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea edx, [esp + 0x48]
push str..mesh
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40717d
lea eax, [esp + 0x48]
push str..ds2md
push eax
call ebp
add esp, 8
test eax, eax
je 0x407187
cmp ebx, dword [esp + 0x260]
je 0x4071b0
inc ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test al, al
jne 0x4070ed
dec ebx
mov dword [esp + 0x260], ebx
mov dword [0x4f7f50], ebx
xor ebx, ebx
jmp 0x4070d8
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x48]
test eax, eax
lea edx, [esp + eax + 0x15d]
jne 0x4071e3
lea edx, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x160]
push ecx
call fcn.0040a760
add esp, 8
mov dword [0x4f7c64], eax
test eax, eax
jne 0x40723e
mov ecx, dword [0x4f7f50]
mov eax, dword [esp + 0x260]
inc ecx
inc eax
mov dword [0x4f7f50], ecx
mov dword [esp + 0x260], eax
xor ebx, ebx
jmp 0x40703a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret 8