Function at 0x46c940
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x34]
xor eax, eax
cmp ebx, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
jne 0x46c96d
cmp esi, eax
je 0x46c95c
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 8], 1
mov ecx, dword [esi + 0x20]
push ebp
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call ebp
push ebx
mov edi, eax
call ebp
mov edx, dword [esi + 0x60]
mov ebp, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push ebp
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esi + 0x35c], 0
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jne 0x46ca75
push 1
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esi + 0xa8]
call fcn.004530f0
lea ecx, [esp + 0x2c]
push ecx
push edi
lea ecx, [esi + 0xa8]
call fcn.0046c440
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esi + 0xa8]
call fcn.004530f0
lea eax, [esp + 0x2c]
push eax
push edi
lea ecx, [esi + 0xa8]
call fcn.0046c440
mov eax, dword [esi + 0x64]
test eax, eax
je 0x46ca95
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x46cae6
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x46cadb
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esi + 0x78]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_FrameRgn]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x46cafa
mov eax, dword [esi + 0x74]
test eax, eax
je 0x46cafa
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
mov ecx, dword [esp + 0x40]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
call ebp
push edi
call ebp
cmp dword [esp + 0x10], 0
pop edi
pop ebp
je 0x46cb3d
mov esi, dword [esi + 0x20]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
add esp, 0x2c
ret 4