Function at 0x418e76
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
xor eax, eax
mov byte [esp + 0x1b], dl
push eax
push eax
push eax
push str.DISPLAY
mov ebx, ecx
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xb4]
mov ebp, eax
call fcn.00419325
mov dword [esp + 0x14], eax
mov edi, edx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x418ec3
test edi, edi
jne 0x418ee2
mov ecx, dword [esp + 0xb4]
shl ecx, 4
mov ecx, dword [ecx + 0x472d98]
call fcn.00419367
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
test eax, eax
je 0x418f36
test edi, edi
je 0x418f36
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x24]
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
shl eax, 4
mov ecx, dword [eax + 0x472d98]
call fcn.0041939d
push edi
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x418f4f
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebp
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x4660a4
mov ecx, ebx
call fcn.00402093
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa0
ret
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x418f6a
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebp
call esi
push edi
jmp 0x418f30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push eax
push ecx
push dword [esp + 0x34]
push dword [esp + 0x34]
push esi
push eax
push ecx
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x418f5b
cmp byte [esp + 0x1b], 0
je 0x419014
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x14
push eax
call dword [0x475794]
test eax, eax
je 0x419014
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x64]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x419014
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
sub edi, dword [esp + 0x88]
sub esi, dword [esp + 0x8c]
push dword [esp + 0x94]
sub edi, dword [esp + 0x28]
sub esi, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x90]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x60]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_DrawIcon]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp byte [esp + 0xb8], 0
je 0x41905e
mov eax, dword [0x473198]
test eax, eax
je 0x41904e
push 0x660046
xor ecx, ecx
push ecx
push ecx
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xbc]
mov byte [eax], 0
jmp 0x41905e
mov eax, dword [esp + 0xbc]
mov dword [0x473198], ebp
mov byte [eax], 1
lea eax, [esp + 0x6c]
push eax
push 0x18
pop eax
push eax
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x418f5b
mov eax, dword [esp + 0x7e]
imul eax, dword [esp + 0x7c]
movzx edx, ax
xor eax, eax
inc eax
cmp dx, ax
jne 0x41908e
mov ecx, eax
jmp 0x4190c5
push 4
pop ecx
mov dword [esp + 0x14], ecx
cmp dx, cx
jbe 0x4190c9
push 8
pop ecx
mov dword [esp + 0x14], ecx
cmp dx, cx
jbe 0x4190c9
push 0x10
pop ecx
mov dword [esp + 0x14], ecx
cmp dx, cx
jbe 0x4190c9
push 0x18
pop ecx
cmp dx, cx
ja 0x4190c2
mov dword [esp + 0x14], ecx
push 0x28
jmp 0x4190d3
push 0x20
pop ecx
mov dword [esp + 0x14], ecx
shl eax, cl
lea eax, [eax*4 + 0x28]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
push 0x18
pop ecx
mov dword [esi], 0x28
mov eax, dword [esp + 0x70]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 8], eax
mov ax, word [esp + 0x7c]
mov word [esi + 0xc], ax
mov ax, word [esp + 0x7e]
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x14]
cmp ax, cx
jae 0x419119
mov cl, al
xor eax, eax
inc eax
shl eax, cl
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
add eax, 7
and dword [esi + 0x10], 0
and dword [esi + 0x24], 0
cdq
and edx, 7
movzx ecx, cx
add eax, edx
sar eax, 3
imul eax, ecx
imul eax, dword [esi + 8]
push eax
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41915b
push dword [esp + 0x20]
jmp 0x418f5c
push 0
push esi
push eax
movzx eax, word [esi + 8]
push eax
push 0
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x419198
push dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebp
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x418f36
mov eax, 0x4d42
mov word [esp + 0x30], ax
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x14]
add ecx, 0xe
add eax, ecx
mov dword [esp + 0x32], eax
xor eax, eax
mov dword [esp + 0x36], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
add eax, 0xe
lea ecx, [esp + 0x40]
mov dword [esp + 0x3a], eax
call fcn.004020df
lea ecx, [esp + 0x98]
call fcn.004020df
push 0xe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040250a
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x9c]
call fcn.00403376
push 0x28
push esi
lea ecx, [esp + 0x48]
call fcn.0040250a
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x9c]
call fcn.00403376
push dword [esi + 0x14]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push esi
call fcn.0040250a
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x9c]
call fcn.00403376
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
cmp ebp, dword [0x473198]
je 0x419265
push ebp
call esi
lea eax, [esp + 0x98]
mov ecx, ebx
push eax
call fcn.00402055
lea ecx, [esp + 0x98]
call fcn.00401fd8
lea ecx, [esp + 0x40]
call fcn.00401fd8
jmp 0x418f42