Function at 0x4040c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x68], 0
push 0
push 0
push 0
push 0x42f0c0
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0x18], 0
je 0x40411e
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 8], eax
jmp 0x404142
push 0
push 0
push 0
push 0x42f0d0
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404142
jmp 0x40439a
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 ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 8]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0xc], 0
jge 0x40417c
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
jmp 0x40418b
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x48]
jl 0x40418b
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0xc]
cmp dword [ebp - 0x6c], edx
jle 0x40419f
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x64], 0
jge 0x4041c9
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
jmp 0x4041d8
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x60]
jl 0x4041d8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x48], 0x400
jle 0x4041ee
mov dword [ebp - 0x48], 0x400
cmp dword [ebp - 0x60], 0x300
jle 0x4041fe
mov dword [ebp - 0x60], 0x300
cmp dword [ebp - 0x48], 0
je 0x40420a
cmp dword [ebp - 0x60], 0
jne 0x404214
jmp 0x40439a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x404231
jmp 0x40439a
mov dword [ebp - 0x4c], 0
cmp dword [ebp + 0x1c], 1
jne 0x404279
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x40], eax
push 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_PrintWindow]
mov dword [ebp - 0x4c], eax
jmp 0x4042d3
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x44]
push edx
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 0x4042d0
mov edi, edi
push ebp
mov ebp, esp
jmp dword [0x475a4c]
cmp dword [ebp - 0x4c], 0
jne 0x4042e3
jmp 0x40439a
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00418590
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x404322
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40439a
cmp dword [ebp - 0x28], 0
ja 0x404340
movzx ecx, word [ebp - 0x2e]
imul ecx, dword [ebp - 0x38]
add ecx, 0x1f
and ecx, 0xffffffe0
sar ecx, 3
imul ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x404378
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40439a
mov edx, dword [ebp - 0x28]
add edx, 0x2c
mov eax, dword [ebp - 0x78]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x78]
mov edi, dword [ecx]
mov ecx, 0xb
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x44], 0
je 0x4043b1
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x74], 0
je 0x4043c8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x74], 0
cmp dword [ebp - 8], 0
je 0x4043df
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 8], 0
cmp dword [ebp - 0x68], 0
je 0x4043f6
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18