Function at 0x593d40
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5febae
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x20019
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.005d6a80
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.005d6a00
test eax, eax
jne 0x593d9e
xor bl, bl
jmp 0x593ff0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push esi
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.005dc570
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.005dbf40
cmp byte [eax + 8], 0
je 0x593fe6
lea eax, [ebp - 0x68]
push eax
push str.Type
lea ecx, [ebp - 0x14]
call fcn.005d66b0
test al, al
je 0x593fe6
lea eax, [ebp - 0x64]
push eax
push str.Start
lea ecx, [ebp - 0x14]
call fcn.005d66b0
test al, al
je 0x593fe6
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x5c]
movq qword [ebp - 0x5c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x50], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.005dc5e0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
push str.ImagePath
lea ecx, [ebp - 0x14]
call fcn.005d6740
test al, al
jne 0x593e95
xor bl, bl
jmp 0x593fbc
lea eax, [ebp - 0x60]
push eax
push str.ErrorControl
lea ecx, [ebp - 0x14]
call fcn.005d66b0
lea eax, [ebp - 0x2c]
push eax
push str.DisplayName
lea ecx, [ebp - 0x14]
call fcn.005d6740
test al, al
jne 0x593ec7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc4e0
lea eax, [ebp - 0x50]
push eax
push str.Group
lea ecx, [ebp - 0x14]
call fcn.005d6740
lea eax, [ebp - 0x20]
push eax
push str.DependOnService
lea ecx, [ebp - 0x14]
call fcn.005d6740
lea ecx, [ebp - 0x20]
call fcn.005dc3a0
mov edi, eax
mov esi, 1
cmp edi, esi
jle 0x593f22
nop dword [eax]
push esi
lea ecx, [ebp - 0x20]
call fcn.005dc440
cmp word [eax], 0xa
jne 0x593f1d
push esi
lea ecx, [ebp - 0x20]
call fcn.005dc440
xor ecx, ecx
mov word [eax], cx
inc esi
cmp esi, edi
jl 0x593f00
lea eax, [ebp - 0x44]
push eax
push str.ObjectName
lea ecx, [ebp - 0x14]
call fcn.005d6740
lea ecx, [ebp - 0x14]
call fcn.005d5440
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x593e8e
push 0
lea ecx, [ebp - 0x44]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
push 0
lea ecx, [ebp - 0x50]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x5c]
call fcn.005dc190
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push SysReAllocString
call fcn.005dc190
push eax
lea ecx, [ebp - 0x38]
call fcn.005dc190
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
setne bl
test eax, eax
je 0x593fb9
push eax
call edi
push esi
call edi
lea ecx, [ebp - 0x44]
call fcn.005dc430
lea ecx, [ebp - 0x20]
call fcn.005dc430
lea ecx, [ebp - 0x50]
call fcn.005dc430
lea ecx, [ebp - 0x5c]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
call fcn.005dc430
jmp 0x593fe8
xor bl, bl
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x14]
call fcn.005d69e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret