Function at 0x340fd3c0
Capabilities:
Create service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34144916
push eax
mov dword fs:[0], esp
sub esp, 0xa44
push ebx
push esi
push edi
call fcn.340f29a0
test eax, eax
je 0x340fd3f6
mov dword [0x341ad488], 0x32
jmp 0x340fd7c4
mov edi, dword [esp + 0xa68]
cmp edi, 4
ja 0x340fd7ba
mov eax, dword [esp + 0xa60]
xor ebx, ebx
cmp eax, ebx
je 0x340fd7ba
cmp word [eax], bx
je 0x340fd7ba
mov esi, dword [esp + 0xa78]
cmp esi, ebx
je 0x340fd7ba
cmp word [esi], bx
je 0x340fd7ba
push ebp
mov dword [0x341ad488], 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 + 0xa68], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x340fd496
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x340fd6f4
test byte [esp + 0x24], 8
je 0x340fd4b6
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x340fd4b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], ebx
je 0x340fd6f4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x340fd749
lea ecx, [esp + 0x10]
call fcn.340fd2a0
test eax, eax
je 0x340fd504
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_OpenServiceW]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x340fd749
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x340fd749
mov ebp, dword [esp + 0xa80]
mov dword [esp + 0x38], ebx
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
je 0x340fd531
cmp word [ebp], bx
je 0x340fd531
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x3c]
xor esi, esi
call fcn.340acc50
mov eax, dword [esp + 0xa84]
mov byte [esp + 0xa5c], 1
cmp eax, ebx
je 0x340fd559
push eax
lea ecx, [esp + 0x40]
call fcn.340acea0
mov eax, dword [esp + 0xa88]
cmp eax, ebx
je 0x340fd56e
push eax
lea ecx, [esp + 0x40]
call fcn.340acea0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], 0x400
cmp eax, ebx
jle 0x340fd5c2
lea ecx, [esp + 0x34]
lea edx, [esp + 0x254]
push ecx
push edx
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.340b3ad0
add esp, 0x10
test eax, eax
je 0x340fd7a5
lea esi, [esp + 0x254]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x340fd615
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x340fd5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x340fd615
test byte [esp + 0x24], 8
je 0x340fd615
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x340fd611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xa90]
mov ecx, dword [esp + 0xa8c]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xa84]
push esi
push edx
mov edx, dword [esp + 0xa80]
push ebp
push ecx
mov ecx, dword [esp + 0xa84]
push edx
mov edx, dword [esp + 0xa84]
push ecx
mov ecx, dword [esp + 0xa94]
push edx
mov edx, dword [esp + 0xa88]
push 0xf01ff
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, ebx
je 0x340fd6d4
mov ebp, dword [esp + 0xa78]
mov dword [esp + 0x30], 1
cmp ebp, ebx
mov dword [esp + 0x1c], esi
je 0x340fd6de
call fcn.34095400
cmp dword [0x341a559c], ebx
je 0x340fd6de
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x50]
push 0x104
push eax
push 0xffffffffffffffff
push ebp
call fcn.340b1110
add esp, 0x14
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push edx
push 1
push esi
mov dword [esp + 0x38], ecx
call dword [0x341a559c]
jmp 0x340fd6de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa5c], bl
call fcn.340acc60
cmp dword [esp + 0x30], ebx
jne 0x340fd70f
cmp dword [0x341ad488], ebx
jne 0x340fd70f
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x340fd70a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x341ad488], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
pop ebp
je 0x340fd725
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x340fd738
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x340fd743
push eax
call esi
mov eax, dword [esp + 0x2c]
jmp 0x340fd7c6
mov ecx, dword [esp + 0xa90]
mov edx, dword [esp + 0xa8c]
push ecx
mov ecx, dword [esp + 0xa8c]
push edx
mov edx, dword [esp + 0xa8c]
push ecx
mov ecx, dword [esp + 0xa8c]
push edx
mov edx, dword [esp + 0xa88]
push ecx
mov ecx, dword [esp + 0xa88]
push esi
push edx
mov edx, dword [esp + 0xa8c]
push ecx
mov ecx, dword [esp + 0xa88]
push edx
push edi
push ecx
push eax
call fcn.340fe6a0
add esp, 0x30
mov dword [esp + 0x30], eax
jmp 0x340fd6ee
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa5c], bl
call fcn.340acc60
jmp 0x340fd6f4
mov dword [0x341ad488], 0x57
xor eax, eax
mov ecx, dword [esp + 0xa50]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa50
ret