Function at 0x460898a1
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x460ec018]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx]
push edi
push 7
mov esi, dword [eax + 0x98]
mov ecx, esi
call dword [0x460ed508]
mov ecx, ebx
call esi
push 1
lea eax, [ebx + 0x70]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x54]
and eax, 0xffffefff
mov dword [ebx + 0xb8], edi
or eax, 2
cmp dword [ebx + 0xc0], 2
mov dword [ebx + 0x54], eax
jne 0x46089934
shr eax, 4
mov ecx, ebx
not eax
and eax, 1
push eax
call fcn.46089638
test byte [ebx + 0x54], 0x10
jne 0x46089920
push 0xffffffffffffffff
mov ecx, ebx
call fcn.460892b4
mov eax, dword [ebx + 0xc4]
mov eax, dword [eax + 0xa4]
mov dword [ebx + 0xb4], eax
jmp 0x46089984
mov ecx, dword [ebx + 0xc4]
mov eax, dword [ecx + 0xa4]
mov dword [ebx + 0xb4], eax
lea edx, [eax + 1]
neg edx
sbb edx, edx
and edx, eax
cmp dword [ecx + 0x9c], edi
jle 0x46089966
push edi
push edx
push 0x197
push dword [ebx + 0x58]
call fcn.460abd90
and dword [ebx + 0x54], 0xfffffff7
test byte [ebx + 0x54], 4
jne 0x46089978
push edi
mov ecx, ebx
call fcn.460893fb
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x80]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x460ed508]
mov ecx, ebx
call esi
mov eax, dword [ebx + 0x88]
sub eax, dword [ebx + 0x80]
mov ecx, dword [esp + 0x14]
add eax, ecx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x94]
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x460899ea
mov eax, dword [eax + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x64]
mov esi, dword [ebx + 0xb0]
cmp esi, eax
jg 0x460899fc
mov esi, eax
push 0
push 0
push 0x18b
push dword [ebx + 0x58]
call fcn.460abd90
mov dword [esp + 0x10], eax
test eax, eax
je 0x46089a3e
push 0x2e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, dword [esp + 0x10]
movzx eax, ax
imul eax, dword [esp + 0xc]
add ecx, eax
cmp ecx, 0x7fff
jae 0x46089a3e
movzx eax, cx
cmp eax, esi
jge 0x46089a3e
mov esi, eax
test byte [ebx + 0x54], 0x80
jne 0x46089a69
push 0x2e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2e
sub esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, esi
cdq
idiv dword [esp + 0xc]
sub esi, edx
add ecx, esi
mov dword [esp + 0x10], ecx
mov esi, ecx
push 0x11
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [edi + esi]
cmp ecx, eax
jg 0x46089a8a
test byte [ebx + 0x20], 1
jne 0x46089aac
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, eax
jmp 0x46089aac
test byte [ebx + 0x20], 1
je 0x46089a9a
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x46089a9c
xor eax, eax
sub eax, dword [ebx + 0xa8]
sub eax, esi
add edi, eax
test edi, edi
jg 0x46089aac
xor edi, edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
push esi
sub eax, ecx
push eax
push edi
push ecx
push 0xffffffffffffffff
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [ebx + 0xc4]
push 0
push 1
mov eax, dword [edi]
mov esi, dword [eax + 0xd0]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
cmp dword [ebx + 0xc0], 3
jne 0x46089af2
and dword [ebx + 0x54], 0xfffffff7
push 5
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0xc4]
call fcn.460ae55a
mov ecx, dword [ebx + 0xc4]
xor eax, eax
cmp dword [ebx + 0xc0], 3
sete al
add eax, 2
push eax
push 1
call fcn.460b0244
cmp dword [ebx + 0x5c], 0
jne 0x46089b53
mov esi, dword [ebx]
mov edx, 0x7f00
push 0
xor ecx, ecx
call fcn.460e7740
mov ecx, dword [esi + 0xbc]
push eax
call dword [0x460ed508]
mov ecx, ebx
call dword [esi + 0xbc]
mov dword [ebx + 0x5c], eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.460ea320
mov esp, ebp
pop ebp
ret 4