Function at 0x459f2f
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
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 - 0x28]
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 - 0x10], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xffffffe8
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffd0
push eax
lea eax, [ebp - 0x38]
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
sub dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push esi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x459fc6
mov eax, dword [0x4c8334]
jmp 0x459fe7
sub esi, dword [0x4c8330]
mov eax, dword [ebp - 0x28]
cmp esi, eax
mov dword [ebp + 0x14], esi
jge 0x459fd9
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [0x4c8308]
cmp dword [ebp + 0x14], eax
jle 0x459fea
mov dword [ebp + 0x14], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
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 - 0x54]
add esp, 0xc
sub esi, 4
neg esi
sbb esi, esi
neg eax
push eax
mov eax, dword [ebp - 0x58]
neg eax
push eax
lea eax, [ebp - 0x28]
push eax
inc esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x24]
push dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x58]
sub dword [ebp + 0x14], eax
mov dword [ebp - 0x3c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push dword [ebp - 0x40]
mov dword [ebp + 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x28]
push edi
push eax
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp esi, eax
je 0x45a0ad
push eax
push eax
push eax
push 2
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a0c3
push dword [ebp - 8]
mov edi, dword [ebp + 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
call fcn.00458373
mov edi, dword [ebp - 0x3c]
pop ecx
pop ecx
mov eax, dword [0x4c8308]
sub eax, dword [ebp - 0x28]
push edi
push dword [ebp - 0x40]
add eax, dword [ebp + 0x14]
push 0
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp esi, eax
je 0x45a107
push eax
push eax
push eax
push 3
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a11d
push dword [ebp - 8]
mov edi, dword [ebp + 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
call fcn.00458373
mov edi, dword [ebp - 0x3c]
pop ecx
pop ecx
mov eax, dword [0x4c8308]
sub eax, dword [ebp - 0x28]
push edi
add eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
test esi, esi
je 0x45a166
push 0
push 1
push 1
push 5
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x340]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004588eb
mov ebx, dword [ebp + 8]
add esp, 0x1c
jmp 0x45a198
cmp dword [ebx + 0x344], 0
je 0x45a186
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
call fcn.00458428
jmp 0x45a195
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
call fcn.00458460
add esp, 0xc
push 0xcc0020
push 0
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x40]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x10]
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 0x45a20e
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 + 0x14]
sub eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x45a214
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp - 0x28]
cmp esi, dword [0x4aee64]
je 0x45a233
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 + 0x10]
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