Function at 0x4059c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x648dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x703eb0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.0041c7e8
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x70]
push ecx
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x405a68
lea ecx, [esp + 0x48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x4c]
cmp edx, dword [esp + 0x78]
jne 0x405a7c
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x7c]
je 0x405aa7
lea ecx, [esi + 0x208]
call fcn.0041cb2a
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x208]
call fcn.0041cad0
lea ecx, [esp + 0x2c]
call fcn.0041c0cf
xor edi, edi
push edi
mov dword [esp + 0x94], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.0041c7fc
lea eax, [esi + 0x208]
cmp eax, edi
jne 0x405ad8
xor eax, eax
jmp 0x405adb
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0041cb61
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], vtable.CRgn.0
mov byte [esp + 0x90], 1
cmp byte [esi + 0x258], 0
jne 0x405b25
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push edx
push eax
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.0041cad0
jmp 0x405b4e
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.0041cad0
mov eax, dword [esi + 0x114]
mov ecx, dword [esp + 0x20]
push 5
push eax
push eax
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], vtable.CPen.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], vtable.CBrush.0
push 0x696969
mov byte [esp + 0x94], 3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.0041cad0
push 0x999999
push 3
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x40]
call fcn.0041cad0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0041cbbd
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041cbbd
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
push edx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 0
lea ecx, [esp + 0x30]
call fcn.0041c4ae
cmp dword [esi + 0x270], 0
je 0x405bfb
mov ecx, dword [esi + 0x1a8]
mov dword [esp + 0x14], ecx
jmp 0x405c05
mov edx, dword [esi + 0x1a4]
mov dword [esp + 0x14], edx
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
call edi
cdq
push 3
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 0xfffffff8
push 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push 0x10
push eax
push 0x2e
call edi
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x48]
push eax
add ecx, 0xffffffe7
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [esi + 0x274], 0
je 0x405c5e
mov eax, dword [esi + 0x1ac]
mov dword [esp + 0x14], eax
jmp 0x405c68
mov ecx, dword [esi + 0x1b0]
mov dword [esp + 0x14], ecx
push 4
call edi
push 3
push 0
cdq
push 0
push 0x10
sub eax, edx
mov edx, dword [esp + 0x24]
push 0x10
sar eax, 1
push edx
add eax, 0xfffffff8
push 0x2e
mov dword [esp + 0x34], eax
call edi
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x94]
add eax, 0xffffffd5
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.004011f0
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.CPen.0
call fcn.004011f0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0041c4ae
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
mov ecx, ebx
call fcn.0041c4ae
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405d1e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0041cb61
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CRgn.0
call fcn.004011f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0041c87d
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00521602
mov esp, ebp
pop ebp
ret