Function at 0x10134ed0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d87cd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10205ac8]
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 dword [ebp - 0x38], ecx
push reloc.WS2_32.dll_accept
xor edi, edi
xor bl, bl
push edi
push edi
mov byte [ebp - 0x31], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x101350ce
mov ecx, dword [ebp - 0x38]
call fcn.10135ee0
mov ecx, dword [0x10203024]
test al, al
push closesocket
cmovne ecx, dword [0x10203028]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x101350ba
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 0x30]
push ecx
push edi
push edi
push eax
mov dword [ebp - 0x30], edi
call esi
test eax, eax
jne 0x101350ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101350ae
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x101350ae
push eax
call fcn.100f0090
mov edi, eax
add esp, 4
test edi, edi
je 0x101350ae
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x38]
call esi
test eax, eax
je 0x101350ae
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10134fbc
cmp byte [ebp + 8], bl
jne 0x10134fce
jmp 0x101350ae
cmp eax, 3
jne 0x101350ae
cmp byte [ebp + 0xc], bl
je 0x101350ae
push dword [edi + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.100d2410
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
lea ebx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp edx, 0x10
mov dword [ebp - 0x40], ecx
cmovae eax, esi
mov dword [ebp - 4], 0
add eax, ecx
cmp edx, 0x10
mov dword [ebp - 0x3c], eax
cmovae ebx, esi
add ebx, ecx
cmp edx, 0x10
lea ecx, [ebp - 0x28]
mov eax, ebx
cmovae ecx, esi
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.101b6830
add esp, 0xc
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov esi, ecx
cmp ecx, ebx
je 0x10135043
inc ecx
cmp ecx, ebx
je 0x10135043
mov al, byte [ecx]
cmp al, 0x22
je 0x10135039
mov byte [esi], al
inc esi
inc ecx
cmp ecx, ebx
jne 0x10135030
mov ebx, dword [ebp - 0x18]
jmp 0x10135046
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, esi
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub dword [ebp - 0x3c], esi
sub edx, eax
mov esi, dword [ebp - 0x3c]
mov eax, ebx
sub eax, edx
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
sub ebx, esi
add ecx, edx
mov dword [ebp - 0x18], ebx
sub ebx, edx
inc ebx
push ebx
lea eax, [ecx + esi]
push eax
push ecx
call fcn.101b6150
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.100d2e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
test al, al
jne 0x101350a7
call fcn.1006c640
mov bl, byte [ebp - 0x31]
jmp 0x101350ae
mov bl, 1
call fcn.1006c640
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x101350ce
push edi
call fcn.100ecdf4
add esp, 4
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.101b4a00
mov esp, ebp
pop ebp
ret 8