Function at 0x408851
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471244
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x492fb4]
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 0x408b9a
je 0x408b6a
mov eax, ecx
dec eax
je 0x408b53
dec eax
je 0x408a5f
dec eax
je 0x408964
dec eax
je 0x408941
dec eax
jne 0x408bb7
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.00409ccc
cmp eax, edi
jne 0x408cf6
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00409ba2
mov byte [esp + 0x58], 5
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], edi
jne 0x408921
lea ecx, [esi - 0x10]
call fcn.0040267a
mov eax, 0x80070057
jmp 0x408cf6
push esi
lea ecx, [ebx + 0x38]
call fcn.00418080
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408939
mov byte [ebx + 0x88], 1
lea ecx, [esi - 0x10]
jmp 0x408a55
push 1
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [ebx + 0x90]
cmp byte [esi], 0
je 0x40895c
call fcn.004109c7
mov dword [ebx + 4], edi
jmp 0x408cf2
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 0x498be8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], edi
call fcn.00401ed0
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffff0
jle 0x4089d3
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.00409ba2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.00402007
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040267a
lea esi, [ebx + 0x90]
cmp byte [esi], 0
jne 0x4089ee
push dword [esp + 0x18]
mov eax, esi
call fcn.00410778
cmp byte [esi], 0
je 0x408a4e
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 0x408a47
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00409ba2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], edi
je 0x408a3f
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
je 0x408a3f
mov edi, ecx
mov ebx, eax
mov ecx, esi
call fcn.0041090d
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x10]
call fcn.0040267a
mov dword [ebx + 4], 2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040267a
jmp 0x408cf2
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.00409ccc
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408cf6
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
dec eax
jns 0x408aaa
mov dword [esp + 0x24], edi
jmp 0x408ac6
mov ecx, dword [esp + 0x38]
push edi
call fcn.00409c3a
cmp si, word [eax]
jne 0x408abe
mov eax, dword [eax + 8]
jmp 0x408ac2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
push 1
lea ecx, [esp + 0x34]
call fcn.00409b69
lea esi, [ebx + 0x14]
push dword [esi]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408cf2
cmp dword [esp + 0x24], 0xa
jle 0x408cf2
cmp dword [esp + 0x28], 0xa
jle 0x408cf2
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.00409097
push esi
call fcn.00408f12
add ebx, 0x10
call fcn.004099b8
jmp 0x408cf2
push 6
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 4], 1
jmp 0x408cf2
mov esi, dword [ebp + 0x10]
push esi
call fcn.00408efb
push dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00408334
pop ecx
pop ecx
mov dword [esp + 0x58], 6
push dword [eax]
call fcn.00408ec3
mov ecx, dword [esp + 0x2c]
jmp 0x408a52
push 8
mov eax, ecx
pop esi
sub eax, esi
je 0x408cd2
dec eax
dec eax
je 0x408c2f
sub eax, 6
je 0x408bfa
dec eax
je 0x408bde
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.0040a9d9
mov dword [esp + 0x14], eax
jmp 0x408cf2
call fcn.00405995
lea edi, [esp + 0x24]
call fcn.00410284
mov dword [esp + 0x58], 9
mov edi, dword [esp + 0x24]
jmp 0x408c1e
push 0x498be8
lea ecx, [esp + 0x20]
call fcn.00401ed0
mov dword [esp + 0x58], esi
call fcn.00405995
lea ecx, [esp + 0x1c]
call fcn.00410353
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0x10]
push edi
call fcn.00408ec3
lea ecx, [edi - 0x10]
jmp 0x408a55
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.00409ccc
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408cf6
cmp dword [ebx + 4], edi
jne 0x408c6d
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 0x408c84
xor al, al
jmp 0x408cb7
mov ecx, dword [esp + 0x38]
push edi
call fcn.00409c3a
movzx esi, word [eax]
push 0xb
pop ecx
cmp cx, si
jne 0x408ca3
cmp word [eax + 8], 0xffff
sete byte [esp + 0x13]
push 3
pop ecx
cmp cx, si
jne 0x408cb3
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 0x408cf2
cmp dword [ebx + 4], edi
je 0x408ce0
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