Function at 0x418a43
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
xor edx, edx
push edi
cmp dword [esi + 0x1c], edx
je 0x418c07
mov eax, dword [ebp + 8]
cmp eax, edx
je 0x418c07
cmp dword [eax + 0x4c], edx
je 0x418c07
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
je 0x418a77
mov edi, dword [ecx]
jmp 0x418a7a
mov edi, dword [eax + 4]
cmp ecx, edx
mov dword [ebp - 0xc], edi
push ebx
je 0x418a87
mov ebx, dword [ecx + 4]
jmp 0x418a8a
mov ebx, dword [eax + 8]
cmp ecx, edx
je 0x418a95
mov edi, dword [ecx + 8]
sub edi, dword [ecx]
jmp 0x418a9b
mov edi, dword [eax + 0xc]
sub edi, dword [eax + 4]
cmp ecx, edx
mov dword [ebp - 8], edi
je 0x418aad
mov edi, dword [ecx + 0xc]
sub edi, dword [ecx + 4]
mov dword [ebp - 4], edi
jmp 0x418ab8
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edi, ecx
cmp dword [ebp + 0x10], edx
mov dword [ebp - 0x10], edx
jne 0x418ad3
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], 1
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov dword [ebp + 0xc], eax
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
call edi
push ebx
mov ecx, esi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push 0
push dword [ebp + 0xc]
call fcn.00418a0e
push dword [esi + 0x18]
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 8]
mov edx, ebx
neg edx
push edx
mov edx, dword [ebp - 0xc]
neg edx
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 4]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call edi
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add edx, eax
mov edi, dword [ebp - 0xc]
add edx, ebx
add eax, ebx
add edx, dword [ebp + 0x18]
add eax, dword [ebp + 0x18]
push edx
mov edx, dword [ebp - 8]
add edx, ecx
add ecx, edi
add ecx, dword [ebp + 0x14]
add edx, edi
add edx, dword [ebp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp - 0x14], eax
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xcc0020
mov eax, dword [ebp + 0x18]
push 0
push 0
push dword [ebp + 0xc]
add ebx, eax
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [esi + 4]
add ebx, dword [esi + 8]
add eax, edi
mov edi, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
cmp dword [ebp - 0x18], 1
jne 0x418bda
push dword [ebp + 8]
jmp 0x418bdc
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp + 8]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x1c]
call ebx
cmp dword [ebp - 0x10], 0
pop ebx
je 0x418c07
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
leave
ret 0x14