Function at 0x450680
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x57064e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x450b03
cmp dword [esi + 0x98], 0
mov eax, dword [esp + 0xb4]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x9c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [eax]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x80], edx
mov edx, dword [eax]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x98], ecx
mov ecx, dword [eax]
mov dword [esp + 0x70], edx
mov edx, dword [eax]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [eax]
mov dword [esp + 0x84], ecx
mov ecx, ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0xc]
mov edx, ebp
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
jne 0x45081e
push 0x581258
lea ecx, [esp + 0x18]
call fcn.00409120
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0xac], 0
call fcn.0045b3dc
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0x54]
push eax
mov ecx, ebx
call edx
mov edi, eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x4507e1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x8c]
push edx
mov ecx, ebx
call fcn.00406a60
mov ecx, dword [eax]
mov dword [esi + 0x98], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x9c], edx
test edi, edi
je 0x4507ef
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push edi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45081a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0x80]
cmp eax, edi
jg 0x450830
mov eax, edi
mov edx, dword [esp + 0x7c]
inc eax
add edx, eax
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x64], edx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esi + 0x70], eax
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x4c], ecx
sar eax, 1
sub ecx, eax
add edi, ecx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], edi
call fcn.00454d39
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0xac], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call fcn.0045547f
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CBitmap.0
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 4]
sub edi, ebp
mov ebp, dword [esp + 0x2c]
sub ebp, dword [esp + 0x24]
push edi
push ebp
push eax
mov byte [esp + 0xb4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.00455751
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.0045583f
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x60]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0045fd4e
cmp dword [esi + 0xb0], 0
jne 0x4509ca
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004599c5
mov ecx, eax
call fcn.00455065
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax*2]
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004599c5
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0045546b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x70]
add eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x450989
mov dword [esp + 0x14], eax
jmp 0x450990
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push 0xcc0020
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x50]
push ecx
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0xb0], 0
mov dword [esp + 0x18], eax
jne 0x450a2a
mov ecx, dword [esi + 0x60]
push ecx
lea eax, [esi + 0x88]
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.0044fe00
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.00450180
mov eax, dword [esp + 0x18]
test eax, eax
je 0x450a4f
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x60]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0044f0a0
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004505d0
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push ecx
push edi
push ebp
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x450abd
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0045583f
cmp dword [esp + 0x20], 0
je 0x450acd
lea ecx, [esp + 0x1c]
call fcn.004557a9
lea ecx, [esp + 0x34]
call fcn.004554e8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 1
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00404370
lea ecx, [esp + 0x34]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004554fe
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8