Function at 0x4320a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx*4 + 0x6a3790], 0xffffffff
push esi
push edi
jne 0x4321f8
lea edx, [ebx + ebx*2]
shl edx, 5
lea edx, [edx + 0x50bc80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4320d8
sub eax, esi
je 0x4321f8
push 0x526a00
push edx
lea eax, [ebp - 0x404]
push str.Char_s.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x404]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.0047e110
add esp, 0x1c
xor ecx, ecx
cmp byte [ebp - 0x41c], 1
push 2
sete cl
cmp dword [0x64123c], 0
lea esi, [ecx*4 + 0x15]
push esi
je 0x43215a
mov edx, dword [0x41ec330]
mov ecx, dword [0x5f483c]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.004a5380
jmp 0x432173
mov ecx, dword [0x41ec330]
push ecx
mov ecx, dword [0x5f483c]
lea edx, [ebp - 0x404]
push edx
call fcn.004a4f60
cmp dword [0x5eaaa0], 0
mov dword [ebx*4 + 0x6a3790], eax
je 0x4321a8
cmp esi, 0x19
jne 0x432190
push 0x31545844
push eax
jmp 0x43219d
mov ecx, dword [ebx*4 + 0x6a3790]
push 0x34545844
push ecx
mov ecx, dword [0x5f483c]
call fcn.004a4b60
mov eax, dword [ebx*4 + 0x6a3790]
mov ecx, dword [0x5f483c]
mov edx, dword [ecx + eax*4 + 0x11414]
fild dword [ecx + eax*4 + 0x11414]
test edx, edx
jns 0x4321cd
fadd dword [0x4e4558]
fstp dword [ebx*4 + 0x6a50a0]
mov eax, dword [ecx + eax*4 + 0x11814]
mov dword [ebp - 0x428], eax
fild dword [ebp - 0x428]
test eax, eax
jns 0x4321f1
fadd dword [0x4e4558]
fstp dword [ebx*4 + 0x6a3108]
mov eax, dword [ebx*4 + 0x6423c8]
lea edi, [ebx*4 + 0x6423c8]
test eax, eax
je 0x432229
cmp dword [ebx*4 + 0x641138], 0
jne 0x4323df
test eax, eax
je 0x432229
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], 0
mov eax, dword [ebx*4 + 0x641138]
lea esi, [ebx*4 + 0x641138]
test eax, eax
je 0x432248
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
lea edx, [ebx + ebx*2]
shl edx, 5
lea edx, [edx + str.NPC_001]
mov eax, edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432260
sub eax, ebx
je 0x4323df
push edx
lea ecx, [ebp - 0x404]
push str.Data_s.cd5
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x404]
push 0x4e4714
push edx
call fcn.004cdd4a
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x428], ebx
test ebx, ebx
je 0x4323df
push ebx
push 0x20
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004cdfab
add esp, 0x10
push 0x14004
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi], eax
test eax, eax
je 0x4323d6
push ebx
push 1
push 0x14004
push eax
call fcn.004cdfab
mov ecx, dword [edi]
mov ebx, dword [ecx]
imul ebx, ebx, 0x8c
add esp, 0x10
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x4323d0
mov edx, dword [ebp - 0x428]
push edx
push 1
push ebx
push eax
call fcn.004cdfab
mov eax, dword [0x41ec330]
add esp, 0x10
cmp eax, 1
jne 0x432375
mov eax, dword [edi]
xor edx, edx
cmp dword [eax], edx
jle 0x4323d0
fld qword [0x4e4620]
xor eax, eax
mov ecx, dword [esi]
fld dword [eax + ecx + 0x20]
lea ecx, [eax + ecx + 0x20]
fmul st(1)
inc edx
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x24]
lea ecx, [eax + ecx + 0x24]
fmul st(1)
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x28]
lea ecx, [eax + ecx + 0x28]
fmul st(1)
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x2c]
lea ecx, [eax + ecx + 0x2c]
fmul st(1)
add eax, 0x8c
fstp dword [ecx]
mov ecx, dword [edi]
cmp edx, dword [ecx]
jl 0x43232f
jmp 0x4323ce
cmp eax, 2
jne 0x4323d0
mov eax, dword [edi]
xor edx, edx
cmp dword [eax], edx
jle 0x4323d0
fld qword [0x4e46c8]
xor eax, eax
mov ecx, dword [esi]
fld dword [eax + ecx + 0x20]
lea ecx, [eax + ecx + 0x20]
fmul st(1)
inc edx
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x24]
lea ecx, [eax + ecx + 0x24]
fmul st(1)
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x28]
lea ecx, [eax + ecx + 0x28]
fmul st(1)
fstp dword [ecx]
mov ecx, dword [esi]
fld dword [eax + ecx + 0x2c]
lea ecx, [eax + ecx + 0x2c]
fmul st(1)
add eax, 0x8c
fstp dword [ecx]
mov ecx, dword [edi]
cmp edx, dword [ecx]
jl 0x43238a
fstp st(0)
mov ebx, dword [ebp - 0x428]
push ebx
call fcn.004cda49
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ccd49
mov esp, ebp
pop ebp
ret