Function at 0x406890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5460f0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6c], edi
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4068d7
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
lea eax, [edi + 4]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push dword [eax]
mov dword [ebp - 0x70], eax
call edi
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x1c60], eax
call fcn.00406000
mov ecx, dword [ebp - 0x6c]
push 0x8ca8
push dword [ecx + 4]
mov dword [ecx + 0x1c68], eax
call edi
mov edi, dword [ebp - 0x6c]
push 0
push dword [edi + 4]
lea ecx, [edi + 0x1488]
mov dword [edi + 0x1c64], eax
call fcn.004060f0
push dword [edi + 0x148c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c14
push 0
push dword [edi + 4]
lea ecx, [edi + 0x880]
call fcn.004062d0
push dword [edi + 0x884]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c14
push 0
push dword [edi + 4]
lea ecx, [edi + 0x14d0]
call fcn.00406230
push dword [edi + 0x14d4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c14
push 0
push dword [edi + 4]
lea ecx, [edi + 0x1518]
call fcn.00406190
push dword [edi + 0x151c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c14
mov eax, dword [edi + 0x148c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x884]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x14d4]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x151c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x1c60]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x6a
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x68
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x69
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 0x6b
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x50]
push eax
push dword [edi + 4]
push dword [edi + 0x1c60]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [edi + 0x1c68]
add edi, 0x1c6c
inc dword [ebp - 0x50]
mov ecx, edi
add dword [ebp - 0x4c], eax
sub dword [ebp - 0x48], 3
sub dword [ebp - 0x44], 2
mov dword [ebp - 0x7c], edi
call fcn.0046c140
mov dword [ebp - 0x74], 0
mov esi, 4
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004c59c0
sub esi, 1
jne 0x406a88
mov esi, dword [ebp - 0x78]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], 4
nop dword [eax + eax]
push 0
push dword [edi - 4]
call fcn.00404930
add esp, 8
test eax, eax
je 0x406ad0
push dword [edi - 4]
lea ecx, [ebp - 0x78]
push eax
call fcn.00405150
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
push 0
push 0
push 0x1304
push dword [ecx + 0x1c60]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 1
push ecx
push eax
mov eax, dword [ebp - 0x6c]
xorps xmm0, xmm0
push 0x1307
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x90], esi
push dword [eax + 0x1c60]
movq qword [ebp - 0x88], xmm0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi - 8]
test ecx, ecx
js 0x406b42
mov eax, dword [ebp - 0x7c]
cmp ecx, dword [eax + 4]
jge 0x406b42
mov eax, dword [eax]
lea ecx, [eax + ecx*4]
test ecx, ecx
je 0x406b42
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
sub eax, edx
mov ecx, dword [ebp - 0x50]
mov edi, dword [edi]
push 0x14
push eax
mov eax, dword [ebp - 0x48]
sub eax, ecx
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [ebp - 0x80]
add edi, 0xc
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x80], edi
jne 0x406ab0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x6c]
test eax, eax
js 0x406ba2
cmp eax, dword [edi + 0x1c70]
jge 0x406ba2
push eax
mov ecx, edi
call fcn.004071d0
push 0x2040000
push 1
push 1
lea ecx, [edi + 0x24]
call fcn.00406370
mov edi, dword [ebp - 0x70]
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.00404590
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov eax, dword [0x593dcc]
add eax, 0x10
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x59412c]
lea eax, [ebp - 0x70]
push eax
call fcn.00406710
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
add ecx, 0x20
mov dword [ebp - 0x70], ecx
lea ecx, [edi + 4]
push eax
call fcn.004c59c0
xor edi, edi
jmp 0x406c17
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406c36
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0x10