Function at 0x5765f0
Capabilities:
Create service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x603776
push eax
mov dword fs:[0], esp
sub esp, 0x648
push ebx
push esi
push edi
call fcn.00484320
test eax, eax
je 0x576626
mov dword [0x6899c0], 0x32
jmp 0x5769f1
mov edi, dword [esp + 0x66c]
cmp edi, 4
ja 0x5769e7
mov eax, dword [esp + 0x664]
xor ebx, ebx
cmp eax, ebx
je 0x5769e7
cmp byte [eax], bl
je 0x5769e7
mov esi, dword [esp + 0x67c]
cmp esi, ebx
je 0x5769e7
cmp byte [esi], bl
je 0x5769e7
push ebp
mov dword [0x6899c0], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], 2
push 0xa
push ebx
push ebx
mov dword [esp + 0x66c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x5766c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x576921
test byte [esp + 0x24], 8
je 0x5766e4
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x5766e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], ebx
je 0x576921
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x576976
lea ecx, [esp + 0x10]
call fcn.005764d0
test eax, eax
je 0x576732
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x576976
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x576976
mov ebp, dword [esp + 0x684]
mov dword [esp + 0x38], ebx
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
je 0x57675e
cmp byte [ebp], bl
je 0x57675e
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x3c]
xor esi, esi
call fcn.005dd5f1
mov eax, dword [esp + 0x688]
mov byte [esp + 0x660], 1
cmp eax, ebx
je 0x576786
push eax
lea ecx, [esp + 0x40]
call fcn.005dd7cd
mov eax, dword [esp + 0x68c]
cmp eax, ebx
je 0x57679b
push eax
lea ecx, [esp + 0x40]
call fcn.005dd7cd
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], 0x400
cmp eax, ebx
jle 0x5767ef
lea ecx, [esp + 0x34]
lea edx, [esp + 0x258]
push ecx
push edx
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.004a25e0
add esp, 0x10
test eax, eax
je 0x5769d2
lea esi, [esp + 0x258]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x576842
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x57681e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x576842
test byte [esp + 0x24], 8
je 0x576842
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x57683e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x694]
mov ecx, dword [esp + 0x690]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x688]
push esi
push edx
mov edx, dword [esp + 0x684]
push ebp
push ecx
mov ecx, dword [esp + 0x688]
push edx
mov edx, dword [esp + 0x688]
push ecx
mov ecx, dword [esp + 0x698]
push edx
mov edx, dword [esp + 0x68c]
push 0xf01ff
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
cmp esi, ebx
je 0x576901
mov ebp, dword [esp + 0x67c]
mov dword [esp + 0x30], 1
cmp ebp, ebx
mov dword [esp + 0x1c], esi
je 0x57690b
call fcn.00448360
cmp dword [0x685fec], ebx
je 0x57690b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x52]
mov word [esp + 0x50], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x54]
push 0x104
push eax
push 0xffffffffffffffff
push ebp
call fcn.0049fbe0
add esp, 0x14
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
push 1
push esi
mov dword [esp + 0x38], ecx
call dword [0x685fec]
jmp 0x57690b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x660], bl
call fcn.005dd624
cmp dword [esp + 0x30], ebx
jne 0x57693c
cmp dword [0x6899c0], ebx
jne 0x57693c
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x576937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x6899c0], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
pop ebp
je 0x576952
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x576965
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x576970
push eax
call esi
mov eax, dword [esp + 0x2c]
jmp 0x5769f3
mov ecx, dword [esp + 0x694]
mov edx, dword [esp + 0x690]
push ecx
mov ecx, dword [esp + 0x690]
push edx
mov edx, dword [esp + 0x690]
push ecx
mov ecx, dword [esp + 0x690]
push edx
mov edx, dword [esp + 0x68c]
push ecx
mov ecx, dword [esp + 0x68c]
push esi
push edx
mov edx, dword [esp + 0x690]
push ecx
mov ecx, dword [esp + 0x68c]
push edx
push edi
push ecx
push eax
call fcn.005778d0
add esp, 0x30
mov dword [esp + 0x30], eax
jmp 0x57691b
lea ecx, [esp + 0x3c]
mov byte [esp + 0x660], bl
call fcn.005dd624
jmp 0x576921
mov dword [0x6899c0], 0x57
xor eax, eax
mov ecx, dword [esp + 0x654]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x654
ret