Function at 0x421730
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x421a5f
push esi
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, ebx
call fcn.00461f3c
mov edx, dword [ebx + 0x20]
push esi
push esi
push 0x111f
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00460255
lea ecx, [esp + 0x44]
mov edi, eax
call fcn.0045fceb
cmp edi, esi
mov dword [esp + 0x90], esi
jne 0x4217bb
xor eax, eax
jmp 0x4217be
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.00460263
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], vtable.CBitmap.0
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.0046052a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.004605f8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push 0xcc0020
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [esp + 0x5c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
mov byte [esp + 0x90], 2
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call esi
push eax
lea ecx, [esp + 0x30]
call fcn.0046052a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.004605f8
mov dword [esp + 0x20], eax
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4218b5
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x90], 3
mov esi, dword [ebx + 0x68]
add ebx, 0x60
push 3
push ebx
mov dword [esp + 0x20], ebx
lea ebx, [esp + 0x1c]
call fcn.0040c370
mov ecx, dword [esp + 0x18]
xor ebx, ebx
push ebx
push 0xe
push 8
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040c9f0
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push edx
push eax
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.0046552a
lea esi, [esp + 0x54]
call fcn.0040fc30
mov byte [esp + 0x90], 4
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x58], ecx
call fcn.0040f8b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x60]
push ecx
push ebx
push ebx
push eax
call fcn.00413430
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push 0xcc0020
push ebx
push ebx
push esi
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x20]
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x71], bl
mov byte [esp + 0x70], bl
jne 0x4219c8
xor eax, eax
jmp 0x4219cb
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.004605f8
lea ecx, [esp + 0x2c]
call fcn.0046057d
lea ecx, [esp + 0x24]
call fcn.0046057d
lea ecx, [esp + 0x44]
call fcn.004602c7
lea ecx, [esp + 0x54]
call fcn.0040fb50
mov byte [esp + 0x90], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 1
mov edi, vtable.CBitmap.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
call fcn.0040f0a0
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edi
call fcn.0040f0a0
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], esi
call fcn.004602dd
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4