Function at 0x4044d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call sub.vmwarebase.DLL_UUID_GetRealHostUUID
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 0x34
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40450f
push str.calloc___failed._n
push 2
call fcn.004027c0
add esp, 8
mov ebx, 0x5b8d81
jmp 0x40473d
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add eax, 0x58f
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push 0x386
push str.authd.client.port
call fcn.00402cb0
test eax, eax
mov dword [edi + 0x14], 0xffffffff
mov ecx, 0x386
cmove eax, ecx
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
lea eax, [edi + 0x14]
push 1
push eax
call fcn.00404b30
add esp, 0x1c
mov dword [edi], eax
test eax, eax
jne 0x404581
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_listen_socket:__s___d___n
push 2
call fcn.004027c0
mov ebx, 0x5b8d84
jmp 0x40473a
add dword [ebp - 4], 0xa
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + 0x18]
mov dword [eax], 0xffffffff
push 5
push eax
call fcn.00404b30
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
jne 0x4045c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_listen_socket:__s___d___n
push 2
call fcn.004027c0
mov ebx, 0x5b8d84
jmp 0x40473a
mov eax, dword [ebp - 4]
mov dword [0x411080], eax
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.00404830
add esp, 8
mov dword [edi + 8], eax
test eax, eax
jne 0x404609
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_named_pipe:__s___d___n
push 2
call fcn.004027c0
mov ebx, 0x5b8d85
jmp 0x40473a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x404641
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_shutdown_notfication:__s___d___n
push 2
call fcn.004027c0
mov ebx, 0x5b8d86
jmp 0x40473a
mov dword [0x41107c], eax
xor esi, esi
mov dword [edi + 0x10], 4
nop
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi*4 + 0x411074], eax
test eax, eax
je 0x40471c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi*4 + 0x41106c], eax
test eax, eax
je 0x404703
push 0
push 0
push esi
push 0x403e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi*4 + 0x411064], eax
test eax, eax
je 0x4046ea
inc esi
cmp esi, 2
jb 0x404650
push 0
push 0
push edi
push 0x405ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x411060], eax
test eax, eax
jne 0x4046e1
mov ebx, 0x5b8d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Call_to_Create_service_thread_failed:__s___d___n
jmp 0x404733
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x5b8d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Call_to_Create_reaper_thread_failed:__s___d___n
jmp 0x404733
mov ebx, 0x5b8d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_termination_notification:__s___d___n
jmp 0x404733
mov ebx, 0x5b8d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.vmwarebase.DLL_Err_ErrString
push eax
push str.Failed_to_create_event_for_process_creation_notification:__s___d___n
push 2
call fcn.004027c0
add esp, 0x10
xor esi, esi
nop
mov eax, dword [esi + 0x411074]
test eax, eax
je 0x40475b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x411074], 0
mov eax, dword [esi + 0x411064]
test eax, eax
je 0x404784
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x411064]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x411064], 0
mov dword [esi + 0x41106c], 0
add esi, 4
cmp esi, 8
jb 0x404740
mov eax, dword [0x411060]
test eax, eax
je 0x4047be
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x411060]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411060], 0
test edi, edi
je 0x404813
xor esi, esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x4047d7
cmp esi, 3
je 0x4047d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 4
jl 0x4047c4
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x4047ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x4047fb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x404809
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
mov eax, ebx
mov dword [0x41107c], 0
pop ebx
mov esp, ebp
pop ebp
ret