Function at 0x402cc3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
push edi
mov dword [ebp - 0xb4], ecx
and dword [ebp + 0x1c], 0
lea eax, [ebp - 0x78]
push eax
mov edi, 0x426bae
call fcn.00402ff5
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x44], 0
and dword [ebp - 0x74], 0
and dword [ebp - 0x40], 0
and dword [ebp - 8], 0
and dword [ebp - 0x68], 0
push 0
push 0
push 0
push 0x426c1c
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0x18], 0
je 0x402d26
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 8], eax
jmp 0x402d45
push 0
push 0
push 0
push 0x426c1c
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402d45
jmp 0x402f6a
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x48], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0xc], 0
jge 0x402d7c
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
jmp 0x402d88
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x48]
jl 0x402d88
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 0x6c], eax
jle 0x402d9c
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x64], 0
jge 0x402dc3
and dword [ebp - 0x64], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
jmp 0x402dcf
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x60]
jl 0x402dcf
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x48], 0x400
jle 0x402de5
mov dword [ebp - 0x48], 0x400
cmp dword [ebp - 0x60], 0x300
jle 0x402df5
mov dword [ebp - 0x60], 0x300
cmp dword [ebp - 0x48], 0
je 0x402e01
cmp dword [ebp - 0x60], 0
jne 0x402e06
jmp 0x402f6a
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x402e1d
jmp 0x402f6a
and dword [ebp - 0x4c], 0
cmp dword [ebp + 0x1c], 1
jne 0x402e5b
push dword [ebp - 0x60]
push dword [ebp - 0x48]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x40], eax
push 0
push dword [ebp - 0x44]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_PrintWindow]
mov dword [ebp - 0x4c], eax
jmp 0x402eb0
push dword [ebp - 0x60]
push dword [ebp - 0x48]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x40], eax
push 0xcc0020
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0x402ead
mov edi, edi
push ebp
mov ebp, esp
jmp dword [0x46eb34]
cmp dword [ebp - 0x4c], 0
jne 0x402ebb
jmp 0x402f6a
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004125c0
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x402ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402f6a
cmp dword [ebp - 0x28], 0
ja 0x402f14
movzx eax, word [ebp - 0x2e]
imul eax, dword [ebp - 0x38]
add eax, 0x1f
and eax, 0xffffffe0
sar eax, 3
imul eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
add eax, 0x2c
push eax
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x402f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402f6a
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov ecx, dword [ebp - 0xb4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xb4]
mov edi, dword [eax]
push 0xb
pop ecx
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x44], 0
je 0x402f7d
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_DeleteDC]
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x74], 0
je 0x402f90
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebp - 0x74], 0
cmp dword [ebp - 8], 0
je 0x402fa3
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
and dword [ebp - 8], 0
cmp dword [ebp - 0x68], 0
je 0x402fb6
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_DeleteDC]
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
call fcn.00403058
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
leave
ret 0x18