Function at 0x65e710
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov ebp, ecx
push edi
test esi, esi
mov dword [esp + 0x1c], ebp
je 0x65ea66
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x3c]
mov ebx, eax
push ecx
push esi
mov ecx, ebp
call fcn.0065ead0
mov edi, eax
test edi, edi
je 0x65e7b6
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x42]
movsx eax, word [esp + 0x46]
mov ecx, dword [esp + 0x4a]
sub eax, edx
imul eax, ebx
and ecx, 0xffff
mov esi, ecx
shr esi, 1
add eax, esi
cdq
idiv ecx
movsx edx, word [esp + 0x44]
mov ebx, eax
movsx eax, word [esp + 0x48]
sub eax, edx
mov dword [esp + 0x18], ebx
imul eax, dword [esp + 0x10]
add eax, esi
cdq
idiv ecx
jmp 0x65e7ef
mov eax, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebp
call fcn.0065ec10
mov edi, eax
test edi, edi
je 0x65ea66
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub ebx, edx
sub eax, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x14], eax
cmp ecx, 0xffffffff
jne 0x65e81e
push edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x40], 0xa
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa8
ret 0xc
test ebx, ebx
je 0x65ea5f
test eax, eax
je 0x65ea5f
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x65e83d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x65e84c
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.0065ecf0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x65ea50
mov ebx, dword [esp + 0x10]
xor eax, eax
cmp ebx, eax
je 0x65e93d
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
push 0xc
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebx
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
push 2
push 0
push 0
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x28]
push eax
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebx, eax
test ebx, ebx
je 0x65e984
lea ecx, [ebx*4 + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x65e949
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x65ea5f
lea eax, [ebp + 4]
mov word [ebp], 0x300
push eax
push ebx
push edi
mov word [ebp + 2], bx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edi
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x65e9cc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0xa
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0065ce70
test eax, eax
jne 0x65ea09
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
mov edx, dword [ebp + 4]
push 0
push edx
push 0
mov ecx, ebp
call fcn.0065cfe0
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0xa8
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x65ea5f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc