Function at 0x46588d
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x4658ac
cmp dword [esi + 0x288], 0
je 0x465aa2
cmp ebx, dword [esi + 0x4c]
jge 0x465aa2
cmp ebx, 0xffffffff
jne 0x4658c2
lea ebx, [esi + 0xf8]
jmp 0x4658cb
imul ebx, ebx, 0x1f0
add ebx, dword [esi + 0x44]
lea eax, [ebx + 0x1ac]
push edi
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x28]
neg eax
push eax
mov eax, dword [ebp - 0x2c]
neg eax
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
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 - 4]
mov dword [ebp - 0x1c], eax
call edi
push 0
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.0045eb08
push eax
push dword [ebp - 4]
call edi
push 1
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esi + 0x39c]
mov dword [ebp - 0x10], 1
call fcn.00450760
test eax, eax
je 0x4659bb
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ecx]
lea ecx, [esi + 0x39c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebx + 0x1b0]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x4c]
push 2
push eax
push dword [ebp - 4]
call fcn.004500c8
jmp 0x465a26
mov eax, dword [esi + 0x40]
test eax, eax
je 0x465a12
cmp dword [eax + 0x1c], 0
jne 0x465a26
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [esi + 0x40]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x1b0]
sub ecx, dword [ebp - 0x48]
mov eax, dword [eax]
sub eax, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x38]
add eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [esi + 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0045c029
mov dword [ebp - 0x10], eax
jmp 0x465a20
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [ebp - 4]
call fcn.00465826
cmp dword [ebp - 0x10], 0
je 0x465a65
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00464f77
mov eax, dword [ebp - 0x20]
push 0xcc0020
sub eax, dword [ebp - 0x28]
push 0
push 0
push dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push dword [ebx + 0x1b0]
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push dword [ebp - 4]
call edi
push dword [ebp - 0x18]
push dword [ebp - 4]
call edi
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
leave
ret 4