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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10040504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x84], ebx
push edi
mov edi, ebx
mov dword [ebp - 0x70], edi
test ecx, ecx
jne 0x1001160d
mov eax, 0x80070057
jmp 0x100118ff
push esi
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [eax + 0x24]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x10011632
mov eax, 0x80004005
jmp 0x100118fe
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10011667
push ebx
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.kernel32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x98]
push ecx
push ebx
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 - 0x84]
mov edi, 0x80004005
push eax
xor eax, eax
inc eax
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x100118fc
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push 0x10033180
push esi
push ebx
push dword [ebp - 0x84]
mov dword [ebp - 0x74], esi
call dword [sym.imp.oleaut32.dll_OleCreatePictureIndirect]
test eax, eax
js 0x100118e6
push esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.user32.dll_GetDC]
mov esi, eax
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x70], eax
mov ecx, edi
test ebx, ebx
je 0x100118d6
test eax, eax
je 0x100118d6
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
push edx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
call esi
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x78]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x1002f4d0]
call esi
mov esi, 0x9ec
push esi
push 0x58
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_MulDiv]
push esi
push 0x5a
mov edi, eax
push ebx
mov dword [ebp - 0x90], edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_MulDiv]
mov esi, eax
lea eax, [ebp - 0x40]
push 0x28
push 0
push eax
mov dword [ebp - 0x8c], esi
call fcn.100194b0
push 0x28
pop eax
push 0x18
mov dword [ebp - 0x38], esi
xor ecx, ecx
pop esi
push eax
mov dword [ebp - 0x40], eax
inc ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x3c], edi
push 0
push eax
mov word [ebp - 0x34], cx
mov word [ebp - 0x32], si
call fcn.100194b0
mov ecx, dword [ebp - 0x94]
add esp, 0x18
mov word [ebp - 0x5e], si
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], 0x28
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0x2c]
xor ecx, ecx
mov dword [ebp - 0x64], eax
xor eax, eax
push ecx
inc eax
mov dword [ebp - 0x88], ecx
push ecx
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x88]
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
xor ecx, ecx
mov dword [ebp - 0x7c], eax
push ecx
push ecx
lea eax, [ebp - 0x88]
push eax
push ecx
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push dword [ebp - 0x7c]
mov esi, eax
push ebx
mov dword [ebp - 0xa8], esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x74]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x78]
neg eax
mov dword [ebp - 8], edx
push eax
push dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x14], edi
push dword [ebp - 0x78]
mov esi, dword [ecx]
mov edi, 0x80004005
push eax
push edx
push dword [ebp - 0x90]
push eax
push eax
push ebx
push ecx
mov ecx, dword [esi + 0x20]
call dword [0x1002f4d0]
call dword [esi + 0x20]
test eax, eax
js 0x100118ba
mov eax, dword [ebp - 0x94]
xor edi, edi
push 0xcc0020
push dword [ebp - 0x8c]
mov esi, dword [ebp - 0x70]
push dword [ebp - 0x90]
push edi
push edi
push ebx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push edi
push edi
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0x9c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xa0]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1002f4d0]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1002f4d0]
call esi
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10016f89
leave
ret 4