Function at 0x45a251
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
call fcn.0045834a
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x344]
neg eax
mov esi, 0x4c8320
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sbb eax, eax
and eax, 0x4000
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffd0
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xffffffe8
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor edi, edi
push edi
mov esi, ebx
call fcn.004582ea
add dword [ebp - 0x28], eax
push edi
call fcn.004582ea
mov esi, dword [ebp + 0x14]
sub dword [ebp - 0x20], eax
pop ecx
pop ecx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x45a2e8
mov eax, dword [0x4c8334]
jmp 0x45a309
sub esi, dword [0x4c8330]
mov eax, dword [ebp - 0x28]
cmp esi, eax
mov dword [ebp + 0x10], esi
jge 0x45a2fb
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [0x4c8308]
cmp dword [ebp + 0x10], eax
jle 0x45a30c
mov dword [ebp + 0x10], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
push 1
push ebx
push edi
mov dword [ebp - 4], eax
call fcn.00458896
mov esi, eax
mov eax, dword [ebp - 0x58]
add esp, 0xc
sub esi, 4
neg esi
sbb esi, esi
neg eax
push eax
mov eax, dword [ebp - 0x5c]
neg eax
push eax
lea eax, [ebp - 0x2c]
push eax
inc esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x58]
sub dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
sub edi, dword [ebp - 0x2c]
push dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x40]
mov dword [ebp + 0x14], eax
push edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push edi
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp esi, eax
je 0x45a3d4
push eax
push eax
push eax
push 2
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a3ea
push dword [ebp - 8]
mov edi, dword [ebp + 0x14]
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
call fcn.00458373
mov edi, dword [ebp - 0x44]
pop ecx
pop ecx
push dword [ebp - 0x40]
mov eax, dword [0x4c8308]
mov ecx, dword [ebp - 0x10]
push edi
add eax, ecx
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp esi, eax
je 0x45a42d
push eax
push eax
push eax
push 3
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a443
push dword [ebp - 8]
mov edi, dword [ebp + 0x14]
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
call fcn.00458373
mov edi, dword [ebp - 0x44]
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4c8308]
add ecx, eax
push ecx
push edi
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
test esi, esi
je 0x45a486
push 0
push 1
push 1
push 5
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a4b8
cmp dword [ebx + 0x344], 0
je 0x45a4a6
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x14]
call fcn.00458428
jmp 0x45a4b5
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x14]
call fcn.00458460
add esp, 0xc
push 0xcc0020
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x40]
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
test eax, eax
jle 0x45a52e
mov ecx, dword [ebp - 0x20]
sub ecx, dword [0x4c8308]
sub eax, dword [ebx + 0x18]
sub ecx, dword [ebp - 0x28]
inc eax
push ecx
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x45a534
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp - 0x28]
cmp esi, dword [0x4aee64]
je 0x45a553
push esi
push 5
push dword [0x4c8340]
mov dword [ebx + 0x20], esi
push dword [ebp + 0xc]
call fcn.004584a4
add esp, 0x10
push 2
push ebx
push dword [ebp + 0x14]
mov dword [0x4aee64], esi
mov esi, dword [ebp + 0xc]
call fcn.00458896
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret