Function at 0x449530
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x644
xor eax, eax
mov dword [0x77d760], eax
mov dword [0x776d18], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
push edi
push 0x77d938
lea eax, [esp + 0x158]
push str.levels_s.prm
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x154]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x449781
test byte [esp + 0x14], 0x10
jne 0x449605
cmp dword [0x77d760], 0x40
jge 0x449605
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
test ecx, ecx
jle 0x4495ce
movsx eax, byte [esp + esi + 0x40]
push eax
call fcn.004a57fe
mov byte [esp + esi + 0x44], al
add esp, 4
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
cmp esi, ecx
jl 0x4495a7
mov eax, dword [0x77d760]
mov byte [esp + esi + 0x40], 0
mov ecx, eax
shl ecx, 4
inc eax
lea edx, [esp + ecx + 0x254]
mov ecx, dword [esp + 0x40]
mov dword [0x77d760], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x449581
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x77d760]
xor esi, esi
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
shl eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [0x776d18], eax
jne 0x449666
push esi
push str.Cant_alloc_memory_for_instance_models_
push str.ERROR
call fcn.00452f30
add esp, 0xc
mov byte [0x785074], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x644
ret
mov ecx, dword [0x77d760]
mov dword [esp + 0x10], esi
cmp ecx, esi
jle 0x449781
lea edi, [esp + 0x254]
jmp 0x449686
mov eax, dword [0x776d18]
mov edx, edi
lea ecx, [esi + eax + 4]
push edi
push 0x77d938
mov eax, dword [edx]
push str.levels_s_s.prm
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dl, byte [edx + 8]
mov byte [ecx + 8], dl
mov eax, dword [0x776d18]
lea ecx, [esp + 0x160]
push ecx
mov byte [esi + eax + 0xc], 0
call ebx
mov edx, dword [0x77da8c]
mov eax, dword [0x776d18]
push edx
push 2
push 5
lea ecx, [esi + eax + 0x10]
push 0
lea edx, [esp + 0x174]
push ecx
push edx
call fcn.00460200
mov ecx, dword [0x776d18]
push edi
push 0x77d938
lea edx, [esp + 0x184]
push str.levels_s_s.ncp
push edx
mov dword [esi + ecx], eax
call ebx
lea eax, [esp + 0x18c]
push 0x4b3d20
push eax
call fcn.00452340
mov ebp, eax
xor eax, eax
add esp, 0x40
cmp ebp, eax
je 0x449746
mov ecx, dword [0x776d18]
lea edx, [esi + ecx + 0x140]
push edx
push ebp
call fcn.0046b240
mov ecx, dword [0x776d18]
push ebp
mov dword [esi + ecx + 0x13c], eax
call fcn.004a4e34
add esp, 0xc
jmp 0x449761
mov edx, dword [0x776d18]
mov dword [esi + edx + 0x13c], eax
mov ecx, dword [0x776d18]
mov word [esi + ecx + 0x140], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [0x77d760]
inc eax
add edi, 0x10
add esi, 0x144
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x449681
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x644
ret