Function at 0x4206f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_GetDC
mov ebx, eax
test ebx, ebx
jne 0x420717
xor eax, eax
jmp 0x420c22
xor edx, edx
mov dword [ebp - 0x38], edx
cmp dword [0x515ee8], 0
jne 0x42072e
cmp dword [0x4fa6b8], 0
je 0x42073a
push 0xf
call sub.USER32.dll_GetSysColor
mov dword [ebp - 0x28], eax
jmp 0x420744
push 5
call sub.USER32.dll_GetSysColor
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0xc], 0
je 0x420774
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_GetWindowRect
push 2
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.USER32.dll_MapWindowPoints
jmp 0x420781
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x60]
mov esi, eax
mov edx, dword [ebp - 0x5c]
mov edi, edx
mov ecx, dword [ebp - 0x58]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x54]
sub eax, edx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x4207c3
cmp dword [ebp + 0x10], 0
jne 0x4207c3
push 0x84
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x420a73
cmp dword [ebp + 0x18], 0
jg 0x4207cf
cmp dword [ebp + 0x10], 0
jne 0x42080e
dec dword [ebp - 0x60]
dec dword [ebp - 0x5c]
add dword [ebp - 0x54], 4
add dword [ebp - 0x58], 4
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.dll_CreateSolidBrush
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x60]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [ebp - 0x34]
push eax
call sub.GDI32.dll_DeleteObject
inc dword [ebp - 0x60]
inc dword [ebp - 0x5c]
sub dword [ebp - 0x54], 4
sub dword [ebp - 0x58], 4
cmp dword [ebp + 0x18], 2
jne 0x420828
push ebx
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ReleaseDC
mov eax, 1
jmp 0x420c22
cmp dword [ebp + 0x10], 0
je 0x420a73
cmp dword [ebp + 0xc], 0
je 0x42084e
push 0
push 0x84
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
cmp dword [ebp + 0x14], 0
je 0x420869
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
call sub.GDI32.dll_SelectPalette
mov dword [ebp - 0x24], eax
push ebx
call sub.GDI32.dll_RealizePalette
push ebx
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42089b
cmp dword [ebp + 0x14], 0
je 0x42088a
push 0
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.GDI32.dll_SelectPalette
push ebx
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ReleaseDC
xor eax, eax
jmp 0x420c22
lea edx, [ebp - 0x50]
push edx
push 0x18
mov ecx, dword [ebp + 0x10]
push ecx
call sub.GDI32.dll_GetObjectA
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x30]
push edx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
add ecx, edi
add ecx, 2
push ecx
mov eax, dword [ebp - 0x10]
add eax, esi
add eax, 2
push eax
lea edx, [edi - 2]
push edx
lea ecx, [esi - 2]
push ecx
call sub.GDI32.dll_CreateRectRgn
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
push ebx
call sub.GDI32.dll_SelectClipRgn
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x10]
jg 0x4208fa
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x14]
jle 0x4209d2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
cmp ecx, dword [ebp - 0x10]
jle 0x420921
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0xc]
cdq
idiv dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jle 0x42093b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
imul dword [ebp - 8]
cdq
idiv dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 1
jns 0x420947
adc eax, 0
add esi, eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 4]
sar edx, 1
jns 0x420956
adc edx, 0
add edi, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
cmp esi, dword [ebp - 0x60]
jge 0x420969
mov esi, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x5c]
jge 0x420971
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x420983
mov edx, dword [ebp - 0x58]
sub edx, esi
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x14]
add ecx, edi
cmp ecx, dword [ebp - 0x54]
jle 0x420995
mov eax, dword [ebp - 0x54]
sub eax, edi
mov dword [ebp - 0x14], eax
push 4
push ebx
call sub.GDI32.dll_SetStretchBltMode
push 0
push 0
push 0
push ebx
call sub.GDI32.dll_SetBrushOrgEx
push 0xcc0020
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x14]
inc edx
push edx
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push edi
push esi
push ebx
call sub.GDI32.dll_StretchBlt
jmp 0x420a4b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
sub edx, eax
sar edx, 1
jns 0x4209e1
adc edx, 0
add esi, edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
sub ecx, edx
sar ecx, 1
jns 0x4209f2
adc ecx, 0
add edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
cmp esi, dword [ebp - 0x60]
jge 0x420a02
mov esi, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x5c]
jge 0x420a0a
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x420a1c
mov edx, dword [ebp - 0x58]
sub edx, esi
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x14]
add ecx, edi
cmp ecx, dword [ebp - 0x54]
jle 0x420a2e
mov eax, dword [ebp - 0x54]
sub eax, edi
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp - 0x10]
push eax
push edi
push esi
push ebx
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x30]
push ecx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x30]
push eax
call sub.GDI32.dll_DeleteDC
cmp dword [ebp + 0x14], 0
je 0x420a73
push 0
mov edx, dword [ebp - 0x24]
push edx
push ebx
call sub.GDI32.dll_SelectPalette
cmp dword [ebp + 0x18], 0xffffffff
je 0x420c04
cmp dword [ebp + 0xc], 0
je 0x420aec
cmp dword [ebp + 0x10], 0
jne 0x420aec
push 5
push 0x84
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x60]
push eax
push 0x84
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_GetWindowRect
push 2
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.USER32.dll_MapWindowPoints
mov esi, dword [ebp - 0x60]
add esi, 0xfffffffb
mov edi, dword [ebp - 0x5c]
add edi, 0xfffffff6
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x60]
add eax, 0xa
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x5c]
add edx, 0x13
mov dword [ebp - 0x14], edx
push 0x10
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x20], eax
push 0
lea eax, [edi - 1]
push eax
lea edx, [esi - 1]
push edx
push ebx
call sub.GDI32.dll_MoveToEx
lea ecx, [edi - 1]
push ecx
mov eax, dword [ebp - 0x10]
add eax, esi
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x14]
add edx, edi
push edx
mov ecx, dword [ebp - 0x10]
add ecx, esi
push ecx
push ebx
call sub.GDI32.dll_LineTo
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
lea edx, [esi - 1]
push edx
push ebx
call sub.GDI32.dll_LineTo
lea ecx, [edi - 1]
push ecx
lea eax, [esi - 1]
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x20]
push edx
push ebx
call sub.GDI32.dll_SelectObject
mov ecx, dword [ebp - 0x18]
push ecx
call sub.GDI32.dll_DeleteObject
push 0x14
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x20], eax
push 0
lea edx, [edi - 1]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.dll_MoveToEx
mov eax, dword [ebp - 0x14]
add eax, edi
inc eax
push eax
mov edx, dword [ebp - 0x10]
add edx, esi
inc edx
push edx
push ebx
call sub.GDI32.dll_LineTo
mov ecx, dword [ebp - 0x14]
add ecx, edi
inc ecx
push ecx
lea eax, [esi - 1]
push eax
push ebx
call sub.GDI32.dll_LineTo
cmp dword [ebp + 0x10], 0
jne 0x420bf1
push 0
mov edx, dword [ebp - 0x14]
add edx, edi
push edx
push esi
push ebx
call sub.GDI32.dll_MoveToEx
push edi
push esi
push ebx
call sub.GDI32.dll_LineTo
push edi
add esi, dword [ebp - 0x10]
push esi
push ebx
call sub.GDI32.dll_LineTo
mov ecx, dword [ebp - 0x20]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x1c]
push eax
call sub.GDI32.dll_DeleteObject
cmp dword [ebp - 0x38], 0
je 0x420c13
mov edx, dword [ebp - 0x38]
push edx
call sub.GDI32.dll_DeleteObject
push ebx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_ReleaseDC
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14