Function at 0x480f43
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0x4bc86c
push eax
lea eax, [ebp - 0x18]
mov ebx, ecx
xor esi, esi
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x480f96
xor eax, eax
jmp 0x481206
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
push 8
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00445b79
add esp, 0x1c
test eax, eax
jne 0x4811b6
push edi
push edi
push edi
push str.1.2.7
call fcn.0044627b
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4811b6
push edi
push eax
call sub.MSVCR100.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x4811b0
push dword [ebp - 0x10]
call fcn.00445c9c
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4811b0
push dword [ebp - 0x10]
call fcn.00445c9c
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x4811b0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00446154
push 8
push dword [ebp - 0x10]
call fcn.00445b50
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0044660a
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0044c2c3
push eax
mov dword [ebp - 0x3c], eax
call fcn.0049608e
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call fcn.0044c2f5
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x10]
call fcn.0044c30d
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
add esp, 0x34
cmp byte [eax + 0x1d], 3
jne 0x48108c
push dword [ebp - 0x10]
call fcn.00447c96
push dword [ebp - 0x10]
call fcn.00447781
push dword [ebp - 0x10]
call fcn.00447767
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [ebp - 0x38]
push ebx
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x20], edi
je 0x4810b1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4811b3
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x42c
push edi
call fcn.0049608e
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x24], esi
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x34]
mov dword [esi], 0x2c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x1d]
shl ax, 3
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov dword [esi + 8], edi
mov word [esi + 0xc], ax
and dword [esi + 0x10], 0
mov eax, edi
imul eax, dword [ebp - 0x3c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp byte [eax + 0x1d], 1
jne 0x48118d
xor ecx, ecx
lea eax, [esi + 0x29]
mov byte [eax + 1], cl
mov byte [eax], cl
mov byte [eax - 1], cl
mov byte [eax + 2], 0
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x481129
mov word [esi + 0x429], 0xffff
mov byte [esi + 0x428], 0xff
jmp 0x48118d
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00446e7c
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
push dword [ebp - 0x1c]
push 1
push edi
push dword [ebx + 0x18]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_SetDIBits]
push ebx
test eax, eax
je 0x4811a6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec edi
jns 0x481153
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00446f42
pop ecx
pop ecx
mov dword [ebp - 0x20], 1
jmp 0x4811ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
jmp 0x4811b6
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x18], edi
je 0x4811c5
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
cmp dword [ebp - 0x10], edi
je 0x4811de
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004472e3
add esp, 0xc
cmp dword [ebp - 0x1c], edi
je 0x4811ec
push dword [ebp - 0x1c]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp esi, edi
je 0x4811f7
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x20], edi
jne 0x481203
mov ecx, ebx
call fcn.00480d81
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049614a
leave
ret 4