Function at 0x1002dd00
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xfffffffffffffffe
push 0x10185e78
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x318]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x31c]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x320]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x104], bl
push 0x207
push ebx
lea ecx, [ebp + 0x105]
push ecx
call fcn.1012e060
call fcn.10016ab0
push 0x154
push ebx
push 0x101b3610
call fcn.1012e060
add esp, 0x18
cmp dword [0x101aa5a4], 5
jl 0x1002dda7
push str.InvokeLogServer___called...
call fcn.10017540
add esp, 4
push esi
push 0x101b374a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10128238
add esp, 4
mov word [0x101b3748], ax
mov dword [0x101b3720], ebx
mov dword [0x101b3734], 1
push edi
push 0x101b361c
call esi
cmp byte [edi], bl
je 0x1002df85
mov esi, 5
cmp dword [0x101aa5a4], esi
jl 0x1002de02
push edi
push str.Creating_Pipe___s_
call fcn.10017540
add esp, 8
push ebx
push 3
push ebx
push 0x40000000
call fcn.1005aa40
add esp, 0x10
mov dword [0x101b3610], eax
cmp eax, 0xffffffff
jne 0x1002de88
push 0x104
lea esi, [ebp]
call fcn.10065360
add esp, 4
cmp dword [0x101aa5a4], 5
jl 0x1002de4d
mov eax, esi
push eax
mov ecx, dword [0x101aa6bc]
push ecx
push str.CreatePipe_Failed__SecServerSendEventsToPrimaryServer_d__Err:_s_
call fcn.10017540
add esp, 0xc
cmp dword [0x101aa6bc], ebx
jne 0x1002df95
lea edx, [ebp]
push edx
push edi
push str._COMM__MyCreateFileA_of_pipe__s_Failed__Reason:__s
lea eax, [ebp + 0x104]
push eax
call fcn.10127dc0
lea ecx, [ebp + 0x104]
push ecx
push 0x1014d8cc
call fcn.10017540
add esp, 0x18
jmp 0x1002df95
cmp dword [0x101aa5a4], esi
jl 0x1002de9d
push str.Pipe_Success...
call fcn.10017540
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], 2
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [0x101b3610]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov esi, eax
cmp dword [0x101aa5a4], 5
jl 0x1002dedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.PipeHandleState_rv:__u__LE:__u_
call fcn.10017540
add esp, 0xc
push 0x61a8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x101b3610]
mov dword [0x10197254], ecx
mov ecx, edi
mov edx, 0x101b30c8
jmp 0x1002df00
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x1002df00
push ebx
push ebx
push 0x10016d50
call fcn.10127f7d
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1002df61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._COMM__Error:_beginthread_X22__fails_with_error__d
lea edx, [ebp]
push edx
call fcn.10127dc0
lea eax, [ebp + 0x104]
push eax
push 0x1014d8cc
call fcn.10017540
add esp, 0x14
cmp dword [0x101a9f54], ebx
je 0x1002df95
push esi
push str._EQ__Error:_beginthread_X22__fails_with_error__d
call fcn.10017540
add esp, 8
jmp 0x1002df95
push str.EvtQueue_Processing_Thread_Created.
call fcn.10017540
add esp, 4
cmp dword [0x101a9f54], ebx
je 0x1002df95
push str._EQ__EvtQueue_Processing_Thread_Created.
call fcn.10017540
add esp, 4
jmp 0x1002df95
mov dword [0x101b3610], ebx
mov dword [0x10197254], 0xffffffff
mov dword [0x101b3614], 4
push 1
mov ecx, 0x101b3610
call fcn.10020870
add esp, 4
mov esi, eax
cmp dword [0x101aa5a4], 5
jl 0x1002dfc7
push esi
push str.StartCommServer__Ret___d_
call fcn.10017540
add esp, 8
cmp esi, 1
jne 0x1002e02d
mov ecx, dword [0x101aa494]
cmp ecx, ebx
je 0x1002e008
mov eax, dword [0x101aa49c]
cmp eax, ebx
je 0x1002e008
push eax
push ecx
push str._COMM__Not_Invoking_SendEvents_To_Cloud__SMBCorp:_u__ESClnt:_u_
lea ecx, [ebp + 0x104]
push ecx
call fcn.10127dc0
lea edx, [ebp + 0x104]
push edx
push 0x1014d8cc
call fcn.10017540
add esp, 0x18
jmp 0x1002e020
push ebx
push ebx
push 0x1002c690
call fcn.10127f7d
add esp, 0xc
jmp 0x1002e020
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002e020
call fcn.10096dc0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push str._COMM__InvokeLogServer_on__s:_s_Failed_
lea edx, [ebp + 0x104]
push edx
call fcn.10127dc0
lea eax, [ebp + 0x104]
push eax
push 0x1014d8cc
call fcn.10017540
add esp, 0x18
jmp 0x1002e079
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x310
mov esp, ebp
pop ebp
ret 0xc