Function at 0x40869f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4706d9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x491fb4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [ebp + 8]
push 7
xor edi, edi
pop edx
mov dword [esp + 0x14], edi
cmp ecx, edx
ja 0x4089e8
je 0x4089b8
mov eax, ecx
dec eax
je 0x4089a1
dec eax
je 0x4088ad
dec eax
je 0x4087b2
dec eax
je 0x40878f
dec eax
jne 0x408a05
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.client::data::CUIArgValidator.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 4
call fcn.00409b23
cmp eax, edi
jne 0x408b44
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.004099f9
mov byte [esp + 0x58], 5
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], edi
jne 0x40876f
lea ecx, [esi - 0x10]
call fcn.004025c2
mov eax, 0x80070057
jmp 0x408b44
push esi
lea ecx, [ebx + 0x38]
call fcn.004171f3
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408787
mov byte [ebx + 0x88], 1
lea ecx, [esi - 0x10]
jmp 0x4088a3
push 1
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [ebx + 0x90]
cmp byte [esi], 0
je 0x4087aa
call fcn.00410772
mov dword [ebx + 4], edi
jmp 0x408b40
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.client::data::CUIArgValidator.0
push 0x497be8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], edi
call fcn.00401e55
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffff0
jle 0x408821
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.004099f9
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.00401f8c
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004025c2
lea esi, [ebx + 0x90]
cmp byte [esi], 0
jne 0x40883c
push dword [esp + 0x18]
mov eax, esi
call fcn.00410523
cmp byte [esi], 0
je 0x40889c
push edi
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
and ecx, 0xfffffff0
cmp ecx, 0x10
jle 0x408895
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.004099f9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], edi
je 0x40888d
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
je 0x40888d
mov edi, ecx
mov ebx, eax
mov ecx, esi
call fcn.004106b8
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x10]
call fcn.004025c2
mov dword [ebx + 4], 2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025c2
jmp 0x408b40
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.client::data::CUIArgValidator.0
push 3
pop esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], esi
call fcn.00409b23
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408b44
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
dec eax
jns 0x4088f8
mov dword [esp + 0x24], edi
jmp 0x408914
mov ecx, dword [esp + 0x38]
push edi
call fcn.00409a91
cmp si, word [eax]
jne 0x40890c
mov eax, dword [eax + 8]
jmp 0x408910
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
push 1
lea ecx, [esp + 0x34]
call fcn.004099c0
lea esi, [ebx + 0x14]
push dword [esi]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408b40
cmp dword [esp + 0x24], 0xa
jle 0x408b40
cmp dword [esp + 0x28], 0xa
jle 0x408b40
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
add eax, ecx
push 0x16
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x44]
call fcn.00408ee5
push esi
call fcn.00408d60
add ebx, 0x10
call fcn.0040980f
jmp 0x408b40
push 6
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 4], 1
jmp 0x408b40
mov esi, dword [ebp + 0x10]
push esi
call fcn.00408d49
push dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00408182
pop ecx
pop ecx
mov dword [esp + 0x58], 6
push dword [eax]
call fcn.00408d11
mov ecx, dword [esp + 0x2c]
jmp 0x4088a0
push 8
mov eax, ecx
pop esi
sub eax, esi
je 0x408b20
dec eax
dec eax
je 0x408a7d
sub eax, 6
je 0x408a48
dec eax
je 0x408a2c
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040a7ba
mov dword [esp + 0x14], eax
jmp 0x408b40
call fcn.004057f4
lea edi, [esp + 0x24]
call fcn.00410035
mov dword [esp + 0x58], 9
mov edi, dword [esp + 0x24]
jmp 0x408a6c
push 0x497be8
lea ecx, [esp + 0x20]
call fcn.00401e55
mov dword [esp + 0x58], esi
call fcn.004057f4
lea ecx, [esp + 0x1c]
call fcn.00410104
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0x10]
push edi
call fcn.00408d11
lea ecx, [edi - 0x10]
jmp 0x4088a3
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.client::data::CUIArgValidator.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], edx
call fcn.00409b23
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408b44
cmp dword [ebx + 4], edi
jne 0x408abb
lea ecx, [ebx - 4]
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov byte [esp + 0x13], 0
call dword [eax + 0xc]
dec eax
jns 0x408ad2
xor al, al
jmp 0x408b05
mov ecx, dword [esp + 0x38]
push edi
call fcn.00409a91
movzx esi, word [eax]
push 0xb
pop ecx
cmp cx, si
jne 0x408af1
cmp word [eax + 8], 0xffff
sete byte [esp + 0x13]
push 3
pop ecx
cmp cx, si
jne 0x408b01
cmp dword [eax + 8], edi
setne byte [esp + 0x13]
mov al, byte [esp + 0x13]
xor ecx, ecx
push 3
test al, al
setne cl
push edi
push edi
push edi
push edi
dec ecx
dec ecx
push ecx
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x408b40
cmp dword [ebx + 4], edi
je 0x408b2e
lea ecx, [ebx - 4]
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc