Function at 0x1001ee10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008353f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.LudashiServiceMain
call fcn.10007df0
mov eax, dword [0x100af9cc]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001ee58
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push eax
push 0x1001ec60
push 0
push 0
mov dword [0x100af9cc], eax
call fcn.100600a4
add esp, 0x18
push eax
call esi
call fcn.10008ad0
push 1
mov ecx, eax
call fcn.10047400
test al, al
jne 0x1001eea8
push str.ProductHelperSingleton_init_fail
call fcn.10007df0
add esp, 4
jmp 0x1001f06e
call fcn.100195e0
mov ecx, eax
call fcn.10014500
test eax, eax
jne 0x1001eeca
push str.LudashiServiceMain_init_fail
call fcn.10007df0
add esp, 4
jmp 0x1001f06e
push 0
push 0
push dword [0x100af9cc]
push 0x10022230
push 0
push 0
call fcn.100600a4
add esp, 0x18
push eax
call esi
push str.ServiceMain
call fcn.10007df0
mov ecx, dword [0x100af984]
add esp, 4
test ecx, ecx
jne 0x1001ef5b
push 0x100ad004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100af984], 0
jne 0x1001ef4a
push 0x14
call fcn.10051708
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001ef34
mov ecx, eax
call fcn.10014250
jmp 0x1001ef36
xor eax, eax
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x34]
lock or dword [ecx], edx
mov dword [0x100af984], eax
push 0x100ad004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100af984]
lea eax, [ebp - 0x30]
push eax
call fcn.10014490
mov dword [ebp - 4], 1
push 0
push 0x1001e8a0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x100af9c8], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001efa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x100af9c8], 0
jne 0x1001efbc
push str.SvcHostDLL_RegisterServiceCtrlHandler_failed
call fcn.10007df0
add esp, 4
jmp 0x1001f06e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [0x100af9c8]
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x47
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xbb8
call esi
mov ecx, dword [0x100af9d0]
test eax, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
mov edx, 2
mov dword [ebp - 0x28], 4
push eax
push dword [0x100af9c8]
cmovne ecx, edx
mov dword [ebp - 0x24], 0x47
mov dword [0x100af9d0], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xbb8
call esi
mov ecx, dword [0x100af9d0]
test eax, eax
mov edx, 4
cmovne ecx, edx
mov dword [0x100af9d0], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 8