Function at 0x404460
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
push edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x6c], 0
cmp dword [ebp + 8], 0
je 0x4044a8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x4044b5
xor eax, eax
jmp 0x40477f
push 0
push 0
push 0
push 0x42f524
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp + 8], 0
je 0x4044de
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 8], eax
jmp 0x404502
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404502
jmp 0x404720
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x4c], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0xc], 0
jge 0x404527
mov dword [ebp - 0xc], 0
jmp 0x404536
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x4c]
jl 0x404536
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 0x70], eax
jle 0x40454a
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x4c], 0x400
jle 0x40456d
mov dword [ebp - 0x4c], 0x400
cmp dword [ebp - 0x64], 0x300
jle 0x40457d
mov dword [ebp - 0x64], 0x300
cmp dword [ebp - 0x4c], 0
je 0x404589
cmp dword [ebp - 0x64], 0
jne 0x404593
jmp 0x404720
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4045b0
jmp 0x404720
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 1
jne 0x4045ff
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x44], eax
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PrintWindow]
mov dword [ebp - 0x50], eax
jmp 0x404659
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x44], eax
push 0xcc0020
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
push 0x404656
mov edi, edi
push ebp
mov ebp, esp
jmp dword [0x475a4c]
cmp dword [ebp - 0x50], 0
jne 0x404669
jmp 0x404720
push 0x2c
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00418590
add esp, 0xc
mov dword [ebp - 0x40], 0x28
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x4046a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404720
cmp dword [ebp - 0x2c], 0
ja 0x4046c6
movzx ecx, word [ebp - 0x32]
imul ecx, dword [ebp - 0x3c]
add ecx, 0x1f
and ecx, 0xffffffe0
sar ecx, 3
imul ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x4046fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404720
mov edx, dword [ebp - 0x2c]
add edx, 0x2c
mov eax, dword [ebp - 0x7c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ecx]
mov ecx, 0xb
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x48], 0
je 0x404737
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x78], 0
je 0x40474e
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x78], 0
cmp dword [ebp - 8], 0
je 0x404765
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 8], 0
cmp dword [ebp - 0x6c], 0
je 0x40477c
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4