Function at 0x10ba59d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x4e]
test eax, eax
je 0x10ba5c99
mov eax, dword [esp + 0x2c]
push esi
push ebp
push ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov eax, dword [edi + 0x34]
test eax, eax
mov dword [esp + 0x2c], ebp
je 0x10ba5a28
mov ecx, dword [edi + 0x52]
test ecx, ecx
je 0x10ba5a11
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x10ba5a11
push 1
push ecx
jmp 0x10ba5a14
push 1
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x10ba5a35
push 1
push ebp
push edi
call sym.PBVM90.dll_osImagePalette
mov dword [esp + 0x18], eax
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call ebx
push ebp
mov esi, eax
call ebx
push 3
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [edi + 0x30]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x4a]
test eax, eax
jne 0x10ba5aa0
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [edi + 0x4a], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push 0xcc0020
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x52]
test eax, eax
je 0x10ba5b83
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x10ba5b5c
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 0x52]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x8800c6
push 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0
push ebx
push ecx
push ebp
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x52]
mov ecx, dword [eax + 0x1c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xee0086
push 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push ebx
push edx
push ebp
push eax
push ecx
jmp 0x10ba5bb6
mov edx, dword [eax + 0x1c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
push ebx
push eax
push ebp
push ecx
push edx
jmp 0x10ba5bb6
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x4a]
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x34], eax
xor eax, eax
push ecx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
mov edx, dword [esp + 0x3c]
push 0
push ebx
push edx
push ebp
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cmp edx, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
je 0x10ba5c04
mov eax, ebp
imul eax, edx
xor edx, edx
div ecx
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
imul eax, dword [edi + 0x10]
div ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0x14]
mov edi, dword [edi + 0x24]
cmp ecx, edi
je 0x10ba5c28
mov eax, dword [esp + 0x34]
xor edx, edx
imul eax, ecx
div edi
xor edx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
imul eax, ecx
div edi
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push 0xcc0020
push edx
mov edx, dword [esp + 0x1c]
push ebp
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push esi
push ecx
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
add eax, ecx
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
add eax, edx
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10ba5c8a
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
pop ebp
pop esi
pop edi
add esp, 0x20
ret 0x10