Function at 0x4590ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x34], eax
push edi
mov dword [ebp - 0x30], esi
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0045930e
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [eax + 0x172], 0
je 0x459145
mov ecx, dword [esi + 0x10]
lea edi, [ebp - 0x14]
xor eax, eax
mov edx, 0x90000080
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
call dword [eax + 0x40]
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + 0xa8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x2c], eax
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
dec eax
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
dec eax
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, 0x90000080
jmp 0x45914d
mov eax, 0x40000080
mov dword [ebp - 0x1c], eax
mov edx, dword [esi + 0x10]
xor esi, esi
inc esi
mov ecx, dword [edx + 0x6c4]
test cl, 1
je 0x459162
or eax, esi
jmp 0x45916a
test cl, 2
je 0x45916d
or eax, 2
mov dword [ebp - 0x1c], eax
mov al, byte [edx + 0x6e9]
mov ecx, edx
mov byte [ebp - 0x15], al
mov eax, dword [edx]
call dword [eax + 0x40]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
mov ecx, dword [eax + 0xa8]
mov eax, dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
or eax, 0x20
cmp byte [ebp - 0x15], 0
push ecx
cmove eax, dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push 0
push eax
push ecx
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.00422eb6
mov ecx, dword [esi + 0x10]
mov edi, dword [ecx + 0x6c0]
cmp edi, 0xffffffff
je 0x4591cc
mov eax, dword [ecx]
call dword [eax + 0x40]
push edi
mov ecx, eax
call fcn.004195c4
test eax, eax
jne 0x4591de
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, eax
call fcn.00418d0c
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x10]
push 0
push dword [eax + 0x6e4]
push 0xc5
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x6e9], 0
je 0x459223
movzx eax, word [eax + 0x6ec]
push 0
push eax
push 0xcc
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x4c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0xb9
push dword [esi + 4]
call edi
push 0
push 3
push 0xd3
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x17c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x10]
xor ecx, ecx
push 0
cmp byte [eax + 0x6e8], 1
sete cl
push ecx
push 0xcf
push dword [esi + 4]
call edi
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x994]
or ecx, eax
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
cmp byte [eax + 0x6ea], 0
je 0x4592e1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push 1
pop ecx
test eax, eax
cmove eax, ecx
push eax
push 0
jmp 0x4592e9
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [esi + 4]
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
xor ecx, ebp
pop edi
mov byte [esi + 0x18], al
pop esi
call fcn.004820f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4