Function at 0x467870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c68c
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4a7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xe4], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x2404]
mov dword [ebp - 4], 1
mov dword [ebx + 0x2424], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2428], eax
lea eax, [ebp + 0x30]
cmp edi, eax
je 0x4678d8
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004034d0
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
mov dword [ebx + 0x2830], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], esp
mov dword [ebx + 0x2834], eax
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x49794c
mov byte [ecx], 0
call fcn.00403610
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebp + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034d0
mov byte [ebp - 4], 1
call fcn.0046aba0
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x467980
sub esp, 0x18
mov ecx, esp
push 0x1e
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push str.Error_locating_font_width_data
mov byte [ecx], al
call fcn.00403610
call fcn.00401370
mov ecx, eax
call fcn.00469c80
mov ecx, ebx
call fcn.00467390
jmp 0x467e9b
push esi
push 0x100
lea eax, [ebx + 0x2004]
push 4
push eax
mov dword [ebp - 0xe0], eax
call fcn.004714dc
push esi
call fcn.00470582
add esp, 0x14
mov dword [ebp - 0x6c], 0xf
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
push 0xb
push str.data_fonts_
call fcn.00403610
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x80]
call fcn.00403320
push 4
push str..txt
lea ecx, [ebp - 0x80]
call fcn.004033e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0xc4], 0xf
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
call fcn.004034d0
cmp dword [ebp - 0xc4], 0x10
lea eax, [ebp - 0xd8]
push 0
cmovae eax, dword [ebp - 0xd8]
push 0x80
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x467cbe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc4], 0x10
jb 0x467a66
push dword [ebp - 0xd8]
call fcn.0046fdb4
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xbc], esp
push 0x496d60
call fcn.00403250
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
lea eax, [ebp - 0x80]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034d0
mov byte [ebp - 4], 3
call fcn.0046aba0
add esp, 0x30
mov dword [ebp - 0xd4], 0
mov ebx, eax
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xc3], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0xbc], 0x100
lea ecx, [ecx]
push ebx
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.004702b9
add esp, 0xc
mov dword [ebp - 0x54], 0xf
cmp byte [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x467b1b
xor ecx, ecx
jmp 0x467b2a
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467b21
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00403610
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc8], eax
lea edi, [eax + 1]
push edi
call fcn.004707b2
add esp, 4
mov esi, eax
mov dword [ebp - 0xd0], esi
push edi
call fcn.004707b2
add esp, 4
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0x54], 0x10
lea ecx, [ebp - 0x68]
cmovae ecx, dword [ebp - 0x68]
push ecx
push edi
push esi
call fcn.0046fd3d
add esp, 0xc
mov dword [ebp - 0xd4], 0
cmp dword [ebp - 0x54], 0x10
mov byte [ebp - 0xc4], 0x2c
jb 0x467b9b
push dword [ebp - 0x68]
call fcn.0046fdb4
add esp, 4
sub esp, 0x18
lea ecx, [ebp - 0xd4]
push esp
call fcn.0046cfa0
lea ecx, [ebp - 0x68]
call fcn.004621a0
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.0046ff0d
add esp, 0x1c
mov esi, eax
cmp dword [ebp - 0x54], 0x10
jb 0x467bd9
push dword [ebp - 0x68]
call fcn.0046fdb4
add esp, 4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0046cfa0
mov byte [ebp - 4], 6
cmp esi, 0xb
jne 0x467c14
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0046cfa0
cmp dword [ebp - 0x54], 0x10
jb 0x467c14
push dword [ebp - 0x68]
call fcn.0046fdb4
add esp, 4
sub esp, 0x18
lea ecx, [ebp - 0xd4]
push esp
call fcn.0046cfa0
lea ecx, [ebp - 0x68]
call fcn.004621a0
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.0046ff0d
add esp, 0x1c
mov edi, eax
cmp dword [ebp - 0x54], 0x10
jb 0x467c52
push dword [ebp - 0x68]
call fcn.0046fdb4
add esp, 4
mov esi, dword [ebp - 0xe0]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x84], 0x10
mov dword [esi], edi
jb 0x467c75
push dword [ebp - 0x98]
call fcn.0046fdb4
add esp, 4
add esi, 4
dec dword [ebp - 0xbc]
mov dword [ebp - 0xe0], esi
jne 0x467af0
push ebx
call fcn.00470582
add esp, 4
mov byte [ebp - 4], 3
push dword [ebp - 0xd0]
call fcn.0047077a
add esp, 4
push dword [ebp - 0xcc]
call fcn.0047077a
mov ebx, dword [ebp - 0xe4]
lea edi, [ebx + 0x2404]
jmp 0x467cd2
cmp dword [ebp - 0xc4], 0x10
jb 0x467cd5
push dword [ebp - 0xd8]
call fcn.0046fdb4
add esp, 4
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.004034d0
mov eax, dword [0x4d1b34]
test al, 1
jne 0x467d29
push 0x30
or eax, 1
push 0
push 0x4afe50
mov dword [0x4d1b34], eax
call fcn.00479b40
add esp, 0xc
call fcn.00464ca0
push 0x48cbd0
call fcn.0046fb6c
add esp, 4
mov ecx, 0x4afe50
call fcn.00465100
lea edx, [ebp - 0xb8]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xa0]
xor esi, esi
movd xmm5, dword [ebx + 0x2428]
cvtdq2ps xmm5, xmm5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm4, xmm5
addsd xmm0, qword [eax*8 + 0x4980b0]
mov eax, dword [ebp - 0x9c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
divss xmm4, xmm1
addsd xmm0, qword [eax*8 + 0x4980b0]
cvtpd2ps xmm0, xmm0
divss xmm5, xmm0
cmp dword [ebx + 0x2830], esi
jle 0x467e2e
mov eax, dword [ebx + 0x2834]
xor ecx, ecx
mov edx, eax
imul edx, esi
test eax, eax
jle 0x467e21
movd xmm2, esi
lea eax, [ebx + 0x1004]
cvtdq2ps xmm2, xmm2
shl edx, 4
add eax, edx
mulss xmm2, xmm5
movaps xmm3, xmm2
addss xmm3, xmm5
movd xmm1, ecx
inc ecx
cvtdq2ps xmm1, xmm1
movss dword [eax], xmm2
mulss xmm1, xmm4
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm3
movaps xmm0, xmm1
movss dword [eax - 0x1000], xmm1
addss xmm0, xmm4
movss dword [eax - 0xff8], xmm1
movss dword [eax + 0xc], xmm3
movss dword [eax - 0xffc], xmm0
movss dword [eax - 0xff4], xmm0
add eax, 0x10
cmp ecx, dword [ebx + 0x2834]
jl 0x467dd0
inc esi
cmp esi, dword [ebx + 0x2830]
jl 0x467da2
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.004034d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
cmovae ecx, dword [ebp - 0x68]
call fcn.00469e10
cmp dword [ebp - 0x54], 0x10
mov dword [ebx + 0x242c], eax
jb 0x467e78
push dword [ebp - 0x68]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x6c], 0x10
jb 0x467e89
push dword [ebp - 0x80]
call fcn.0046fdb4
add esp, 4
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp dword [ebp + 0x2c], 0x10
jb 0x467eac
push dword [ebp + 0x18]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp + 0x44], 0x10
mov dword [ebp + 0x2c], 0xf
mov dword [ebp + 0x28], 0
mov byte [ebp + 0x18], 0
jb 0x467ecf
push dword [ebp + 0x30]
call fcn.0046fdb4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f27e
mov esp, ebp
pop ebp
ret 0x40