Function at 0x45d210
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp byte [ebp + 0xc], 0x64
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x1c], ebx
jbe 0x45d228
mov byte [ebp + 0xc], 0x64
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0x20], eax
jne 0x45d24a
cmp ebx, eax
je 0x45d239
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], 1
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call esi
push edi
mov dword [ebp - 0x10], eax
call esi
push edi
mov dword [ebp - 0xc], eax
call esi
push dword [ebx + 0x3a9]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call esi
add ebx, 0x448
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call edi
push eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push dword [ebp + 8]
call edi
push eax
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
call esi
mov esi, ebx
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
push dword [esi + 0x3c5]
push dword [esi + 0x3c1]
push edi
push edi
call fcn.0051e5a6
mov eax, dword [ebp - 0x3c]
push 0xcc0020
sub eax, dword [ebp - 0x44]
push edi
push edi
push dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi + 0x428]
lea ecx, [esi + 0x3c]
push eax
push dword [ebp - 0x10]
call fcn.00456c74
cmp dword [esi + 0x3b1], edi
je 0x45d343
cmp dword [esi + 0x3b5], edi
je 0x45d343
cmp dword [esi + 0x3b9], edi
je 0x45d343
push dword [esi + 0x3d2]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
call dword [eax + 0xb8]
mov eax, dword [esi + 0x3ad]
cmp eax, edi
jne 0x45d3a1
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0xc]
mov dword [esi + 0x3ad], eax
call edi
mov eax, dword [ebx + 0xc]
push 0xcc0020
push dword [esi + 0x44c]
sub eax, dword [ebx + 4]
push dword [ebx]
push dword [ebp + 8]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x45d3b1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0xc]
push 0xcc0020
sub eax, dword [ebx + 4]
push 0
push 0
push dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push dword [esi + 0x44c]
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esi + 0x3c1], 0
jne 0x45d3f1
cmp dword [esi + 0x3c5], 0
je 0x45d50c
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x14], eax
push 0x64
movzx eax, byte [esi + 0x3d1]
push 0x64
pop ecx
sub ecx, eax
push ecx
push 0xff
call dword [sym.imp.KERNEL32.DLL_MulDiv]
movzx ecx, al
mov byte [ebp - 1], al
mov eax, 0xff
sub eax, ecx
push 0x64
movzx ecx, byte [ebp + 0xc]
imul eax, ecx
cdq
pop ecx
idiv ecx
add byte [ebp - 1], al
movzx eax, byte [ebp - 1]
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
sub ecx, dword [ebp - 0x44]
xor eax, eax
push 0xff0062
push eax
push eax
push eax
push ecx
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x48]
push ecx
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c]
push dword [esi + 0x3d2]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_FillRgn]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0x3cd]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push dword [esi + 0x3c9]
push dword [esi + 0x3bd]
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push dword [esi + 0x3c5]
push dword [esi + 0x3c1]
lea ecx, [esi + 0x3c]
push dword [ebp - 8]
call fcn.00456e04
mov ecx, eax
call fcn.00450cf4
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x3d2]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
movzx eax, byte [ebp + 0xc]
push 0x64
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push ecx
push 0
push 0
push dword [ebp - 0x10]
lea ecx, [esi + 0x3c]
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push dword [esi + 0x44c]
push dword [ebx]
push dword [ebp - 8]
call fcn.00456e04
mov ecx, eax
call fcn.0044f253
push 0
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebx + 0xc]
push 0xcc0020
sub eax, dword [ebx + 4]
push 0
push 0
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push dword [esi + 0x44c]
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x30]
push dword [ebp - 8]
call edi
push dword [ebp - 0x34]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [ebp - 0x38]
call edi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x20], 0
je 0x45d5dd
test esi, esi
je 0x45d5d3
mov esi, dword [esi + 0x1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
leave
ret 8