Function at 0x405850
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x8c]
push edi
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov dword [esp + 0x2c], eax
call ebp
push eax
call fcn.00430f16
mov ecx, eax
call fcn.004360a6
mov ecx, esi
call fcn.00432eca
push 0
push 0
and eax, 0x10000000
push 0x10000000
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00432efe
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.00430f16
mov edx, dword [eax + 0x1c]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.00430f16
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.00430f16
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 + 0x90]
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
mov dword [esi + 0x90], ecx
add edx, eax
mov eax, dword [esi + 0xb4]
add ebx, ecx
test eax, eax
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], ebx
je 0x405964
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0xa0]
push eax
call fcn.0043660c
lea ecx, [esi + 0x9c]
test ecx, ecx
mov dword [esi + 0xb4], 0
je 0x405984
mov eax, dword [ecx + 4]
test eax, eax
je 0x405984
call fcn.004362ee
lea ecx, [esi + 0xac]
test ecx, ecx
je 0x40599a
mov eax, dword [ecx + 4]
test eax, eax
je 0x40599a
call fcn.004365da
mov ecx, dword [esi + 0x1c]
push ecx
call ebp
push eax
call fcn.00430f16
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.00436278
mov ebx, eax
test ebx, ebx
je 0x405a66
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x9c]
call fcn.00436286
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
mov eax, dword [ebx + 4]
sub ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0xac]
call fcn.00436583
lea eax, [esi + 0xac]
test eax, eax
je 0x405a0a
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0xa0]
push eax
push ecx
call fcn.0043660c
mov edx, dword [esi + 0x90]
mov dword [esi + 0xb4], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
push edx
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edi, dword [ebx + 4]
push edx
push edi
push eax
mov eax, dword [esi + 0xa0]
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 0x405a94
push 0
push 0x10000000
push 0
mov ecx, esi
call fcn.00432efe
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.00430f16
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