Function at 0x403d60
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5c2fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [ebp - 0x48], eax
push esi
push edi
mov dword [ebp - 0x38], ebx
push dword [ebx + 0x20]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0040b927
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4041ae
push dword [eax + 4]
xor esi, esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x404185
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 - 0x28]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4041c1
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0xc0]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x404182
movups xmm1, xmmword [ebp + 0x10]
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
neg eax
movups xmmword [ebp - 0x14], xmm1
neg ecx
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x404174
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x28]
push dword [ebx + 0xa8]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40416d
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x30]
mov dword [ebp - 0x28], 0
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0xa8]
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 edi, dword [ebp + 0x1c]
sub edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x10], eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
add ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp ecx, eax
jg 0x403ee9
inc eax
mov dword [ebp - 8], eax
push dword [ebx + 0xcc]
dec dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x404161
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 + 0xa8]
mov edx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 0
lea eax, [edx - 1]
mov dword [ebp - 0x28], eax
test eax, eax
js 0x404083
nop word [eax + eax]
movzx ebx, byte [ebx + 0xcc]
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 - 0x38]
mov dword [ebp - 0x40], ebx
movzx ebx, byte [eax + 0xcd]
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 - 0x38]
mov dword [ebp - 0x2c], ebx
movzx ebx, byte [eax + 0xce]
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 0x404080
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 - 0x5c]
push 2
push eax
push esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], 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 0x40405c
push 2
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], ecx
push eax
push esi
mov dword [ebp - 0x58], 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]
sub ebx, 1
mov dword [ebp - 0x28], ebx
js 0x404080
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0x38]
jmp 0x403f40
mov ebx, dword [ebp - 0x38]
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x4040bd
nop word [eax + eax]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0xa8]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
imul ecx, edi
push 0
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x404090
push dword [ebp - 0x44]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
sub esi, edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
cmp edi, 3
jge 0x404105
add esi, 0xfffffffd
mov eax, 3
add esi, edi
sub eax, edi
mov edi, 3
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x20]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + edi]
lea eax, [edx - 3]
cmp ecx, eax
jle 0x40412d
mov esi, edx
sub esi, edi
sub esi, 3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
mov edi, dword [ebp - 0x3c]
push 0xcc0020
push 0
push dword [ebp - 0x2c]
push edi
push eax
push esi
push ecx
push dword [ebp - 0x30]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x34]
jmp 0x404198
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0x3c]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x404182
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x404198
push dword [eax + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
test edi, edi
je 0x4041a3
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x4041ae
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546259
mov esp, ebp
pop ebp
ret 0x18
mov esi, eax
jmp 0x404185