Function at 0x4afbc0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x78]
push edi
push eax
call ebx
mov ecx, edi
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x1c]
push ecx
mov dword [esp + 0x28], eax
call ebp
push eax
call fcn.0050f8d2
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004af340
add esp, 8
mov ecx, esi
call fcn.00512708
push 0
and eax, 0x10000000
push 0
push 0x10000000
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0051273c
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.0050f8d2
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.0050f8d2
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x1c]
push edx
call ebp
push eax
call fcn.0050f8d2
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
call ebx
mov eax, dword [edi]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x2c]
sub eax, ebx
mov ebx, dword [edi]
sub ecx, edx
mov edx, dword [edi + 8]
sub edx, ebx
mov ebx, dword [edi + 0xc]
sub ebx, dword [edi + 4]
mov dword [edi], eax
add edx, eax
mov eax, dword [esi + 0xa0]
add ebx, ecx
mov dword [esi + 0x7c], ecx
test eax, eax
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], ebx
je 0x4afcd3
jne 0x4afcc3
xor eax, eax
jmp 0x4afcc6
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.00514a34
lea ecx, [esi + 0x88]
mov dword [esi + 0xa0], 0
test ecx, ecx
je 0x4afcf3
mov eax, dword [ecx + 4]
test eax, eax
je 0x4afcf3
call fcn.0051495b
lea ecx, [esi + 0x98]
test ecx, ecx
je 0x4afd09
mov eax, dword [ecx + 4]
test eax, eax
je 0x4afd09
call fcn.005152fb
mov ecx, dword [esi + 0x1c]
push ecx
call ebp
push eax
call fcn.0050f8d2
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.005148de
mov ebx, eax
test ebx, ebx
je 0x4afdd2
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x88]
call fcn.005148f3
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x98]
call fcn.005152a4
lea eax, [esi + 0x98]
test eax, eax
je 0x4afd79
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x8c]
push eax
push edx
call fcn.00514a34
mov edx, dword [esi + 0x7c]
mov dword [esi + 0xa0], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [ebx + 4]
sub ecx, dword [edi]
push edx
push eax
mov eax, dword [esi + 0x8c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4afe00
push 0
push 0x10000000
push 0
mov ecx, esi
call fcn.0051273c
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.0050f8d2
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret