Function at 0x42f510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x4fda68
push esi
call fcn.0041d3a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42f90d
push ebx
push 1
push 0x800
push 0x6a4c30
call fcn.004c37de
push ebx
call fcn.004c35d5
add esp, 0x14
cmp byte [0x6a4d94], 0
je 0x42f6a7
push 0x6a4d94
push str.Source
push str.SOURCE
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
lea eax, [ebp - 0x434]
push eax
push 0x6a4d94
call fcn.004d13c6
add esp, 8
test eax, eax
jne 0x42f6a7
push esi
call fcn.00442df0
add esp, 4
test eax, eax
jle 0x42f640
push esi
call fcn.00442cd0
add esp, 4
test edx, edx
jl 0x42f5f0
jg 0x42f5ce
cmp eax, 0x3b9aca00
jbe 0x42f5f0
push 0x6a4d94
mov ebx, str._s_K_bytes
call fcn.00442cd0
add esp, 4
push 0
push 0x400
push edx
push eax
call fcn.004b4100
jmp 0x42f602
push 0x6a4d94
mov ebx, str._s_bytes
call fcn.00442cd0
add esp, 4
push eax
mov dword [ebp - 0x468], edx
call fcn.0042f920
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push str.Source_File_Size
push str.SOURCEFILESIZE
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
lea eax, [ebp - 0x414]
push eax
call fcn.004d064d
add esp, 4
test eax, eax
je 0x42f6a7
cmp byte [eax], 0
je 0x42f6a7
push eax
lea eax, [ebp - 0x404]
push 0x4ff6e8
push eax
call fcn.00404ce0
lea ecx, [ebp - 0x404]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f676
sub ecx, edx
mov byte [ebp + ecx - 0x405], al
lea eax, [ebp - 0x404]
push eax
push str.Source_Created
push str.SOURCECREATED
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
cmp byte [0x6a4f94], 0
je 0x42f6cf
push 0x6a4f94
push str.Color
push str.COLOR
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
push esi
call fcn.00442cd0
add esp, 4
test edx, edx
jl 0x42f703
jg 0x42f6e5
cmp eax, 0x3b9aca00
jbe 0x42f703
push esi
mov ebx, str._s_K_bytes
call fcn.00442cd0
add esp, 4
push 0
push 0x400
push edx
push eax
call fcn.004b4100
jmp 0x42f711
push esi
mov ebx, str._s_bytes
call fcn.00442cd0
add esp, 4
push eax
mov dword [ebp - 0x468], edx
call fcn.0042f920
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push 0x501c4c
push str.BITMAPFILESIZE
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
lea eax, [ebp - 0x464]
push eax
push esi
call fcn.004d13c6
add esp, 8
test eax, eax
jne 0x42f7c1
lea eax, [ebp - 0x444]
push eax
call fcn.004d064d
push eax
lea eax, [ebp - 0x404]
push 0x4ff6e8
push eax
call fcn.00404ce0
lea ecx, [ebp - 0x404]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f790
sub ecx, edx
mov byte [ebp + ecx - 0x405], al
lea eax, [ebp - 0x404]
push eax
push str.Bitmap_created
push str.BITMAPCREATIONDATE
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
push 0x4fd8ac
call fcn.0041c8c0
push eax
push str.UNITOFMEASURE
call fcn.00412900
mov ecx, dword [0x6a5244]
xor esi, esi
add esp, 0xc
test eax, eax
cmovns esi, eax
test ecx, ecx
je 0x42f849
mov eax, dword [0x6a524c]
test eax, eax
je 0x42f849
xorps xmm3, xmm3
xorps xmm0, xmm0
cvtsi2sd xmm3, dword [0x6a5248]
cvtsi2sd xmm0, ecx
divsd xmm3, qword [0x501db0]
addsd xmm3, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm3, qword [0x4ff3f8]
movsd qword [ebp - 0x46c], xmm3
xorps xmm3, xmm3
cvtsi2sd xmm3, dword [0x6a5250]
divsd xmm3, qword [0x501db0]
addsd xmm3, xmm0
divsd xmm3, qword [0x4ff3f8]
jmp 0x42f889
movd xmm1, dword [0x6a4c38]
movd xmm0, dword [0x6a4c5c]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movd xmm3, dword [0x6a4c3c]
divsd xmm1, xmm0
movd xmm0, dword [0x6a4c60]
cvtdq2pd xmm3, xmm3
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x46c], xmm1
divsd xmm3, xmm0
push esi
sub esp, 8
movsd qword [esp], xmm3
call fcn.0041eeb0
movsd xmm0, qword [ebp - 0x46c]
add esp, 0xc
fstp qword [ebp - 0x474]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.0041eeb0
movsd xmm0, qword [ebp - 0x474]
lea eax, [ebp - 0x404]
push ecx
movsd qword [esp + 8], xmm0
fstp qword [ebp - 0x46c]
movsd xmm0, qword [ebp - 0x46c]
movsd qword [esp], xmm0
push str._.3f_X__.3f_n
push eax
call fcn.00404ce0
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
push str.Print_Width_X_Height
push str.PRINTWIDTHHEIGHT
call fcn.0041b3d0
add esp, 8
mov ecx, edi
push eax
call fcn.0042bd80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f28
mov esp, ebp
pop ebp
ret