Function at 0x412255
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
lea ebp, [esi + 4]
push 0x3f1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esi + 0x2ac], 0
mov edi, eax
je 0x41244b
cmp dword [esi + 0x2a8], 0
je 0x41244b
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41244b
xor eax, eax
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
lea ecx, [esp + 0x20]
push ecx
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x2dc], 0
jne 0x4122fc
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x2dc], eax
mov eax, dword [esp + 0x28]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 0x2dc]
push eax
push ecx
mov dword [esi + 0x2e0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x2a8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call edx
mov ecx, dword [esi + 0x2ac]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x18]
push edx
call eax
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00411bb0
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esi + 0x2a4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
neg eax
push 0
push eax
mov eax, dword [esp + 0x38]
neg eax
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x40]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x44]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [eax + 0xc], ebp
mov eax, dword [esi + 0x2dc]
push eax
call edx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2a8]
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
mov ebp, dword [ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x2dc]
mov edx, dword [ebp + 0x10]
push eax
call edx
mov ecx, dword [esi + 0x2ac]
mov ebp, dword [ecx]
push 0
push 0
mov eax, dword [esi + 0x2d4]
sub eax, 0x76
push eax
xor edx, edx
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], edx
mov edx, 0x76
mov dword [eax + 8], edx
mov edx, 0xa
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x2dc]
mov eax, dword [ebp + 0x10]
push edx
call eax
mov ecx, dword [esi + 0x2dc]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
push ecx
push edx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret