Function at 0x4e8410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a0209
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4e8480
cmp dword [0x5efc0c], 0
je 0x4e8451
mov ecx, dword [0x5efc0c]
mov dword [ebp - 0x94], ecx
jmp 0x4e845c
call fcn.0050afb0
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
push edx
call dword [0x5be788]
add esp, 4
push 0x8000
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a0209
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4e848d
xor eax, eax
jmp 0x4e8a65
push 0x16
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0059a0e4
add esp, 0xc
cmp eax, 0x16
je 0x4e84b7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005974b0
add esp, 4
xor eax, eax
jmp 0x4e8a65
push 2
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00595983
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0x9ac6cdd7
jne 0x4e84f7
push 0
push 0x16
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00595983
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
sub ecx, 0x16
mov dword [ebp - 0x20], ecx
jmp 0x4e8507
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00595983
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
call fcn.0059306c
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e852f
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005974b0
add esp, 4
xor eax, eax
jmp 0x4e8a65
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x20], 0xfffe
jle 0x4e854b
mov dword [ebp - 0x98], 0xfffe
jmp 0x4e8554
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e85bf
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0059a0e4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e8585
jmp 0x4e85bf
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x14]
cmp edx, 0xfffe
jle 0x4e85a8
mov dword [ebp - 0x9c], 0xfffe
jmp 0x4e85b4
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x18], ecx
jmp 0x4e855d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005974b0
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e85f5
mov edx, dword [ebp - 8]
push edx
call fcn.00593e07
add esp, 4
xor eax, eax
jmp 0x4e8a65
cmp dword [0x5efb14], 0
je 0x4e860b
mov eax, dword [0x5efb14]
mov dword [ebp - 0xa0], eax
jmp 0x4e8616
call fcn.0044e5e8
mov dword [ebp - 0xa0], eax
push 1
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [0x5bf8b0]
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0x14]
movsx eax, word [edx + 0xa]
mov ecx, dword [ebp + 0x14]
movsx edx, word [ecx + 6]
sub eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
movsx ecx, word [eax + 0xc]
mov edx, dword [ebp + 0x14]
movsx eax, word [edx + 8]
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 8
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
push 0
push 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [ebp + 0xc]
fld qword [eax + 0x1a8]
fcomp qword [0x5a45d8]
fnstsw ax
test ah, 0x41
je 0x4e86b4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1a8], 0
mov dword [ecx + 0x1ac], 0x3ff00000
mov edx, dword [ebp + 0xc]
fld qword [edx + 0x1b0]
fcomp qword [0x5a45d8]
fnstsw ax
test ah, 0x41
je 0x4e86e1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1b0], 0
mov dword [eax + 0x1b4], 0x3ff00000
mov ecx, dword [ebp + 0xc]
fld qword [ecx + 0x100]
fcomp qword [0x5a45d8]
fnstsw ax
test ah, 0x41
je 0x4e870e
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x100], 0
mov dword [edx + 0x104], 0x3ff00000
mov eax, dword [ebp + 0xc]
fld qword [eax + 0x190]
fcomp qword [0x5a45d8]
fnstsw ax
test ah, 0x41
je 0x4e873b
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x190], 0
mov dword [ecx + 0x194], 0x3ff00000
mov edx, dword [ebp + 0xc]
fld qword [edx + 0x198]
fcomp qword [0x5a45d8]
fnstsw ax
test ah, 0x41
je 0x4e8768
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x198], 0
mov dword [eax + 0x19c], 0x3ff00000
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xbc]
neg edx
mov dword [ebp - 0xa4], edx
fild dword [ebp - 0xa4]
mov eax, dword [ebp + 0xc]
fild dword [eax + 0x1bc]
mov ecx, dword [ebp + 0xc]
fmul qword [ecx + 0x190]
mov edx, dword [ebp + 0xc]
fmul qword [edx + 0x1b0]
faddp st(1)
fst dword [ebp - 0x3c]
fadd qword [0x5a45d0]
call fcn.00594130
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc0]
neg ecx
mov dword [ebp - 0xa8], ecx
fild dword [ebp - 0xa8]
mov edx, dword [ebp + 0xc]
fild dword [edx + 0x1b8]
mov eax, dword [ebp + 0xc]
fmul qword [eax + 0x190]
mov ecx, dword [ebp + 0xc]
fmul qword [ecx + 0x1a8]
faddp st(1)
fst dword [ebp - 0x30]
fadd qword [0x5a45d0]
call fcn.00594130
push eax
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
fild dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
fld qword [eax + 0x100]
fmul qword [ecx + 0x1b0]
fdivp st(1)
fadd qword [0x5a45d0]
call fcn.00594130
push eax
fild dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
fld qword [edx + 0x100]
fmul qword [eax + 0x1a8]
fdivp st(1)
fadd qword [0x5a45d0]
call fcn.00594130
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
fild dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
xor eax, eax
mov ax, word [edx + 0xe]
mov dword [ebp - 0xac], eax
fidiv dword [ebp - 0xac]
fstp dword [ebp - 0x28]
push 0x58
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xb0], eax
fild dword [ebp - 0xb0]
fmul dword [ebp - 0x28]
fadd qword [0x5a45d0]
call fcn.00594130
mov dword [ebp - 0x2c], eax
push 0x58
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x48], eax
push 0x5a
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dx, word [ecx + 0xe]
mov dword [ebp - 0xb4], edx
fidiv dword [ebp - 0xb4]
fstp dword [ebp - 0x28]
push 0x5a
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xb8], eax
fild dword [ebp - 0xb8]
fmul dword [ebp - 0x28]
fadd qword [0x5a45d0]
call fcn.00594130
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x98], 0
je 0x4e894e
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x98]
push eax
call dword [0x5be36c]
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x98]
push edx
call dword [0x5bec7c]
add esp, 4
mov dword [ebp - 0x54], eax
jmp 0x4e8992
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x90]
add edx, dword [ebp - 0x80]
mov dword [ebp - 0x54], edx
push 0x5b54f8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x1c0]
mov dword [ebp - 0xbc], ecx
fild dword [ebp - 0xbc]
mov edx, dword [ebp + 0xc]
fmul qword [edx + 0x100]
mov eax, dword [ebp + 0xc]
fmul qword [eax + 0x1a8]
fadd dword [ebp - 0x30]
fisub dword [ebp - 0x50]
call fcn.00594130
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x44]
add edx, dword [ecx + 0x1c4]
mov dword [ebp - 0xc0], edx
fild dword [ebp - 0xc0]
mov eax, dword [ebp + 0xc]
fmul qword [eax + 0x100]
mov ecx, dword [ebp + 0xc]
fmul qword [ecx + 0x1b0]
fadd dword [ebp - 0x3c]
fisub dword [ebp - 0x54]
call fcn.00594130
push eax
mov edx, dword [ebp + 8]
push edx
call dword [0x5bf654]
add esp, 0x10
cmp dword [0x5efb14], 0
je 0x4e8a26
mov eax, dword [0x5efb14]
mov dword [ebp - 0xc4], eax
jmp 0x4e8a31
call fcn.0044e5e8
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call dword [0x5bf8b0]
add esp, 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret