Function at 0x421390
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2c], 0
je 0x4213af
mov edi, dword [esi + 0x34]
jmp 0x4213b2
mov edi, dword [esi + 0x30]
test edi, edi
je 0x42157f
mov eax, dword [esi + 4]
push ebx
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x14]
push ebx
movups xmmword [ebp - 0x5c], xmm0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
movups xmm1, xmmword [ebp - 0x5c]
mov ebx, eax
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edx, xmm0
sub ecx, eax
mov dword [ebp - 0x30], eax
movd eax, xmm1
push ecx
mov dword [ebp - 0x3c], ecx
sub edx, eax
mov dword [ebp - 0x34], eax
push edx
push dword [ebp - 0x2c]
mov dword [ebp - 0x40], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x30]
push 0
neg ecx
mov dword [ebp - 0x44], eax
push ecx
mov ecx, dword [ebp - 0x34]
neg ecx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x421490
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 4]
mov dword [ebp - 0x28], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4214b0
mov dword [edi + 8], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [esi + 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [esi + 0x44]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00421d10
add esp, 0x14
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x60], 0
push eax
push 0
push edi
push dword [esi + 4]
mov dword [ebp - 0x1c], 0x1ff0000
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push 0xcc0020
push eax
push ecx
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x421569
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x421574
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462391
mov esp, ebp
pop ebp
ret