Function at 0x458de5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x515080]
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 0x458d56
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x458bf7
sub esp, 8
mov dword [esi + 0x9c], 1
mov ecx, esi
call fcn.00459690
mov dword [ebx], eax
cmp dword [esi + 0x9c], 0
jne 0x458eef
mov ebx, dword [esi + 0x70]
jmp 0x458c2e
cmp ecx, 0x4e
jne 0x458c1f
cmp dword [edi + 8], 0xffffff9c
jne 0x458c1f
mov dword [ebx], 1
lea eax, [ecx - 0x4d]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1cf0
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esi + 0x70]
cmp ecx, 0x110
jne 0x458caf
cmp byte [esi + 0x75], 0
mov dword [esi + 0x70], 1
je 0x458c4b
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x458c6d
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.0045a540
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x458dfa
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1cf0
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 2
jne 0x458d00
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 0x458dfa
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a1cf0
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x4e
jne 0x458dfe
cmp dword [edi + 8], 0xffffff38
jne 0x458d2f
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 0x458d6c
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [edi], eax
je 0x458d6c
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.004a1cf0
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 8]
xor ecx, ecx
add eax, 0xd5
cmp eax, 0xd
ja case.0x458d7b.211
jmp dword [eax*4 + 0x458f08]
mov ecx, esi
call fcn.00459fc0
mov ecx, eax
jmp case.0x458d7b.205
xor ecx, ecx
jmp case.0x458d7b.205
or ecx, 0xffffffff
jmp case.0x458d7b.205
cmp byte [esi + 0xb8], cl
je case.0x458d7b.207
push 0
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4ed694
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.00421d60
test al, al
je 0x458dd3
push 0
lea ecx, [esi + 0x88]
call fcn.0045a260
mov ecx, dword [esi + 0xa4]
call fcn.00489520
mov ecx, 0xc4
jmp case.0x458d7b.205
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
jne 0x458eec
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x50]
cmp eax, 5
jne 0x458ec1
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 0x458e59
push 0xe801
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x14]
cmp edx, 2
jne 0x458e4a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458e62
test edx, edx
jne 0x458e59
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458e62
cmp edx, 1
je 0x458ee2
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.0045a2d0
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 0x458ee2
cmp eax, 0x24
jne 0x458d53
cmp dword [ecx + 0x14], 0xffffffff
je 0x458ee2
cmp dword [ecx + 0x18], 0xffffffff
je 0x458ee2
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.004a1cf0
mov esp, ebp
pop ebp
ret 0x18