Function at 0x402500
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5a61b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [ebp - 0x5c], eax
push esi
push edi
mov dword [ebp - 0x3c], ebx
push dword [ebx + 0x20]
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0041458b
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x402953
push dword [eax + 4]
xor edi, edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40292a
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x402928
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push dword [ebx + 0xb0]
mov dword [ebp - 0x58], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402923
movdqu xmm1, xmmword [ebp + 0x10]
movdqa xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
neg eax
movdqu xmmword [ebp - 0x14], xmm1
neg ecx
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x402912
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebx + 0x98]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40290b
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push esi
call edi
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x98]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14]
push edi
push eax
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov eax, ecx
mov ecx, dword [ebp - 8]
cdq
and edx, 3
mov dword [ebp - 0x10], edi
add eax, edx
sar eax, 2
neg eax
add ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, edi
jg 0x40268f
lea eax, [edi + 1]
mov dword [ebp - 8], eax
push dword [ebx + 0xbc]
dec dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x402902
push edi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x98]
mov edx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 0
lea eax, [edx - 1]
mov dword [ebp - 0x28], eax
test eax, eax
js 0x402821
movzx ebx, byte [ebx + 0xbc]
mov edi, edx
sub edi, eax
mov eax, 0xff
sub eax, ebx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv dword [ebp - 0x10]
imul eax, edi
add ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ebx
movzx ebx, byte [eax + 0xbd]
mov eax, 0xff
sub eax, ebx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv dword [ebp - 0x10]
imul eax, edi
add ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
movzx ebx, byte [eax + 0xbe]
mov eax, 0xff
sub eax, ebx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv dword [ebp - 0x10]
imul eax, edi
add ebx, eax
mov eax, dword [ebp - 0x2c]
movzx eax, al
movzx ecx, bl
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x40]
shl ecx, 8
movzx eax, al
or ecx, eax
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40281e
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push 2
push eax
push esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub ecx, ebx
dec eax
add ecx, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
cmp ecx, eax
jge 0x4027fc
push 2
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], ecx
push eax
push esi
mov dword [ebp - 0x50], ecx
call dword [sym.imp.GDI32.dll_Polyline]
push dword [ebp - 0x40]
push esi
call edi
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
dec ebx
mov dword [ebp - 0x28], ebx
js 0x40281e
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0x3c]
jmp 0x4026e0
mov ebx, dword [ebp - 0x3c]
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x40285d
jmp 0x402830
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x98]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
imul ecx, edi
push 0
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x402830
push dword [ebp - 0x44]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
sub esi, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
cmp eax, 3
jge 0x4028a6
add esi, 0xfffffffd
mov dword [ebp - 0x30], 3
mov ecx, 3
add esi, eax
sub ecx, eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x20]
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
lea ecx, [esi + edx]
lea eax, [ebx - 3]
cmp ecx, eax
jle 0x4028d2
mov esi, ebx
sub esi, edx
sub esi, 3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
push 0xcc0020
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push eax
push esi
push ecx
push edx
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x38]
push esi
call edi
mov edi, dword [ebp - 0x34]
jmp 0x40293d
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402920
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
jmp 0x40292a
mov edi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40293d
push dword [eax + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x402948
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x402953
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 0x18