Function at 0x494d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x136
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
ja 0x495171
cmp eax, 0x135
jae 0x4952e3
cmp eax, 0x111
ja 0x4950da
je 0x495048
cmp eax, 0xf
je 0x494e0a
cmp eax, 0x2b
jne 0x4952b6
test edi, edi
je 0x4952b6
mov eax, dword [edi + 0x14]
cmp eax, dword [ebx + 0x3c]
jne 0x4952b6
mov ecx, dword [ebx + 0x40]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push 3
push 0
push 0
push 0x10
push 0x10
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x4952b6
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [esp + 0xc]
mov edi, eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowRgn]
mov edx, dword [ebx + 0x1c]
push edx
push edi
push esi
call dword [sym.imp.GDI32.dll_FillRgn]
mov eax, dword [ebx + 0x24]
push 1
push 1
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_FrameRgn]
push 0xe1ffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0x48]
cmp dword [ecx - 0xc], 0
je 0x494ef7
mov edi, dword [ebx + 0x84]
mov eax, dword [ebx + 0x4c]
add edi, 0xa
test eax, eax
mov dword [esp + 0x10], 9
je 0x494eae
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push edi
push 9
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov dword [esp + 0x10], 0x1d
mov edx, dword [ebx + 0x44]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
mov dword [esp + 0x10], edi
lea ecx, [ecx]
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x49501d
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x49501d
test ecx, ecx
je 0x494f2b
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x494f30
call fcn.00578ff3
mov edx, dword [ebx + 0x54]
mov edi, dword [edx + edi*4]
cmp dword [edi + 0x18], 1
jne 0x494f8e
mov eax, dword [ebx + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x28]
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push edx
push eax
mov eax, dword [ebx + 0x84]
add eax, dword [edi + 8]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x18], 2
jne 0x494fe6
mov ecx, dword [ebx + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x30]
push edx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x84]
add edx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [edi + 4]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x18], 5
jne 0x49500f
mov ecx, dword [ebx + 0x84]
mov eax, dword [edi + 0x20]
add ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
add dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
jmp 0x494f00
mov eax, dword [ebx + 0x3c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x4952b6
cmp edi, dword [ebx + 0x3c]
jne 0x495080
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4952b6
mov ecx, dword [ebx + 0xc]
push ecx
add ebx, 0x60
push ebx
call eax
add esp, 8
jmp 0x4952b6
cmp dword [ebx + 8], 0
je 0x4952b6
xor edi, edi
lea esi, [ebx + 0x50]
nop
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4952b6
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x4952b6
call fcn.0041dda0
mov edx, dword [eax]
movzx eax, word [esp + 0x24]
cmp eax, dword [edx + 0x14]
je 0x4950c1
add edi, 1
jmp 0x495090
call fcn.0041dda0
mov ecx, dword [ebx + 0xc]
mov edx, dword [eax]
mov eax, dword [ebx + 8]
push ecx
push edx
call eax
add esp, 8
jmp 0x4952b6
cmp eax, 0x113
jne 0x4952b6
cmp edx, 1
jne 0x4952b6
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49515f
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRgn]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
jne 0x495153
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4952b6
mov edx, dword [esp + 0xc]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4952b6
sub eax, 0x138
je 0x4952e3
sub eax, 0xc8
je 0x495224
sub eax, 2
jne 0x4952b6
cmp dword [ebx + 8], eax
je 0x4952b6
shr edi, 0x10
sub edi, dword [ebx + 0x84]
xor esi, esi
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x4952b6
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4952b6
test ecx, ecx
je 0x4951cf
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4951d4
call fcn.00578ff3
mov eax, dword [ebx + 0x54]
movzx ecx, word [esp + 0x20]
mov eax, dword [eax + esi*4]
push edi
add eax, 4
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4951f4
add esi, 1
jmp 0x4951a4
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x495207
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x49520c
call fcn.00578ff3
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + esi*4]
push ecx
mov ecx, dword [ebx + 8]
push eax
call ecx
add esp, 8
jmp 0x4952b6
shr edi, 0x10
sub edi, dword [ebx + 0x84]
xor esi, esi
nop
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x4952a2
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4952a2
test ecx, ecx
je 0x495253
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x495258
call fcn.00578ff3
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + esi*4]
cmp dword [eax + 0x18], 2
jne 0x495296
mov ecx, edx
test ecx, ecx
je 0x495276
mov eax, dword [ebx + 0x58]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x49527b
call fcn.00578ff3
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx + esi*4]
movzx ecx, word [esp + 0x20]
push edi
add eax, 4
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x49529b
add esi, 1
jmp 0x495230
push 0x7f89
jmp 0x4952a7
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 0xc