Function at 0x438bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x260], 0
je 0x438c22
push 0
push 0
push 0
push 3
push 1
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [0x58e1a4]
mov esi, 1
mov edx, dword [0x58e1a8]
mov dword [ebp - 0x20], eax
cmp eax, edx
jae 0x438cac
nop dword [eax]
test esi, esi
js 0x438de1
mov ebx, dword [eax]
test ebx, ebx
je 0x438ca2
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], 0
test ecx, ecx
jne 0x438c60
xor esi, esi
jmp 0x438ca2
lea eax, [ebp - 0x1c]
push eax
push 0x54dc90
push dword [ebx + 0xc]
call ecx
mov esi, eax
test esi, esi
js 0x438c8c
mov eax, dword [ebx + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x438c99
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x58e1a8]
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
cmp eax, edx
jb 0x438c40
test esi, esi
js 0x438de1
jne 0x438ddd
cmp byte [edi + 0x3c], 0
je 0x438d85
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x438d77
lea eax, [ebp - 0x20]
push eax
push 0
push edi
push 0x437f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x438d09
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x438d77
cmp dword [edi + 0x260], 0
je 0x438d4c
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x438d4c
push str.Service_started_resumed
push edi
call fcn.00437b20
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x438d6e
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438dd0
mov ecx, edi
mov esi, 0x80004005
call fcn.0043b2e0
jmp 0x438de1
cmp dword [edi + 0x260], 0
je 0x438dc8
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x438dc8
push str.Service_started_resumed
push edi
call fcn.00437b20
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x438de1
mov ecx, edi
call fcn.0043b2e0
jmp 0x438de1
mov byte [edi + 0x3c], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4