Function at 0x4038c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0xcc], ecx
mov dword [ebp + 0x1c], 0
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x42725a
call fcn.00403c70
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x6c], 0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp + 0x18], 0
je 0x403943
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0xc], eax
jmp 0x403962
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403962
jmp 0x403bb0
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
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x10], 0
jge 0x40399c
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x70], ecx
jmp 0x4039ab
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x4c]
jl 0x4039ab
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 0x70], eax
jle 0x4039bf
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x68], 0
jge 0x4039e9
mov dword [ebp - 0x68], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
jmp 0x4039f8
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x64]
jl 0x4039f8
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x4c], 0x400
jle 0x403a0e
mov dword [ebp - 0x4c], 0x400
cmp dword [ebp - 0x64], 0x300
jle 0x403a1e
mov dword [ebp - 0x64], 0x300
cmp dword [ebp - 0x4c], 0
je 0x403a2a
cmp dword [ebp - 0x64], 0
jne 0x403a2f
jmp 0x403bb0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x403a47
jmp 0x403bb0
mov dword [ebp - 0x50], 0
cmp dword [ebp + 0x1c], 1
jne 0x403a8f
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x6c]
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 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PrintWindow]
mov dword [ebp - 0x50], eax
jmp 0x403ae9
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x48]
push eax
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 - 0x10]
push ecx
mov eax, dword [ebp - 0xc]
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 0x403ae6
mov edi, edi
push ebp
mov ebp, esp
jmp dword [0x46ebd4]
cmp dword [ebp - 0x50], 0
jne 0x403af4
jmp 0x403bb0
push 0x2c
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.00414340
add esp, 0xc
mov dword [ebp - 0x40], 0x28
push 0
lea edx, [ebp - 0x40]
push edx
push 0
push 0
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 0x403b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403bb0
cmp dword [ebp - 0x2c], 0
ja 0x403b4f
movzx edx, word [ebp - 0x32]
imul edx, dword [ebp - 0x3c]
add edx, 0x1f
and edx, 0xffffffe0
sar edx, 3
imul edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x403b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403bb0
mov eax, dword [ebp - 0x2c]
add eax, 0x2c
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xcc]
mov edi, dword [edx]
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 0x403bc7
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x78], 0
je 0x403bde
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0xc], 0
je 0x403bf5
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x6c], 0
je 0x403c0c
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x80], ecx
lea eax, [ebp - 0x7c]
call fcn.00403d10
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret 0x18