Function at 0x412780
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dfe7
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x48c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.resources_area_presets
lea eax, [ebp - 0x110]
push str._s_.xml
push eax
call fcn.0041c1c0
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x2ac], esi
cmp esi, 0xffffffff
je 0x412cfe
nop dword [eax + eax]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412814
sub ecx, edx
lea eax, [ebp - 0x254]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00402250
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
push 0x16
push str.resources_area_presets
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0xf
mov byte [ebp - 0x2a0], 0
call fcn.00402250
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28c]
mov eax, edx
mov ecx, dword [ebp - 0x290]
sub eax, ecx
push 1
push 0x480020
cmp eax, 1
jb 0x4128b4
cmp edx, 0x10
lea esi, [ebp - 0x2a0]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x2a0]
add esi, ecx
mov dword [ebp - 0x290], eax
push esi
call fcn.004466c0
add esp, 0xc
mov byte [esi + 1], 0
lea eax, [ebp - 0x2a0]
jmp 0x4128ce
mov byte [ebp - 0x2a4], 0
lea ecx, [ebp - 0x2a0]
push dword [ebp - 0x2a4]
push 1
call fcn.00402410
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2b4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x2c4]
lea ecx, [ebp - 0x140]
call fcn.0041c310
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2b0]
cmp edx, 0x10
jb 0x412967
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41295d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d19
push edx
push ecx
call fcn.0042f743
add esp, 8
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x28c]
cmp edx, 0x10
jb 0x4129c0
mov ecx, dword [ebp - 0x2a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4129b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d19
push edx
push ecx
call fcn.0042f743
add esp, 8
push 0xc8
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0xf
mov byte [ebp - 0x2a0], 0
call fcn.0042f713
push 0xc8
mov esi, eax
push 0
push esi
mov dword [ebp - 0x288], esi
call fcn.00447720
add esp, 0x10
mov dword [esi], 0
lea edi, [esi + 4]
mov ecx, esi
mov dword [edi], 0
call fcn.00410ed0
cmp dword [ebp - 0x12c], 0x10
lea esi, [ebp - 0x140]
mov ecx, dword [ebp - 0x288]
cmovae esi, dword [ebp - 0x140]
call fcn.00410fa0
mov ecx, dword [ebp - 0x288]
call fcn.00410ed0
push 0x47fc80
push esi
call fcn.0044ed3b
mov esi, eax
mov dword [ebp - 0x2cc], fcn.00410ca0
add esp, 8
mov dword [ebp - 0x2d0], esi
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x2dc]
push edi
sub esp, 8
mov byte [ebp - 4], 6
mov edx, dword [eax]
push esi
call fcn.00410ba0
add esp, 0x10
mov byte [ebp - 4], 7
test esi, esi
je 0x412a8d
push esi
call fcn.00410ca0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2dc], 0
je 0x412b13
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x48f7dc]
cmp eax, dword [ecx + 4]
jle 0x412af8
push 0x48f7dc
call fcn.0042f372
add esp, 4
cmp dword [0x48f7dc], 0xffffffff
jne 0x412af8
xorps xmm0, xmm0
movq qword [0x48f7e0], xmm0
push 0x470ae0
mov byte [0x48f7e0], 1
mov dword [0x48f7e4], 0
call fcn.0042f6f5
push 0x48f7dc
call fcn.0042f328
add esp, 8
push str.could_not_open_the_area_preset_file
push str.Scene
push 0x57
mov ecx, 0x48f7e0
call fcn.004266c0
jmp 0x412c45
lea eax, [ebp - 0x128]
mov dword [ebp - 0x284], 0
push eax
lea eax, [ebp - 0x284]
mov ecx, 0x48f6b4
push eax
call fcn.0041b010
mov esi, dword [ebp - 0x284]
cmp esi, dword [0x48f6b4]
je 0x412bed
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x412b53
mov ecx, dword [esi + 0x10]
cmp dword [ebp - 0x114], 0x10
lea edx, [ebp - 0x128]
mov eax, dword [esi + 0x20]
cmovae edx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x118]
cmp eax, edi
cmovb edi, eax
sub edi, 4
jb 0x412b91
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x412b96
add edx, 4
add ecx, 4
sub edi, 4
jae 0x412b80
cmp edi, 0xfffffffc
je 0x412bca
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x412bc3
cmp edi, 0xfffffffd
je 0x412bca
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x412bc3
cmp edi, 0xfffffffe
je 0x412bca
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x412bc3
cmp edi, 0xffffffff
je 0x412bca
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x412bca
sbb eax, eax
or eax, 1
jmp 0x412bcc
xor eax, eax
test eax, eax
jne 0x412be6
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x118]
cmp eax, ecx
jbe 0x412be2
or eax, 0xffffffff
jmp 0x412be6
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
je 0x412c29
lea eax, [ebp - 0x128]
push ecx
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x284]
push eax
push ecx
mov ecx, 0x48f6b4
call fcn.00421b30
push eax
add eax, 0x10
mov ecx, 0x48f6b4
push eax
push esi
lea eax, [ebp - 0x2a8]
push eax
call fcn.00421bc0
mov esi, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x288]
lea eax, [ebp - 0x2c8]
push str.Preset
push eax
call fcn.00410ce0
mov eax, dword [eax]
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x412c83
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412c79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d19
push edx
push ecx
call fcn.0042f743
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x114]
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
cmp edx, 0x10
jb 0x412cdb
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d19
push edx
push ecx
call fcn.0042f743
add esp, 8
mov esi, dword [ebp - 0x2ac]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4127f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0042f1ff
mov esp, ebp
pop ebp
ret
call fcn.0044b2e7
int3