Function at 0x403570
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push esi
push edi
mov dword [ebp - 0xc0], ecx
mov dword [ebp + 0x1c], 0
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x4385b5
call fcn.00403910
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 str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0x18], 0
je 0x4035e9
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 8], eax
jmp 0x403608
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 0x403608
jmp 0x403856
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 edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0xc], 0
jge 0x403642
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x6c], ecx
jmp 0x403651
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x48]
jl 0x403651
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 0x6c], eax
jle 0x403665
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x64], 0
jge 0x40368f
mov dword [ebp - 0x64], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], edx
jmp 0x40369e
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x60]
jl 0x40369e
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x48], 0x400
jle 0x4036b4
mov dword [ebp - 0x48], 0x400
cmp dword [ebp - 0x60], 0x300
jle 0x4036c4
mov dword [ebp - 0x60], 0x300
cmp dword [ebp - 0x48], 0
je 0x4036d0
cmp dword [ebp - 0x60], 0
jne 0x4036d5
jmp 0x403856
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4036ed
jmp 0x403856
mov dword [ebp - 0x4c], 0
cmp dword [ebp + 0x1c], 1
jne 0x403735
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x68]
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 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PrintWindow]
mov dword [ebp - 0x4c], eax
jmp 0x40378f
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x44]
push eax
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 0x40378c
mov edi, edi
push ebp
mov ebp, esp
jmp dword [0x48558c]
cmp dword [ebp - 0x4c], 0
jne 0x40379a
jmp 0x403856
push 0x2c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0041e180
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
push 0
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
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 0x4037d7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403856
cmp dword [ebp - 0x28], 0
ja 0x4037f5
movzx edx, word [ebp - 0x2e]
imul edx, dword [ebp - 0x38]
add edx, 0x1f
and edx, 0xffffffe0
sar edx, 3
imul edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40382e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x403856
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc0]
mov edi, dword [edx]
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 0x40386d
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x74], 0
je 0x403884
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x74], 0
cmp dword [ebp - 8], 0
je 0x40389b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 8], 0
cmp dword [ebp - 0x68], 0
je 0x4038b2
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x78]
call fcn.004039c0
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18