Function at 0x100010a5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
lea eax, [ebp - 0x268]
push 0x104
push eax
push 0xffffffffffffffff
xor ebx, ebx
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push 0x80
push 3
mov dword [ebp + 8], eax
push ebx
push 1
lea eax, [ebp - 0x268]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x24]
push ebx
push ecx
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x10002108
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
push 0x58
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push dword [ebp - 0x18]
call edi
mov dword [ebp - 4], eax
push 0x9ec
push 0x5a
push dword [ebp + 8]
call esi
push eax
push dword [ebp - 0x10]
call edi
mov edi, dword [0x100031bc]
mov ecx, dword [0x100031c0]
sub ecx, dword [0x100031b8]
mov esi, edi
sub esi, dword [0x100031b4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100031a0]
mov dword [0x10003198], ecx
cmp eax, 3
mov dword [0x10003194], esi
jne 0x100011f9
mov eax, ecx
mov edx, esi
imul eax, dword [ebp - 4]
imul edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
cmp edx, eax
setg cl
inc ecx
mov eax, ecx
mov ecx, dword [ebp - 0x20]
mov dword [0x100031a0], eax
cmp eax, 2
jne 0x10001212
mov eax, ecx
imul eax, dword [ebp - 4]
cdq
idiv dword [ebp - 0xc]
mov esi, eax
mov dword [0x10003194], esi
jmp 0x10001229
cmp eax, 1
jne 0x10001229
mov eax, esi
imul eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 4]
mov ecx, eax
mov dword [0x10003198], ecx
mov eax, dword [0x100031a8]
cmp eax, ebx
jne 0x10001247
mov eax, dword [0x100031b4]
sub eax, esi
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [0x100031b4], eax
jmp 0x10001254
cmp eax, 2
jne 0x10001254
sub edi, esi
mov dword [0x100031b4], edi
mov eax, dword [0x100031ac]
cmp eax, ebx
jne 0x10001271
mov eax, dword [0x100031b8]
sub eax, ecx
add eax, dword [0x100031c0]
cdq
sub eax, edx
sar eax, 1
jmp 0x1000127d
cmp eax, 2
jne 0x10001282
mov eax, dword [0x100031c0]
sub eax, ecx
mov dword [0x100031b8], eax
mov eax, dword [0x100031b4]
push dword [ebp + 8]
add eax, esi
mov dword [0x100031bc], eax
mov eax, dword [0x100031b8]
add eax, ecx
mov dword [0x100031c0], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x10003198]
mov dword [0x100031d0], eax
push dword [0x10003194]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp + 8]
mov dword [0x100031d4], eax
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [0x100031d4]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x100031d0]
call esi
mov edx, dword [ebp - 0x10]
push ebx
neg edx
push edx
mov eax, dword [ebp - 8]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push dword [0x10003198]
push dword [0x10003194]
push ebx
push ebx
push dword [0x100031d0]
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [ebp + 0xc]
cmp byte [edi], bl
je 0x100013dd
lea eax, [ebp - 0x60]
push eax
push 0x3c
push ebx
push ebx
push 0x31
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x60]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push dword [0x100031d0]
call esi
push dword [0x1000319c]
mov dword [ebp + 8], eax
push dword [0x100031d0]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [0x100031d0]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xe
push dword [0x100031d0]
call dword [sym.imp.GDI32.dll_SetTextAlign]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [0x10003198]
add eax, 0xfffffff6
push edi
push eax
mov eax, dword [0x10003194]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [0x100031d0]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [ebp + 8]
push dword [0x100031d0]
call esi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x100031e4], ebx
jne 0x100013fd
push fcn.100019f0
push 0xfffffffffffffffc
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x100031e4], eax
cmp dword [ebp + 0x10], ebx
push ebx
jne 0x10001434
push ebx
mov dword [0x100031c8], 0xf
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [0x100031dc], ebx
je 0x10001469
mov eax, dword [0x100031e0]
cmp eax, ebx
je 0x10001469
push ebx
push eax
push 0x5846424e
jmp 0x1000145d
mov esi, 0x5846424e
mov dword [0x100031c8], ebx
push esi
push 0x113
push dword [0x100031cc]
call fcn.100019f0
mov eax, dword [ebp + 0x10]
push ebx
push 0xf
xor edx, edx
pop ecx
div ecx
push eax
push esi
push dword [0x100031cc]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
leave
ret