Function at 0x458530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x514080]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
jne 0x4586f6
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x458597
sub esp, 8
mov dword [esi + 0x9c], 1
mov ecx, esi
call fcn.00459030
mov dword [ebx], eax
cmp dword [esi + 0x9c], 0
jne 0x45888f
mov ebx, dword [esi + 0x70]
jmp 0x4585ce
cmp ecx, 0x4e
jne 0x4585bf
cmp dword [edi + 8], 0xffffff9c
jne 0x4585bf
mov dword [ebx], 1
lea eax, [ecx - 0x4d]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1550
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esi + 0x70]
cmp ecx, 0x110
jne 0x45864f
cmp byte [esi + 0x75], 0
mov dword [esi + 0x70], 1
je 0x4585eb
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x45860d
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x2000000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
sub esp, 0xc
lea ecx, [esi + 0x50]
call fcn.00459ee0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x45879a
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1550
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 2
jne 0x4586a0
push str.IsExterior
push dword [esi + 4]
mov dword [esi + 0x70], 1
call dword [sym.imp.USER32.dll_RemovePropW]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x45879a
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1550
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x4e
jne 0x45879e
cmp dword [edi + 8], 0xffffff38
jne 0x4586cf
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push dword [esp + 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
mov dword [esp + 0x10], 1
cmp dword [edi], eax
je 0x45870c
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [edi], eax
je 0x45870c
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov dword [esi + 0x70], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1550
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 8]
xor ecx, ecx
add eax, 0xd5
cmp eax, 0xd
ja case.0x45871b.211
jmp dword [eax*4 + 0x4588a8]
mov ecx, esi
call fcn.00459960
mov ecx, eax
jmp case.0x45871b.205
xor ecx, ecx
jmp case.0x45871b.205
or ecx, 0xffffffff
jmp case.0x45871b.205
cmp byte [esi + 0xb8], cl
je case.0x45871b.207
push 0
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4ec684
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.00421b10
test al, al
je 0x458773
push 0
lea ecx, [esi + 0x88]
call fcn.00459c00
mov ecx, dword [esi + 0xa4]
call fcn.00488d90
mov ecx, 0xc4
jmp case.0x45871b.205
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
jne 0x45888c
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x50]
cmp eax, 5
jne 0x458861
test ecx, ecx
mov dword [esp + 0x10], 0
mov eax, esi
cmove eax, dword [esp + 0x10]
cmp byte [ecx + 0x1c], 0
mov dword [esp + 0x10], eax
je 0x4587f9
push 0xe801
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x14]
cmp edx, 2
jne 0x4587ea
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458802
test edx, edx
jne 0x4587f9
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458802
cmp edx, 1
je 0x458882
mov eax, edi
shr eax, 0x10
cwde
push eax
movsx eax, di
mov edi, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x50]
call fcn.00459c70
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0x101d
push dword [edi + 0xac]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x24]
sub ecx, eax
sub ecx, 3
movzx eax, cx
push eax
push 1
push 0x101e
push dword [edi + 0xac]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x458882
cmp eax, 0x24
jne 0x4586f3
cmp dword [ecx + 0x14], 0xffffffff
je 0x458882
cmp dword [ecx + 0x18], 0xffffffff
je 0x458882
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov dword [esi + 0x70], ebx
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a1550
mov esp, ebp
pop ebp
ret 0x18