Function at 0x440530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4c0074]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jne 0x440798
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x110
jne 0x4405ed
cmp byte [esi + 0x75], 0
mov dword [esi + 0x70], 1
je 0x44058c
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x4405ae
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.00440a90
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x70], 0
mov dword [ecx], 0
cmp dword [esi + 0x70], 0
je 0x440688
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 2
jne 0x440635
push str.IsExterior
push dword [esi + 4]
mov dword [esi + 0x70], 1
call dword [sym.imp.USER32.dll_RemovePropW]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x70], 0
mov dword [ecx], 0
cmp dword [esi + 0x70], 0
je 0x440688
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x4e
jne 0x44068c
cmp dword [edi + 8], 0xffffff38
jne 0x44065f
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 + 0x14]
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push edi
sub esp, 8
mov ecx, esi
call fcn.004407b0
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jne 0x44077f
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x50]
cmp ebx, 5
jne 0x440758
xor eax, eax
test ecx, ecx
cmove esi, eax
cmp byte [ecx + 0x1c], al
je 0x4406d5
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x10]
cmp edx, 2
jne 0x4406c6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4406de
test edx, edx
jne 0x4406d5
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4406de
cmp edx, 1
je 0x440775
mov eax, edi
lea ecx, [esi + 0x50]
shr eax, 0x10
cwde
push eax
movsx eax, di
push eax
call fcn.004402a0
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101d
push dword [esi + 0xac]
call ebx
mov ecx, dword [esp + 0x24]
sub ecx, eax
sub ecx, 3
movzx eax, cx
push eax
push 1
push 0x101e
push dword [esi + 0xac]
call ebx
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x24
jne 0x440798
cmp dword [ecx + 0x14], 0xffffffff
je 0x440775
cmp dword [ecx + 0x18], 0xffffffff
je 0x440775
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 0x18