Function at 0x407370
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x248], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x18]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x260], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x18]
push esi
mov dword [ebp - 0x25c], edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [ebp - 0x258], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push ebx
push esi
mov dword [ebp - 0x250], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
jne 0x4073f9
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x250]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x250]
push 0xcc0020
push eax
push ecx
push esi
push edi
push ebx
xor esi, esi
push esi
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0xa4]
lea esi, [ebp - 0x244]
mov dword [ebp - 0xa4], 0x40b710
mov dword [ebp - 0xa0], 0x40b7b0
mov dword [ebp - 0x9c], 0x40b750
mov dword [ebp - 0x98], 0x40b7f0
mov dword [ebp - 0x94], 0x40b8a0
mov dword [ebp - 0x34], 0x432e10
mov dword [ebp - 0x30], 0x7e
mov dword [ebp - 0x244], eax
call fcn.0040b260
mov ecx, dword [ebp - 0x248]
push 0x433618
push ecx
call fcn.0041d831
mov esi, eax
add esp, 8
mov dword [ebp - 0x254], esi
test esi, esi
jne 0x4074c8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x4074ef
push 0x1c
push eax
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push edx
call ecx
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov dword [eax + 8], 0x40b620
mov dword [eax + 0xc], 0x40b650
mov dword [eax + 0x10], 0x40b6a0
mov dword [eax + 0x14], esi
lea eax, [ebp - 0x244]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 3
mov dword [ebp - 0x21c], 2
call fcn.0040ab00
push 0
mov eax, 0x1e
lea ecx, [ebp - 0x244]
call fcn.0040a9c0
lea esi, [ebp - 0x244]
call fcn.0040b4e0
lea edx, [ebx + ebx*2]
push edx
call fcn.0041ceb7
add esp, 8
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], 0
test edi, edi
jle 0x4075e3
xor edi, edi
test ebx, ebx
jle 0x4075b9
xor esi, esi
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x250]
push eax
push edi
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [ebp - 0x24c]
mov byte [esi + edx], al
mov edx, dword [ebp - 0x24c]
mov ecx, eax
shr ecx, 8
mov byte [esi + edx + 1], cl
mov ecx, dword [ebp - 0x24c]
shr eax, 0x10
mov byte [esi + ecx + 2], al
inc edi
add esi, 3
cmp edi, ebx
jl 0x407577
lea edx, [ebp - 0x24c]
push edx
lea esi, [ebp - 0x244]
call fcn.0040b550
mov eax, dword [ebp - 0x248]
inc eax
add esp, 4
mov dword [ebp - 0x248], eax
cmp eax, dword [ebp - 0x25c]
jl 0x40756f
lea esi, [ebp - 0x244]
call fcn.0040b390
mov eax, dword [ebp - 0x240]
xor esi, esi
cmp eax, esi
je 0x407609
mov edx, dword [eax + 0x28]
lea ecx, [ebp - 0x244]
push ecx
call edx
add esp, 4
mov eax, dword [ebp - 0x24c]
push eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x230], esi
call fcn.0041d4ab
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0041dafa
mov edx, dword [ebp - 0x250]
add esp, 8
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret