Function at 0x4332a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 0x798]
push ebx
call dword [0x454138]
push dword [edi + 0x790]
lea eax, [ebp - 0x1a0]
mov dword [edi + 0x7c4], 0
push edi
push 0x484f20
push str._s_bases_s_d.hst
push 0x103
push eax
mov dword [edi + 0x7c8], 0
mov dword [edi + 0x7bc], 0
mov dword [edi + 0x7b4], 0
call fcn.00403860
lea eax, [ebp - 0x1a0]
push 0x45eda8
push eax
call fcn.0041b273
mov esi, eax
add esp, 0x20
test esi, esi
je 0x433696
push esi
push 1
lea eax, [ebp - 0x98]
push 0x88
push eax
call fcn.0041b463
add esp, 0x10
cmp eax, 1
jne 0x433663
mov eax, dword [ebp - 0x24]
cmp eax, dword [edi + 0x790]
jne 0x433663
mov ecx, str.Chart
lea eax, [ebp - 0x54]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x433380
test dl, dl
je 0x43337c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x433380
add eax, 2
add ecx, 2
test dl, dl
jne 0x433360
xor eax, eax
jmp 0x433385
sbb eax, eax
or eax, 1
test eax, eax
jne 0x433663
cmp dword [ebp - 0x98], 0x191
jne 0x433663
push 0xc
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0041b520
add esp, 0xc
test eax, eax
jne 0x433663
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x68]
jne 0x433663
mov eax, dword [ebp - 0x20]
push esi
mov dword [edi + 0x7c0], eax
call fcn.0041b816
add esp, 4
push eax
call fcn.0041b80b
add esp, 4
lea ecx, [eax - 0x88]
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
cmp ecx, 1
jge 0x43340d
push esi
call fcn.0041b6bd
add esp, 4
push ebx
call dword [0x454134]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x10000
mov ebx, ecx
cmp ecx, eax
push 0
cmovg ebx, eax
sub ecx, ebx
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*4 + 0x88]
push eax
push esi
call fcn.0041bb26
lea eax, [ebx + 0x80]
add esp, 0xc
cmp dword [edi + 0x7b8], eax
jl 0x433469
mov ecx, dword [edi + 0x7b0]
lea eax, [edi + 0x7b0]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x43347c
lea eax, [ebx*8]
sub eax, ebx
shl eax, 2
jmp 0x4334f7
mov eax, dword [edi + 0x7b0]
test eax, eax
je 0x43347c
push eax
call fcn.0041afc0
add esp, 4
lea eax, [ebx*8]
sub eax, ebx
shl eax, 2
mov dword [ebp - 8], eax
add eax, 0xe38
push eax
call fcn.0041afdb
mov ecx, eax
add esp, 4
mov dword [edi + 0x7b0], ecx
lea eax, [edi + 0x7b0]
test ecx, ecx
jne 0x4334e5
push esi
call fcn.0041b6bd
add esp, 4
push dword [edi + 0x790]
push edi
push str.Chart:__s_d_not_enough_memory
push 0
push 2
push 0x4850d0
call fcn.00436d50
add esp, 0x18
lea eax, [edi + 0x798]
push eax
call dword [0x454134]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebx + 0x80]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x7b8], edx
push esi
push 1
push eax
push ecx
call fcn.0041b463
add esp, 0x10
push esi
cmp eax, 1
je 0x433550
call fcn.0041b6bd
add esp, 4
lea eax, [ebp - 0x1a0]
push eax
call dword [0x454100]
push dword [edi + 0x790]
push edi
push str.Chart:__s_d_error_reading
push 0
push 1
push 0x4850d0
call fcn.00436d50
add esp, 0x18
lea eax, [edi + 0x798]
push eax
call dword [0x454134]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041b6bd
mov esi, dword [ebp - 4]
xor eax, eax
add esp, 4
mov dword [edi + 0x7b4], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov esi, dword [esi]
test esi, esi
je 0x43364f
cmp ebx, 1
jl 0x43364f
mov ecx, 1
xor edi, edi
mov dword [ebp - 8], ecx
cmp dword [esi + 4], 0
jle 0x4335c9
mov eax, dword [esi + 8]
test eax, eax
js 0x4335c6
mov edx, dword [esi + 0xc]
test edx, edx
jg 0x4335c6
cmp dword [esi + 0x10], eax
jg 0x4335c6
cmp dword [esi + 0x10], edx
jl 0x4335c6
xorps xmm0, xmm0
comisd xmm0, xmmword [esi + 0x14]
jae 0x4335c6
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4335bb
mov eax, dword [edx]
cmp eax, dword [esi]
je 0x4335c6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
add esi, 0x1c
jmp 0x4335fc
mov eax, dword [ebp - 4]
cmp ecx, ebx
jge 0x4335f5
mov ecx, ebx
sub ecx, edi
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*4 - 0x1c]
push eax
lea eax, [esi + 0x1c]
push eax
push esi
call fcn.0040bea0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 4]
dec ebx
dec edi
dec ecx
inc eax
mov dword [ebp - 4], eax
inc edi
inc ecx
mov dword [ebp - 8], ecx
cmp edi, ebx
jl 0x433586
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x7b4], ebx
test eax, eax
jle 0x43364f
push 0
mov ecx, edi
mov dword [edi + 0x7c0], 0
mov dword [edi + 0x7c4], 1
call fcn.00433140
push dword [edi + 0x790]
push edi
push dword [ebp - 4]
push str.Chart:__d_errors_in__s_d
push 0
push 1
push 0x4850d0
call fcn.00436d50
add esp, 0x1c
lea eax, [edi + 0x798]
push eax
call dword [0x454134]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041b6bd
add esp, 4
lea eax, [ebp - 0x1a0]
push eax
call dword [0x454100]
push dword [edi + 0x790]
push edi
push str.Chart:__s_d_invalid_database
push 0
push 1
push 0x4850d0
call fcn.00436d50
add esp, 0x18
push ebx
call dword [0x454134]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret