Function at 0x432720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444a40
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
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 - 0x2fc], ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c6b0
push 6
push str.Map
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 - 0x2e8], eax
cmp eax, 0xffffffff
jne 0x4327d0
push str.Terrain::LoadAllKsm
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 0x432efb
test byte [ebp - 0x1e0], 0x10
jne 0x432eae
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 0x432800
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 0x432888
push pe_nt_image_headers32
lea eax, [ebp - 0x2e0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [ebp - 0x2b2], 1
lea ecx, [edi - 1]
add esp, 0xc
cmp ecx, eax
cmovb eax, ecx
movzx ecx, byte [eax + esi]
add eax, esi
mov cl, byte [ebp + ecx - 0x2e0]
test cl, cl
jne 0x432884
nop
cmp eax, esi
je 0x432888
movzx ecx, byte [eax - 1]
dec eax
mov cl, byte [ebp + ecx - 0x2e0]
test cl, cl
je 0x432870
sub eax, esi
jmp 0x43288b
or eax, 0xffffffff
lea edx, [eax + 1]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
cmp edi, edx
jb 0x432f5f
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 0x43290a
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432900
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
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, 0x450b04
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 0x432956
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43295b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x432945
cmp esi, 0xfffffffc
je 0x43298f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x432988
cmp esi, 0xfffffffd
je 0x43298f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x432988
cmp esi, 0xfffffffe
je 0x43298f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x432988
cmp esi, 0xffffffff
je 0x43298f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x43298f
sbb eax, eax
or eax, 1
jmp 0x432991
xor eax, eax
mov esi, 3
test eax, eax
jne 0x432e71
mov eax, dword [ebp - 0x48]
cmp eax, esi
jae 0x4329aa
or eax, 0xffffffff
jmp 0x4329b0
cmp esi, eax
sbb eax, eax
neg eax
test eax, eax
jne 0x432e71
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 0x4329d0
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 0x432f5f
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 - 0x2ec], eax
cmp ecx, 0x10
jb 0x432acd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432ac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
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 0x432f5f
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 - 0x2f4], eax
cmp ecx, 0x10
jb 0x432b5e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432b54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
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 - 0x2f0], eax
cmp edi, 0x7fffffff
ja 0x432f5a
cmp edi, 0x10
jae 0x432bc0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 0xf
movups xmmword [ebp - 0x70], xmm0
jmp 0x432c07
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x432bd4
mov esi, 0x7fffffff
jmp 0x432bdf
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 - 0x2f0]
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 - 0x2f4]
push dword [ebp - 0x2ec]
push str.Terrain::LoadAllKsm
push str.FUNC:__s____MSG:_Terrain:_Loading_KSM__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 - 0x300], ecx
mov dword [ebp - 0x2f0], eax
cmp edi, 0x7fffffff
ja 0x432f5a
mov dword [ebp - 0x14], 0xf
cmp edi, 0x10
jae 0x432cad
push 0x10
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push eax
call sub.VCRUNTIME140.dll_memmove
jmp 0x432cf1
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x432cc1
mov esi, 0x7fffffff
jmp 0x432ccc
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 - 0x2f0]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x3001c
mov byte [ebp - 4], 5
call fcn.00441d78
add esp, 4
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x432d1e
mov ecx, eax
call fcn.004208b0
mov esi, eax
jmp 0x432d20
xor esi, esi
mov byte [ebp - 4], 5
test esi, esi
je 0x432d80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x2f4]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x2ec]
call fcn.00420990
test al, al
je 0x432d80
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x308], edi
lea ecx, [ecx + 0x10]
mov dword [ebp - 0x304], esi
push eax
call fcn.00431d90
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x432db8
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432dae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
push ecx
push edx
call fcn.00441da8
add esp, 8
cmp byte [ebp - 0x2e1], 0
mov byte [ebp - 4], 3
je 0x432df7
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x300]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432ded
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
push ecx
push edx
call fcn.00441da8
add esp, 8
cmp byte [ebp - 0x2e2], 0
mov byte [ebp - 4], 2
je 0x432e36
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x2f8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432e2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
push ecx
push edx
call fcn.00441da8
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x432e6e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432e64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
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 0x432ea8
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x432e9e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432f27
push ecx
push edi
call fcn.00441da8
add esp, 8
mov eax, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x1e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x432ecb
mov eax, dword [ebp - 0x2e8]
jmp 0x4327d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x432ee8
push str.Terrain::LoadAllKsm
push str.FUNC:__s____MSG:_MKME:_ERROR:_Found_more_files_then_expected_on_world_load_
call fcn.00405f50
add esp, 8
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2e1], 1
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0x10
jb 0x432f37
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432f2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x432f2d
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