Function at 0x4118a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], ecx
cmp eax, edi
jne 0x4118bd
or eax, 0xffffffff
jmp 0x411aaf
mov dword [eax], edi
xor ebx, ebx
cmp dword [0x4828e8], edi
jle 0x4118f3
mov esi, 0x4828dc
push ebx
mov ecx, esi
call fcn.00421b62
cmp eax, dword [ebp + 0xc]
je 0x4118e7
inc ebx
inc ebx
cmp ebx, dword [0x4828e8]
jl 0x4118ce
jmp 0x4118f3
inc ebx
mov ecx, esi
push ebx
call fcn.00421b62
mov dword [ebp + 0xc], eax
xor esi, esi
cmp dword [0x4828d4], edi
jle 0x411921
push esi
mov ecx, 0x4828c8
call fcn.00421b62
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
je 0x41191a
inc esi
cmp esi, dword [0x4828d4]
jl 0x4118fd
jmp 0x411921
lea ecx, [eax + 4]
cmp ecx, edi
jne 0x411929
push 0xfffffffffffffffe
pop eax
jmp 0x411aaf
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411950
push 0xfffffffffffffffd
jmp 0x411923
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push esi
call fcn.00411b40
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge 0x41198a
push 0xfffffffffffffffc
jmp 0x411923
push dword [0x4824f0]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
push dword [ebp - 8]
push 4
push dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp esi, edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
jle 0x411a70
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
jle 0x411a70
cmp esi, dword [eax + 4]
jne 0x4119d8
cmp ecx, dword [eax + 8]
je 0x411a70
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x14]
mov ebx, eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push 0xcc0020
push edi
push eax
push dword [ebp - 8]
push dword [eax + 8]
push dword [eax + 4]
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ebx
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x14], 0xffffffff
je 0x411a64
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x411a56
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x411a88
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x411a88
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x411a88
mov eax, dword [ebp - 4]
jmp 0x411a77
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x411a88
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x411a88
mov eax, dword [eax + 8]
mov dword [ecx], eax
push dword [ebp + 0xc]
push dword [0x4824f0]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x1c]
call fcn.0042851e
mov eax, dword [ebp + 8]
pop ecx
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 7
add eax, 0xfffffffa
pop edi
pop esi
pop ebx
leave
ret 0x18