Function at 0x4012c6
Capabilities:
Capture screenshot

Disassembly:
jmp 0x410690
sub esp, 0x50
push ebx
mov dword [esp + 0x10], ecx
call fcn.0040119a
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, eax
call fcn.00401352
mov ebx, eax
test ebx, ebx
je 0x4108fd
push ebp
push esi
push edi
mov ecx, ebx
call fcn.0040105a
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebx
mov edi, eax
call fcn.0040105a
mov ecx, ebx
mov esi, eax
call fcn.004010e1
mov edx, esi
mov esi, eax
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea edx, [esp + 0x14]
push edx
push 0x4262b8
push 0
mov ecx, ebx
call fcn.0040105a
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.00401230
push ebx
call fcn.004165aa
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [edx + 0x1c]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
mov esi, eax
push 0x58
push esi
call edi
mov edx, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push edx
call ebx
mov ebp, eax
push 0x9ec
push 0x5a
push esi
call edi
push eax
mov eax, dword [esp + 0x28]
push eax
call ebx
mov ebx, eax
push ebx
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
push esi
mov dword [esp + 0x68], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push edi
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x2c]
push edi
push ecx
push 0
push ebx
push ebp
push 0
push 0
push esi
push eax
call dword [edx + 0x20]
mov esi, ebx
imul esi, ebp
shl esi, 2
push esi
call fcn.0041659c
push esi
mov dword [esp + 0x20], eax
call fcn.0041659c
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x6c]
add esp, 8
mov dword [ecx + 8], eax
xor eax, eax
push eax
mov ecx, 0xb
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push 0
push esi
push edi
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x5c], 1
mov word [esp + 0x5e], 0x20
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
jle 0x4108e4
mov edx, dword [esp + 0x18]
lea eax, [ebx*4 - 4]
imul eax, ebp
mov ecx, ebp
neg ecx
shl ecx, 2
mov dword [esp + 0x64], 0
mov dword [esp + 0x30], ecx
add eax, edx
mov dword [esp + 0x2c], ebx
test ebp, ebp
jle 0x4108c6
mov edx, dword [esp + 0x64]
mov ecx, eax
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c]
mov esi, dword [esi + 8]
mov edi, dword [ecx]
mov dword [edx + esi], edi
mov esi, dword [esp + 0x28]
add ecx, 4
add edx, 4
dec esi
mov dword [esp + 0x28], esi
jne 0x4108a5
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x64]
lea edx, [ebp*4]
add edi, edx
mov edx, dword [esp + 0x2c]
add eax, ecx
dec edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], edx
jne 0x410897
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004165aa
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
mov dword [eax], ebp
mov dword [eax + 4], ebx
pop ebp
pop ebx
add esp, 0x50
ret 4