Function at 0x10015c40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x10], ecx
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10003510
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x10015c9d
mov byte [ebp - 0x13], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003550
mov al, byte [ebp - 0x13]
jmp 0x10015ede
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.10003710
movzx eax, al
test eax, eax
je 0x10015e27
call fcn.10015ef0
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.10017939
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.10002590
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1001acc0
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.10003610
lea ecx, [ebp - 0x7c]
call fcn.10002570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10002570
push str.dlpath
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.10002590
push eax
push 0x80000002
lea edx, [ebp - 0x64]
push edx
call fcn.100179d1
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.10003610
lea ecx, [ebp - 0x64]
call fcn.10002570
push 0x10021500
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.10002590
push eax
push 0x80000002
lea ecx, [ebp - 0x94]
push ecx
call fcn.100179d1
add esp, 0x10
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.10003610
lea ecx, [ebp - 0x94]
call fcn.10002570
push 0x10021508
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.10002590
push eax
push 0x80000002
call fcn.100178c3
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x98], eax
mov ecx, dword [ebp - 0x10]
call fcn.100169f0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x98], 0
je 0x10015dfa
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x98], 0x708
jae 0x10015dfa
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x98], 0x708
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.10003710
movzx edx, al
test edx, edx
je 0x10015e27
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003550
mov al, byte [ebp - 0x14]
jmp 0x10015ede
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x9c], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa0], eax
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
push 0x10015a30
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x10015ec8
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003550
mov al, byte [ebp - 0x11]
jmp 0x10015ede
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003550
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8