Function at 0x431600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4318c2
cmp eax, 0x50
jge 0x4318c2
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4318c1
cmp edi, 0x1e
jg 0x4318c1
dec eax
mov ecx, eax
shl ecx, 4
sub ecx, eax
dec edi
push esi
lea esi, [edi + ecx*2]
mov edx, esi
shl edx, 5
lea eax, [edx + 0x526bf8]
mov dword [ebp - 0x108], eax
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431660
sub eax, edx
je 0x4318c0
mov eax, dword [esi*4 + 0x565a40]
push ebx
lea ebx, [esi*4 + 0x565a40]
test eax, eax
je 0x4316a1
cmp dword [esi*4 + 0x5f0820], 0
jne 0x4318bf
test eax, eax
je 0x4316a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx], 0
mov eax, dword [esi*4 + 0x5f0820]
lea esi, [esi*4 + 0x5f0820]
test eax, eax
je 0x4316c0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov eax, dword [ebp - 0x108]
push eax
push 0x525258
lea ecx, [ebp - 0x104]
push str._sData_s.cd3
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x104]
push 0x4e4714
push edx
call fcn.004cdd4a
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x108], ecx
test ecx, ecx
jne 0x431739
mov edx, dword [0x5ec1bc]
add edx, dword [0x1a3ba10]
lea eax, [ebp - 0x104]
push eax
push edx
push 0x6a3898
call fcn.004cce8a
push 0x6a3898
call fcn.0040b000
add esp, 0x10
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
xor eax, eax
shl edi, 5
mov dword [edi + 0x1a83470], eax
mov dword [edi + 0x1a83474], eax
mov dword [ebp - 0x10c], edi
lea edi, [edi + 0x1a83470]
mov dword [edi + 8], eax
push ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push 0x20
mov dword [edi + 0x14], eax
push 1
mov dword [edi + 0x18], eax
push edi
mov dword [edi + 0x1c], eax
call fcn.004cdfab
mov eax, dword [ebp - 0x10c]
push 0x526a00
lea ecx, [eax + 0x5397f8]
push ecx
push str._s._s
push edi
call fcn.004cce8a
add esp, 0x20
push 0x5004
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx], eax
test eax, eax
je 0x4318b0
mov edx, dword [ebp - 0x108]
push edx
push 1
push 0x5004
push eax
call fcn.004cdfab
mov eax, dword [ebx]
mov edi, dword [eax]
imul edi, edi, 0x8c
add esp, 0x10
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x4318b0
mov ecx, dword [ebp - 0x108]
push ecx
push 1
push edi
push eax
call fcn.004cdfab
mov eax, dword [0x41ec330]
add esp, 0x10
cmp eax, 1
jne 0x431855
mov eax, dword [ebx]
xor edx, edx
cmp dword [eax], edx
jle 0x4318b0
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 [ebx]
cmp edx, dword [ecx]
jl 0x43180f
jmp 0x4318ae
cmp eax, 2
jne 0x4318b0
mov eax, dword [ebx]
xor edx, edx
cmp dword [eax], edx
jle 0x4318b0
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 [ebx]
cmp edx, dword [ecx]
jl 0x43186a
fstp st(0)
mov edx, dword [ebp - 0x108]
push edx
call fcn.004cda49
add esp, 4
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret