Function at 0x458225
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 0x458196
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x458037
sub esp, 8
mov dword [esi + 0x9c], 1
mov ecx, esi
call fcn.00458ad0
mov dword [ebx], eax
cmp dword [esi + 0x9c], 0
jne 0x45832f
mov ebx, dword [esi + 0x70]
jmp 0x45806e
cmp ecx, 0x4e
jne 0x45805f
cmp dword [edi + 8], 0xffffff9c
jne 0x45805f
mov dword [ebx], 1
lea eax, [ecx - 0x4d]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a0c30
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esi + 0x70]
cmp ecx, 0x110
jne 0x4580ef
cmp byte [esi + 0x75], 0
mov dword [esi + 0x70], 1
je 0x45808b
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x4580ad
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.00459980
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x45823a
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a0c30
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 2
jne 0x458140
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 0x45823a
mov dword [esi + 0x70], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a0c30
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x4e
jne 0x45823e
cmp dword [edi + 8], 0xffffff38
jne 0x45816f
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 0x4581ac
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [edi], eax
je 0x4581ac
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.004a0c30
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 8]
xor ecx, ecx
add eax, 0xd5
cmp eax, 0xd
ja case.0x4581bb.211
jmp dword [eax*4 + 0x458348]
mov ecx, esi
call fcn.00459400
mov ecx, eax
jmp case.0x4581bb.205
xor ecx, ecx
jmp case.0x4581bb.205
or ecx, 0xffffffff
jmp case.0x4581bb.205
cmp byte [esi + 0xb8], cl
je case.0x4581bb.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.00421730
test al, al
je 0x458213
push 0
lea ecx, [esi + 0x88]
call fcn.004596a0
mov ecx, dword [esi + 0xa4]
call fcn.00488640
mov ecx, 0xc4
jmp case.0x4581bb.205
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
jne 0x45832c
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x50]
cmp eax, 5
jne 0x458301
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 0x458299
push 0xe801
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x14]
cmp edx, 2
jne 0x45828a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4582a2
test edx, edx
jne 0x458299
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4582a2
cmp edx, 1
je 0x458322
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.00459710
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 0x458322
cmp eax, 0x24
jne 0x458193
cmp dword [ecx + 0x14], 0xffffffff
je 0x458322
cmp dword [ecx + 0x18], 0xffffffff
je 0x458322
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.004a0c30
mov esp, ebp
pop ebp
ret 0x18