Function at 0x48c250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm0, qword [0x58d220]
mov eax, dword [0x58d214]
movsd qword [ebp - 0x118], xmm0
movsd xmm0, qword [0x5824a8]
mov dword [0x58e34c], eax
movsd qword [ebp - 0x120], xmm0
push ebx
push esi
push edi
test eax, eax
jne 0x48c2a7
xorps xmm0, xmm0
movsd qword [0x58d220], xmm0
movsd qword [0x5824a8], xmm0
mov ebx, dword [0x58cfd8]
mov dword [ebp - 0x110], ebx
call fcn.0043edb0
test eax, eax
je 0x48c2d4
movsd xmm0, qword [ebx + 0xe8]
addsd xmm0, qword [0x4fd780]
movsd qword [ebx + 0xe8], xmm0
mov eax, dword [0x588cdc]
mov dword [0x58d214], 1
test eax, eax
je 0x48c2ed
push 0
push 4
call eax
call fcn.00491a10
test eax, eax
je 0x48c300
push 1
call fcn.00492220
add esp, 4
cmp dword [0x58cfe0], 0
push dword [0x588d1c]
je 0x48c316
call fcn.0048a400
jmp 0x48c31b
call fcn.00487820
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
sete al
push eax
push ecx
mov ecx, esp
push str.File_Open_Image_Create_Init_
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
call fcn.004925a0
add esp, 8
test esi, esi
jne 0x48c508
call dword [0x588cfc]
mov esi, eax
test esi, esi
jne 0x48c4df
push 1
push ecx
mov ecx, esp
push str.File_Open_Image_Create_J1_
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
call fcn.004925a0
push 0x5824a4
mov dword [0x588ce8], 2
call fcn.0048a920
mov esi, eax
mov dword [ebp - 0x10c], eax
mov eax, dword [0x588f9c]
add esp, 0xc
mov dword [0x588ce8], 1
mov ecx, 1
test esi, esi
je 0x48c3ae
cmp dword [0x588f6c], 0
cmove eax, ecx
jmp 0x48c3c0
cmp dword [0x588f6c], 0
cmove eax, ecx
xor esi, esi
mov dword [ebp - 0x10c], esi
mov dword [0x588f9c], eax
xor eax, eax
test esi, esi
sete al
push eax
push ecx
mov ecx, esp
push str.File_Open_Image_Create_J2_
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
call fcn.004925a0
add esp, 8
test esi, esi
jne 0x48c4df
cmp dword [0x5822d4], esi
je 0x48c4d2
cmp dword [0x588fc0], esi
jne 0x48c4c2
call fcn.00485770
test eax, eax
je 0x48c4df
cmp dword [0x588fc0], esi
jne 0x48c4c2
call fcn.00485550
mov edi, dword [0x588f6c]
push esi
mov ebx, dword [edi + 0x50]
push ebx
push dword [0x588f68]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [edi + 0x54]
mov edx, 0x100
sub eax, ebx
add esp, 0xc
cmp eax, edx
mov esi, edi
cmovb edx, eax
nop dword [eax]
test edx, edx
je 0x48c498
push dword [0x588f68]
lea eax, [ebp - 0x104]
push edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x48c498
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0048a7c0
mov ecx, dword [esi + 0x54]
add ebx, edi
sub ecx, ebx
mov edx, 0x100
add esp, 8
cmp ecx, edx
cmovb edx, ecx
test eax, eax
je 0x48c450
push str._nsystemdict__showpage_get_exec_n
call fcn.0048a880
add esp, 4
call fcn.00485740
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x110]
mov dword [0x5822d4], 0
jmp 0x48c4df
call fcn.00485700
test eax, eax
jne 0x48c4df
mov dword [0x5822d4], eax
jmp 0x48c4df
push str._nsystemdict__showpage_get_exec_n
call fcn.0048a880
add esp, 4
cmp dword [0x5822d0], 0
jl 0x48c4ee
call dword [0x588d04]
mov eax, dword [0x588cf8]
test eax, eax
je 0x48c4f9
call eax
mov eax, dword [0x588cdc]
test eax, eax
je 0x48c508
push 0x64
push 6
call eax
call fcn.0043edb0
test eax, eax
je 0x48c529
movsd xmm0, qword [ebx + 0xe8]
subsd xmm0, qword [0x4fd780]
movsd qword [ebx + 0xe8], xmm0
mov eax, dword [0x58e34c]
movsd xmm0, qword [ebp - 0x118]
mov dword [0x58d214], eax
xor eax, eax
test esi, esi
movsd qword [0x58d220], xmm0
movsd xmm0, qword [ebp - 0x120]
sete al
movsd qword [0x5824a8], xmm0
push eax
push ecx
mov ecx, esp
push str.File_Open_Image_Create_
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
call fcn.004925a0
mov ecx, dword [ebp - 4]
add esp, 8
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop edi
pop esi
pop ebx
lea eax, [eax*2 - 1]
call fcn.004b61c2
mov esp, ebp
pop ebp
ret