Function at 0x466c10
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e1bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x66f040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004ad886
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.004b2374
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x466cf9
call fcn.004aa5ff
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x466c7e
push 0x80004005
call fcn.00460d60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x65
mov dword [esp + 0x2c], 0
call fcn.004ab84a
test eax, eax
je 0x466caf
push 0x65
push eax
lea ecx, [esp + 0x18]
call fcn.00460790
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
je 0x466cd7
push 0
push 0
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
call edi
mov eax, dword [esp + 0x18]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
add esi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466cf9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x98]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0x98]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push 0x45c060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebx + 0x20]
mov dword [0x680c00], eax
call fcn.004aa5ff
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x466d61
push 0x80004005
call fcn.00460d60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 1
mov ecx, dword [0x6803c0]
call fcn.004940f0
mov ecx, ebx
mov edi, eax
call fcn.004760a0
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004763b0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x466e0d
push ecx
lea eax, [esp + 0x14]
push 0x64bba8
push eax
call fcn.00460980
add esp, 0xc
lea eax, [edi + 0x18]
mov ecx, ebx
push 0x10
push eax
push dword [esp + 0x18]
call fcn.004a5003
lea ecx, [esp + 0x10]
call fcn.004609a0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466dff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x466ded
mov ecx, ebx
call fcn.004a4523
mov ecx, ebx
call fcn.004ad760
mov esi, dword [esp + 0x10]
xor edi, edi
jmp 0x466ef8
mov ecx, ebx
call fcn.0047b910
push 0
call fcn.005c35aa
mov ecx, ebx
call fcn.00474650
test eax, eax
jne 0x466e47
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466dff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x466e39
mov ecx, ebx
call fcn.004a4523
mov ecx, ebx
call fcn.004ad760
xor edi, edi
jmp 0x466ef8
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x466e64
push eax
call fcn.005c1e76
add esp, 4
mov dword [ebx + 0x9c], 0
mov eax, dword [ebx + 0xa4]
mov dword [ebx + 0xa0], 0
test eax, eax
je 0x466e8b
push eax
call fcn.0049a336
add esp, 4
mov dword [ebx + 0xa4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x64d074
push 0x17
push 0
push 0x624f7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x466ecc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, ebx
call fcn.00474f90
mov ecx, dword [0x6803f0]
push 0
call fcn.004940f0
xor eax, 0x5d9507e
mov ecx, ebx
push eax
call fcn.0047c980
mov edi, 1
add esi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466f1a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret