Function at 0x485d95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4cb0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x4beffc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov esi, ebx
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x18], ebx
je 0x486060
push dword [ebp - 0x18]
inc eax
push 8
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004452ea
add esp, 0x1c
test eax, eax
jne 0x48600c
push ebx
push ebx
push ebx
push str.1.2.7
call fcn.00445a04
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x48600c
push ebx
push eax
call sub.MSVCR120.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x486006
push dword [ebp - 0x10]
call fcn.0044540d
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x486006
push dword [ebp - 0x10]
call fcn.0044540d
mov dword [ebp - 0x28], eax
pop ecx
test eax, eax
je 0x486006
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.004458e6
push 8
push dword [ebp - 0x10]
call fcn.004452bd
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00445dc8
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0044bf8d
push eax
mov dword [ebp - 0x38], eax
call fcn.00497198
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call fcn.0044bfb8
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], esi
call fcn.0044bfd0
mov ebx, eax
add esp, 0x34
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1d], 3
jne 0x485ede
push dword [ebp - 0x10]
call fcn.004474ba
push dword [ebp - 0x10]
call fcn.00446faf
push dword [ebp - 0x10]
call fcn.00446f95
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [ebp - 0x2c]
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x20], 0
je 0x485f05
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x486009
push ebx
push esi
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [edi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x42c
call fcn.00497198
mov esi, eax
mov dword [esp], 0x42c
push 0
push esi
mov dword [ebp - 0x24], esi
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [esi], 0x2c
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx + 0x1d]
shl cx, 3
mov word [esi + 0xe], cx
xor ecx, ecx
mov dword [esi + 4], eax
inc ecx
mov eax, ebx
mov dword [esi + 8], ebx
imul eax, dword [ebp - 0x38]
mov word [esi + 0xc], cx
and dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1d], cl
jne 0x485fa4
xor eax, eax
lea ecx, [esi + 0x29]
mov byte [ecx + 1], al
mov byte [ecx], al
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
inc eax
mov byte [ecx - 2], 0
cmp eax, 0x100
jl 0x485f7a
xor ecx, ecx
mov word [esi + 0x429], 0xffff
mov byte [esi + 0x428], 0xff
inc ecx
dec ebx
jns 0x485fc0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00446731
pop ecx
pop ecx
mov dword [ebp - 0x20], 1
jmp 0x48600c
xor ecx, ecx
inc ecx
push ecx
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00446659
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
push dword [ebp - 0x1c]
push 1
push ebx
push dword [edi + 0x18]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_SetDIBits]
push edi
test eax, eax
je 0x485ffe
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec ebx
jns 0x485fbd
jmp 0x485fa7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x48600c
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0
je 0x48601c
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR120.dll_fclose]
pop ecx
cmp dword [ebp - 0x10], 0
je 0x486036
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00446af2
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x486045
push dword [ebp - 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
pop ecx
test esi, esi
je 0x486050
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x20], 0
jne 0x48605d
mov ecx, edi
call fcn.004846f7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004971ea
mov esp, ebp
pop ebp
ret 4