Function at 0x4020c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x5a61b0]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x84], 0
mov edi, dword [esi + 0xa8]
mov eax, dword [esi + 0xac]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
jne 0x40212a
mov edx, dword [esi + 0x90]
cmp eax, dword [esi + 0x94]
jg 0x40211a
jl 0x402114
cmp edi, edx
jae 0x40211a
mov dword [esp + 0x14], edi
jmp 0x402126
mov eax, dword [esi + 0x94]
mov edi, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], 0
test ecx, ecx
jne 0x40215a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0041458b
mov dword [esp + 0x28], eax
test eax, eax
jne 0x402153
mov dword [esp + 0x24], eax
jmp 0x40215a
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movdqu xmmword [esp + 0x38], xmm0
movdqa xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x84], 0
je 0x4021b8
mov ecx, dword [esi + 0x9c]
lea eax, [edi + 3]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x98]
imul eax, ecx
mov dword [esp + 0x18], ecx
add eax, 3
add eax, edi
mov dword [esp + 0x48], eax
jmp 0x40225a
mov eax, dword [esi + 0x90]
mov edi, dword [esi + 0x88]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x94]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
sub eax, 5
mov dword [esp + 0x18], edi
sub esi, edi
cdq
mov edi, dword [esp + 0x10]
mov dword [esp + 0x40], 3
sbb ecx, dword [edi + 0x8c]
push ecx
push esi
push edx
push eax
call fcn.005309e0
mov esi, dword [edi + 0x90]
mov ecx, edi
sub esi, dword [esp + 0x18]
mov ecx, dword [ecx + 0x94]
sbb ecx, dword [edi + 0x8c]
push ecx
push esi
push edx
push eax
call fcn.00530930
add eax, 3
mov ecx, edi
mov dword [esp + 0x48], eax
add eax, 0xfffffffd
cdq
mov edi, dword [esp + 0x20]
idiv dword [ecx + 0x98]
mov dword [esp + 0x18], eax
cmp dword [esp + 0xc], edi
jl 0x40225a
jg 0x402255
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
jb 0x40225a
inc eax
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x3c]
mov esi, eax
sub edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push edx
push ecx
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xf
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
mov esi, eax
lea eax, [esp + 0x30]
push esi
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x10]
push dword [esi + 0xb0]
call edi
push dword [esi + 0xb8]
mov edi, eax
push 1
push 0
mov dword [esp + 0x2c], edi
call dword [sym.imp.GDI32.dll_CreatePen]
push edi
push dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov edx, dword [esp + 0x30]
inc ecx
push 6
push 6
push dword [esp + 0x44]
inc edx
mov dword [esp + 0x40], ecx
push dword [esp + 0x44]
mov dword [esp + 0x40], edx
push ecx
push edx
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_RoundRect]
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x20]
call edi
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
mov dword [esp + 0x54], 1
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edi
push dword [eax + 0xb4]
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push edi
push dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov edx, dword [esp + 0x30]
dec ecx
push 5
push 5
push dword [esp + 0x44]
dec edx
mov dword [esp + 0x40], ecx
push dword [esp + 0x44]
mov dword [esp + 0x40], edx
push ecx
push edx
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_RoundRect]
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x20]
call esi
add dword [esp + 0x44], 3
sub dword [esp + 0x4c], 2
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x402423
movdqu xmm0, xmmword [esp + 0x40]
sub esp, 0x10
mov eax, esp
push ecx
push edi
mov ecx, esi
movdqu xmmword [eax], xmm0
call fcn.00402500
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push 0
push 0
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x14]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x2c]
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40247b
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 4