Function at 0x46eec0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc36b
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x70], 0xffffffff
je 0x46eeee
mov eax, 0x80004005
jmp 0x46f0da
push 1
mov ecx, esi
call fcn.0046f210
push 1
mov ecx, esi
call fcn.0046f1d0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateEventA]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x78], eax
jne 0x46ef20
mov eax, 0x80004005
jmp 0x46f0da
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x46ef37
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
push 0x24
call fcn.004b7e62
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x46ef56
mov ecx, eax
call fcn.0046f8d0
jmp 0x46ef58
xor eax, eax
xor ecx, ecx
mov edx, dword [esi + 0x78]
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0x60]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esi + 0x5c], eax
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ecx
mov ecx, eax
mov word [esp + 0x28], 1
mov dword [esp + 0x2c], 0xac44
mov word [esp + 0x36], 0x10
mov word [esp + 0x2a], 2
mov word [esp + 0x34], 4
mov dword [esp + 0x30], 0x2b110
call fcn.0046f920
test eax, eax
jge 0x46eff4
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x46efda
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
mov edx, dword [esi + 0x78]
mov dword [esi + 0x5c], ebx
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x78], ebx
mov eax, 0x80004005
jmp 0x46f0da
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x74], eax
jne 0x46f033
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x46f019
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
mov eax, dword [esi + 0x78]
mov dword [esi + 0x5c], ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x78], ebx
mov eax, 0x80004005
jmp 0x46f0da
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x7c], eax
jne 0x46f07a
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x46f058
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
mov ecx, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
mov dword [esi + 0x5c], ebx
call edi
mov edx, dword [esi + 0x74]
mov dword [esi + 0x78], ebx
push edx
call edi
mov dword [esi + 0x74], ebx
mov eax, 0x80004005
jmp 0x46f0da
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push 0x46f330
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
jne 0x46f0d8
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x46f0ad
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
mov ecx, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
mov dword [esi + 0x5c], ebx
call edi
mov edx, dword [esi + 0x74]
mov dword [esi + 0x78], ebx
push edx
call edi
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x74], ebx
push eax
call edi
mov dword [esi + 0x7c], ebx
mov eax, 0x80004005
jmp 0x46f0da
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4