Function at 0x40b6c4
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 0x40b6e3
xor eax, eax
jmp 0x40bbe2
xor edx, edx
mov dword [ebp - 0x38], edx
cmp dword [0x4e5360], 0
jne 0x40b6fa
cmp dword [0x4d12a8], 0
je 0x40b706
push 0xf
call sub.USER32.dll_GetSysColor
mov dword [ebp - 0x28], eax
jmp 0x40b710
push 5
call sub.USER32.dll_GetSysColor
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0xc], 0
je 0x40b740
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 0x40b74d
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 0x40b78f
cmp dword [ebp + 0x10], 0
jne 0x40b78f
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 0x40ba33
cmp dword [ebp + 0x18], 0
jg 0x40b79b
cmp dword [ebp + 0x10], 0
jne 0x40b7da
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 0x40b7f4
push ebx
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ReleaseDC
mov eax, 1
jmp 0x40bbe2
cmp dword [ebp + 0x10], 0
je 0x40ba33
cmp dword [ebp + 0xc], 0
je 0x40b81a
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 0x40b835
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 0x40b867
cmp dword [ebp + 0x14], 0
je 0x40b856
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 0x40bbe2
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 0x40b8c6
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x14]
jle 0x40b992
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 0x40b8ed
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 0x40b907
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 0x40b913
adc eax, 0
add esi, eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 4]
sar edx, 1
jns 0x40b922
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 0x40b935
mov esi, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x5c]
jge 0x40b93d
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x40b94f
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 0x40b961
mov eax, dword [ebp - 0x54]
sub eax, edi
mov dword [ebp - 0x14], eax
push 3
push ebx
call sub.GDI32.dll_SetStretchBltMode
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 0x40ba0b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
sub edx, eax
sar edx, 1
jns 0x40b9a1
adc edx, 0
add esi, edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
sub ecx, edx
sar ecx, 1
jns 0x40b9b2
adc ecx, 0
add edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
cmp esi, dword [ebp - 0x60]
jge 0x40b9c2
mov esi, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x5c]
jge 0x40b9ca
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x40b9dc
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 0x40b9ee
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 0x40ba33
push 0
mov edx, dword [ebp - 0x24]
push edx
push ebx
call sub.GDI32.dll_SelectPalette
cmp dword [ebp + 0x18], 0xffffffff
je 0x40bbc4
cmp dword [ebp + 0xc], 0
je 0x40baac
cmp dword [ebp + 0x10], 0
jne 0x40baac
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 0x40bbb1
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 0x40bbd3
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