Function at 0x49c1a0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56197a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b4
call fcn.00552480
mov eax, dword [0x63d20c]
xor eax, esp
mov dword [esp + 0x10b0], eax
push ebx
push esi
push edi
mov eax, dword [0x63d20c]
xor eax, esp
push eax
lea eax, [esp + 0x10c8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, ecx
xor edi, edi
mov dword [eax + 0xfc], edi
mov dword [eax + 0xf8], edi
mov esi, dword [ebx + 0x1ec]
mov ecx, 0xd
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
cmp esi, edi
je 0x49cbbc
mov eax, dword [esi + 0x18]
cmp eax, 4
je 0x49cbbc
fld qword [ebx + 0x1f0]
fld qword [ebx + 0x1f0]
fld qword [ebx + 0x208]
fmul st(2)
fld qword [ebx + 0x1f8]
fmul st(2)
faddp st(1)
fld qword [ebx + 0x200]
fmulp st(2)
fld qword [ebx + 0x210]
fmulp st(3)
fxch st(1)
faddp st(2)
fld qword [ebx + 0x20]
fmul st(2)
fld qword [ebx + 0x10]
fmul st(2)
faddp st(1)
fld qword [ebx + 0x28]
fmulp st(3)
fld qword [ebx + 0x18]
fmulp st(2)
fxch st(2)
faddp st(1)
fld qword [ebx]
fxch st(2)
fabs
fld qword [0x5c4d78]
fmul st(3), st(0)
fxch st(1)
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
je 0x49cbb8
fld qword [ebx + 8]
fxch st(1)
fabs
fxch st(1)
fmulp st(2)
fcompp
fnstsw ax
test ah, 0x41
je 0x49cbbc
push 0x20
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10d0], edi
cmp eax, edi
je 0x49c2de
add esi, 0xc
push esi
mov ecx, eax
call fcn.00498070
mov edi, eax
mov dword [esp + 0x24], eax
jmp 0x49c2e2
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xcc]
push edi
mov dword [esp + 0x10d4], 0xffffffff
call fcn.004d7bf0
mov esi, eax
test esi, esi
je 0x49c31a
test edi, edi
je 0x49c9d3
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x49c9d3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc0]
mov esi, dword [esp + 0x10]
push 0
push edx
mov ecx, esi
mov dword [esp + 0x4c], 0
call fcn.004e8750
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x49c398
mov esi, dword [esi + 0x14]
test esi, esi
je 0x49c350
mov esi, dword [esi + 4]
jmp 0x49c355
mov esi, str._unnamed_
push esi
push str.Couldnt_find_a_font_for_0:s
push 0xffffffffffffffff
push 1
call fcn.00489570
add esp, 0x10
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49c377
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49cbbc
mov ecx, esi
call fcn.0047ac70
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x49cbbc
cmp dword [ebx], 0
jne 0x49c4c9
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
push 8
mov dword [esp + 0x3c], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10d0], 1
test eax, eax
je 0x49c3d3
mov ecx, eax
call fcn.0047ab30
mov esi, eax
jmp 0x49c3d5
xor esi, esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0xc0]
lea edx, [esp + 0x58]
push edx
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x10dc], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x70], 9
mov dword [esp + 0x78], edi
call fcn.0047c610
lea ecx, [esp + 0x64]
call fcn.0047c660
cmp dword [esp + 0x54], 8
je 0x49c452
push str.Embedded_font_object_is_wrong_type
push 0xffffffffffffffff
push 1
call fcn.00489570
add esp, 0xc
lea ecx, [esp + 0x54]
call fcn.0047c660
mov ecx, ebx
call fcn.004e86f0
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp case.0x49c5c7.4
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 0x1000
lea eax, [esp + 0xc0]
push eax
call edx
test eax, eax
jle 0x49c4ac
lea esp, [esp]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0047ad90
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 0x1000
lea eax, [esp + 0xc0]
push eax
call edx
test eax, eax
jg 0x49c480
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
lea ecx, [esp + 0x54]
call fcn.0047c660
mov ecx, dword [esp + 0x2c]
jmp 0x49c5b8
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
push 0x5c2034
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x49c4fe
mov ecx, dword [ebx + 0x10]
push ecx
push str.Couldnt_open_external_font_file_0:t
push 0xffffffffffffffff
push 1
call fcn.00489570
add esp, 0x10
jmp 0x49c43d
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10d0], 2
test eax, eax
je 0x49c526
mov ecx, eax
call fcn.0047ab30
mov edi, eax
jmp 0x49c528
xor edi, edi
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 0x1000
lea edx, [esp + 0xc4]
push 1
push edx
mov dword [esp + 0x10e0], 0xffffffff
mov dword [esp + 0x2c], edi
call ebx
add esp, 0x10
test eax, eax
jle 0x49c57f
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.0047ad90
push esi
push 0x1000
lea ecx, [esp + 0xc4]
push 1
push ecx
call ebx
add esp, 0x10
test eax, eax
jg 0x49c556
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x14]
add esp, 4
mov dword [esp + 0x44], edx
test eax, eax
jl 0x49c5a2
mov edx, dword [esp + 0x24]
mov dword [edx + 0x18], eax
fldz
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x44
jnp 0x49c5b8
fld qword [ecx + 0x18]
mov eax, dword [esp + 0x24]
fstp qword [eax + 0x10]
mov ecx, dword [ecx + 4]
lea eax, [ecx - 1]
cmp eax, 0xa
ja case.0x49c5c7.4
jmp dword [eax*4 + 0x49cbe4]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0xa4]
push ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xcc]
push edx
push eax
call fcn.004d7c40
mov esi, eax
test esi, esi
jne 0x49c9bb
mov eax, dword [edi + 0x14]
test eax, eax
je 0x49c608
mov eax, dword [eax + 4]
jmp 0x49c60d
mov eax, str._unnamed_
push eax
push str.Couldnt_create_a_font_for_0:s
push 0xffffffffffffffff
push 1
call fcn.00489570
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ecx, esi
call fcn.004e86f0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp case.0x49c5c7.4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea edx, [edi + 0xa4]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [edx + 0xcc]
call fcn.004d7c60
jmp 0x49c5f2
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [edi + 0xa4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [eax + 0xcc]
push edx
call fcn.004d7c80
jmp 0x49c5f2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push 0
push edx
push eax
push ecx
call fcn.004ed100
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49c6ec
mov ecx, dword [esp + 0x10]
push esi
call fcn.004e7200
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
mov ebx, 0x100
call edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
cmp eax, 5
je 0x49c6f0
cmp eax, 6
je 0x49c6f0
xor eax, eax
cmp dword [edi + eax*4], 0
jne 0x49c6e2
mov dword [edi + eax*4], 0xffffffff
inc eax
cmp eax, 0x100
jl 0x49c6d5
jmp 0x49c6f0
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x49c700
mov eax, dword [eax + 4]
jmp 0x49c702
xor eax, eax
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ebx
push edi
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [edx + 0xcc]
call fcn.004d7ce0
mov esi, eax
test esi, esi
jne 0x49c9bb
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
jmp 0x49c5ff
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xcc]
push edx
call fcn.004d7ca0
mov esi, eax
test esi, esi
jne 0x49c9bb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
jmp 0x49c5ff
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0xd8], 0
je 0x49c79f
mov esi, dword [ebx + 0xdc]
push 4
push esi
call fcn.00497310
mov edi, eax
mov eax, dword [ebx + 0xd8]
lea edx, [esi*4]
push edx
push eax
push edi
call sub.MSVCR90.dll_memcpy
add esp, 0x14
jmp 0x49c7a3
xor edi, edi
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push esi
push edi
push ecx
mov ecx, dword [eax + 0xcc]
push edx
call fcn.004d7cc0
mov esi, eax
test esi, esi
jne 0x49c9bb
mov eax, dword [ebx + 0x14]
jmp 0x49c5ff
mov ecx, dword [esp + 0x2c]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], esi
cmp dword [ecx], esi
jne 0x49c821
mov edi, dword [esp + 0x10]
cmp dword [edi + 0xd8], esi
je 0x49c987
mov esi, dword [edi + 0xdc]
push 4
push esi
call fcn.00497310
mov ebx, eax
mov eax, dword [edi + 0xd8]
lea edx, [esi*4]
push edx
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0x14
jmp 0x49c987
mov ecx, dword [0x63e0d8]
call fcn.00477ef0
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x49c83d
xor ebx, ebx
xor esi, esi
jmp 0x49c987
mov ecx, edi
call fcn.004e8580
mov dword [esp + 0x3c], eax
test eax, eax
je 0x49c964
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push 0
push edx
push eax
push ecx
call fcn.004ed100
mov edi, eax
add esp, 0x10
test edi, edi
je 0x49c955
mov ecx, edi
xor ebx, ebx
call fcn.0042be00
test eax, eax
jle 0x49c8b3
push ebx
mov ecx, edi
call fcn.004eac20
cmp eax, 3
jne 0x49c89b
push ebx
mov ecx, edi
call fcn.004eac30
cmp eax, 1
je 0x49c8b3
push ebx
mov ecx, edi
call fcn.004eac20
test eax, eax
je 0x49c8b3
mov ecx, edi
inc ebx
call fcn.0042be00
cmp ebx, eax
jl 0x49c881
mov ecx, edi
call fcn.0042be00
cmp ebx, eax
jge 0x49c943
mov eax, dword [esp + 0x3c]
cmp dword [eax + 4], 0
jne 0x49c8d6
mov dword [esp + 0x18], 0x10000
jmp 0x49c8dd
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push 4
push ecx
call fcn.00497310
xor esi, esi
add esp, 8
cmp dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
jle 0x49c943
jmp 0x49c900
mov ecx, dword [esp + 0x3c]
push 8
lea edx, [esp + 0xa0]
push edx
push esi
call fcn.004ac430
test eax, eax
jle 0x49c931
mov eax, dword [esp + 0x9c]
push eax
push ebx
mov ecx, edi
call fcn.004eac50
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi*4], eax
jmp 0x49c93c
mov edx, dword [esp + 0x34]
mov dword [edx + esi*4], 0xffffffff
inc esi
cmp esi, dword [esp + 0x18]
jl 0x49c900
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
call fcn.004ad820
mov edi, dword [esp + 0x10]
jmp 0x49c987
mov eax, dword [edi + 0x14]
test eax, eax
je 0x49c970
mov eax, dword [eax + 4]
jmp 0x49c975
mov eax, str._unnamed_
push eax
push 0x5c4ca0
push 0xffffffffffffffff
push 1
call fcn.00489570
add esp, 0x10
mov edi, dword [edi + 0x20]
test edi, edi
je 0x49c993
mov eax, dword [edi + 4]
jmp 0x49c995
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x48]
push esi
push ebx
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [eax + 0xcc]
push edx
call fcn.004d7ce0
jmp 0x49c752
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004e86f0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ebx, dword [esp + 0x50]
add esp, 4
mov eax, dword [esi + 4]
fld qword [ebx + 0x1f0]
fld qword [eax + 0x10]
mov eax, dword [eax + 0x18]
fld qword [ebx + 0x1f8]
mov dword [esp + 0x4c], eax
fmul qword [ebx + 0x238]
fld qword [ebx + 0x200]
fmul qword [ebx + 0x238]
fld st(1)
fmul st(3)
fadd qword [ebx + 0x208]
fld st(1)
fmulp st(4)
fxch st(3)
fadd qword [ebx + 0x210]
fxch st(2)
fmul st(4)
fst qword [esp + 0x24]
fxch st(1)
fmul st(4)
fst qword [esp + 0x2c]
fxch st(3)
fmul st(4)
fstp qword [esp + 0x1c]
fxch st(1)
fmulp st(3)
fxch st(2)
fstp qword [esp + 0x74]
cmp eax, 0xb
ja 0x49cb69
mov edi, dword [esp + 0x10]
fstp st(1)
fstp st(0)
xor ebx, ebx
fld1
mov dword [esp + 0x18], ebx
fstp qword [esp + 0x44]
add edi, 0xa4
fldz
fstp qword [esp + 0x34]
nop
mov ecx, dword [edi]
test ecx, ecx
je 0x49cb1d
mov al, byte [ecx]
test al, al
je 0x49cb1d
cmp byte [ecx + 1], 0
jne 0x49cb1d
cmp al, 0x41
jl 0x49ca86
cmp al, 0x5a
jle 0x49ca9e
cmp al, 0x61
jl 0x49ca8e
cmp al, 0x7a
jle 0x49ca9e
cmp al, 0x30
jl 0x49cb1d
cmp al, 0x39
jg 0x49cb1d
mov eax, dword [esp + 0x10]
movzx edx, bl
fld qword [eax + edx*8 + 0x5b8]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
fstp qword [esp + 0x3c]
push edx
push ecx
mov ecx, dword [eax*4 + 0x631278]
mov ecx, dword [ecx + 0x14]
call fcn.004d7690
fld qword [0x57d350]
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x49cb1b
mov ax, word [esp + 0x50]
cmp ax, 0xa
jbe 0x49cb1b
movzx edx, ax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fmul qword [0x5c4c98]
fdivp st(1)
fld qword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x49cb0d
fst qword [esp + 0x44]
fadd qword [esp + 0x34]
inc dword [esp + 0x18]
fstp qword [esp + 0x34]
jmp 0x49cb1d
fstp st(0)
inc ebx
add edi, 4
cmp ebx, 0x100
jl 0x49ca60
cmp dword [esp + 0x18], 0
je 0x49cb61
fild dword [esp + 0x18]
fdivr qword [esp + 0x34]
fld1
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x49cb5f
fadd qword [esp + 0x44]
fmul qword [0x579e48]
fld qword [esp + 0x24]
fmul st(1)
fxch st(1)
fmul qword [esp + 0x2c]
jmp 0x49cb69
fstp st(0)
fld qword [esp + 0x24]
fld qword [esp + 0x2c]
mov edi, dword [esp + 0x14]
fxch st(1)
mov ecx, dword [edi + 0xc8]
fstp qword [esp + 0x7c]
fstp qword [esp + 0x84]
fld qword [esp + 0x1c]
fstp qword [esp + 0x8c]
fld qword [esp + 0x74]
fstp qword [esp + 0x94]
call fcn.00414830
mov ecx, dword [edi + 0xcc]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.004d7d20
mov dword [edi + 0xf8], eax
jmp 0x49cbbc
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0x10c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10b0]
xor ecx, esp
call fcn.00551b9a
mov esp, ebp
pop ebp
ret 4