Function at 0x4332a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x474630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x304], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c660
push 0xc
push str.dataMAPS
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.0040cb40
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2ec], eax
cmp eax, 0xffffffff
jne 0x433360
push str.Terrain::LoadObjects
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_FindFirstFile_on_world_load_
call fcn.00405f50
add esp, 8
mov byte [ebp - 0x2e1], 0
jmp 0x433aa7
test byte [ebp - 0x1e0], 0x10
jne 0x433a5a
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x44], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433390
sub ecx, edx
lea eax, [ebp - 0x1b4]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401580
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
mov edi, dword [ebp - 0x48]
cmovae esi, dword [ebp - 0x58]
setae byte [ebp - 0x2e1]
mov byte [ebp - 4], 1
test edi, edi
je 0x433418
push pe_nt_image_headers32
lea eax, [ebp - 0x2e0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or ecx, 0xffffffff
mov byte [ebp - 0x2b2], 1
lea eax, [edi - 1]
add esp, 0xc
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + esi]
add ecx, esi
mov al, byte [ebp + eax - 0x2e0]
test al, al
jne 0x433414
nop
cmp ecx, esi
je 0x433418
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x2e0]
test al, al
je 0x433400
sub ecx, esi
jmp 0x43341b
or ecx, 0xffffffff
lea edx, [ecx + 1]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
cmp edi, edx
jb 0x433b0b
sub edi, edx
lea eax, [ebp - 0x58]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp byte [ebp - 0x2e1], 0
push ecx
cmovne eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x88]
add eax, edx
push eax
call fcn.00401580
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x43349a
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x433490
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
movups xmm1, xmmword [ebp - 0x88]
lea ecx, [ebp - 0x58]
mov eax, 3
movq xmm0, qword [ebp - 0x78]
mov edx, 0x450aac
movq qword [ebp - 0x48], xmm0
cmp dword [ebp - 0x44], 0x10
mov esi, dword [ebp - 0x48]
movd edi, xmm1
movups xmmword [ebp - 0x58], xmm1
cmovae ecx, edi
cmp esi, 3
cmova esi, eax
sub esi, 4
jb 0x4334e6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4334eb
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4334d5
cmp esi, 0xfffffffc
je 0x43351f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x433518
cmp esi, 0xfffffffd
je 0x43351f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x433518
cmp esi, 0xfffffffe
je 0x43351f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x433518
cmp esi, 0xffffffff
je 0x43351f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x43351f
sbb eax, eax
or eax, 1
jmp 0x433521
xor eax, eax
mov esi, 3
test eax, eax
jne 0x433a1d
mov eax, dword [ebp - 0x48]
cmp eax, esi
jae 0x43353a
or eax, 0xffffffff
jmp 0x433540
cmp esi, eax
sbb eax, eax
neg eax
test eax, eax
jne 0x433a1d
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433560
sub ecx, edx
lea eax, [ebp - 0x1b4]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 2
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
lea ecx, [eax - 1]
mov dword [ebp - 0x74], 0
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00401580
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 2
jb 0x433b0b
add eax, 0xfffffffe
mov ecx, esi
cmp eax, 3
cmovb ecx, eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
add eax, 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00401580
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x2f4], eax
cmp ecx, 0x10
jb 0x43365d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x433653
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 6
jb 0x433b0b
add eax, 0xfffffffa
mov ecx, 3
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
add eax, 6
lea ecx, [ebp - 0x28]
push eax
call fcn.00401580
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x2f0], eax
cmp ecx, 0x10
jb 0x4336ee
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4336e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x78]
cmovae eax, ecx
setae byte [ebp - 0x2e2]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2e8], eax
cmp edi, 0x7fffffff
ja 0x433b06
cmp edi, 0x10
jae 0x433750
movups xmm0, xmmword [eax]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 0xf
movups xmmword [ebp - 0x70], xmm0
jmp 0x433797
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x433764
mov esi, 0x7fffffff
jmp 0x43376f
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040cae0
lea ecx, [edi + 1]
mov dword [ebp - 0x70], eax
push ecx
push dword [ebp - 0x2e8]
mov dword [ebp - 0x60], edi
push eax
mov dword [ebp - 0x5c], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.0040cb40
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x2f0]
push dword [ebp - 0x2f4]
push str.Terrain::LoadObjects
push str.FUNC:__s____MSG:_Terrain:_Loading_OPL__d____d_:__s
call fcn.00405f50
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x70]
mov edi, dword [ebp - 0x60]
add esp, 0x14
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x28], 0
cmovae eax, ecx
mov dword [ebp - 0x18], 0
setae byte [ebp - 0x2e1]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2f4], eax
cmp edi, 0x7fffffff
ja 0x433b06
mov dword [ebp - 0x14], 0xf
cmp edi, 0x10
jae 0x43383d
push 0x10
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push eax
call sub.VCRUNTIME140.dll_memmove
jmp 0x433881
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x433851
mov esi, 0x7fffffff
jmp 0x43385c
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040cae0
lea ecx, [edi + 1]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x2f4]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x28
mov byte [ebp - 4], 5
call fcn.00441d78
add esp, 4
mov dword [ebp - 0x314], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4338bd
push dword [ebp - 0x2fc]
mov ecx, eax
push dword [ebp - 0x300]
call fcn.004291d0
mov esi, eax
mov dword [ebp - 0x2e8], eax
jmp 0x4338c5
xor esi, esi
mov dword [ebp - 0x2e8], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x43392c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429a70
test al, al
je 0x43392c
mov edi, dword [ebp - 0x304]
mov ecx, esi
call fcn.004293e0
mov ecx, dword [ebp - 0x2e8]
mov esi, eax
call fcn.004293d0
mov dword [ebp - 0x310], eax
lea ecx, [edi + 8]
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x308], eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x30c], esi
push eax
call fcn.00431d90
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x433964
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43395a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
cmp byte [ebp - 0x2e1], 0
mov byte [ebp - 4], 3
je 0x4339a3
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x2f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x433999
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
cmp byte [ebp - 0x2e2], 0
mov byte [ebp - 4], 2
je 0x4339e2
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x2f8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4339d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x433a1a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x433a10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edx
call fcn.00441da8
add esp, 8
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x433a54
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x433a4a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433ad3
push ecx
push edi
call fcn.00441da8
add esp, 8
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x1e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x433a77
mov eax, dword [ebp - 0x2ec]
jmp 0x433360
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x433a94
push str.Terrain::LoadObjects
push str.FUNC:__s____MSG:_MKME:_ERROR:_Found_more_files_then_expected_on_world_load_
call fcn.00405f50
add esp, 8
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2e1], 1
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0x10
jb 0x433ae3
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x433ad9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433ad9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00441da8
add esp, 8
mov al, byte [ebp - 0x2e1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040cac0
call fcn.0040cad0
int3