Function at 0x40a670
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x58a110]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a978
xor ebx, ebx
cmp dword [0x5925bc], ebx
jne 0x40a6c1
mov dword [0x5925bc], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0050e12a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041354a
mov edx, dword [eax + 0x20]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ecx, dword [esi + 0x20]
mov edi, eax
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x88]
cmp eax, ebx
jne 0x40a806
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 0x88]
push eax
push ecx
mov dword [esi + 0x8c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40a7f5
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
call fcn.0040f996
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0xcc0020
push eax
push ecx
push edi
sub edx, eax
mov eax, dword [esp + 0x2c]
push edx
sub eax, ecx
mov ecx, dword [esi + 0x88]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x88]
push edx
push eax
jmp 0x40a8be
mov ecx, dword [esi + 0x8c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40a8b2
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
call fcn.0040f996
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi + 0x88]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push ebx
push ebx
push edx
mov edx, dword [esp + 0x2c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x88]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x74]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x90]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x40a8f2
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x54]
push edx
call fcn.0040f996
mov eax, dword [esi + 0x84]
cmp dword [eax - 4], 1
jle 0x40a947
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0x84]
call fcn.00401290
mov edx, dword [esi + 0x84]
push 0x120
lea ecx, [esp + 0x58]
push ecx
push 0xffffffffffffffff
push edx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40a971
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050e12a
mov esp, ebp
pop ebp
ret