Function at 0x4050e0
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 0x45f1d4
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40511e
lea edx, [esp + 0x15c]
mov edi, 0x45f1d8
jmp 0x40517b
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 0x405143
mov al, byte [edx + esi - 1]
dec edx
cmp al, 0x5c
jne 0x405136
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, 0x45f1dc
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 0x405247
lea eax, [esp + 0x48]
push str..ogf
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea ecx, [esp + 0x48]
push str..object
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea edx, [esp + 0x48]
push str..msh
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea eax, [esp + 0x48]
push str..dds
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea ecx, [esp + 0x48]
push str..model
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea edx, [esp + 0x48]
push str..mesh
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40523d
lea eax, [esp + 0x48]
push str..ds2md
push eax
call ebp
add esp, 8
test eax, eax
je 0x405247
cmp ebx, dword [esp + 0x260]
je 0x405270
inc ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test al, al
jne 0x4051ad
dec ebx
mov dword [esp + 0x260], ebx
mov dword [0x463ea4], ebx
xor ebx, ebx
jmp 0x405198
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 0x4052a3
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.00408b20
add esp, 8
mov dword [0x463c84], eax
test eax, eax
jne 0x4052fe
mov ecx, dword [0x463ea4]
mov eax, dword [esp + 0x260]
inc ecx
inc eax
mov dword [0x463ea4], ecx
mov dword [esp + 0x260], eax
xor ebx, ebx
jmp 0x4050fa
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