Function at 0x4034d0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x4206e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x42a874]
push ebx
push ebp
push esi
mov dword [esp + 0x50], eax
push edi
mov esi, ecx
mov al, byte [esi + 0x3c]
xor ebx, ebx
cmp al, bl
mov dword [esp + 0x60], ebx
jne 0x403524
cmp dword [esp + 0x80], 0x10
jb 0x403761
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041a56d
add esp, 4
jmp 0x403761
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x1a
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.Protexis_Licensing_Service
mov byte [ecx + 4], bl
call fcn.004014c0
lea ecx, [esp + 0x34]
call fcn.00412650
push 1
push ebx
push ebx
mov byte [esp + 0x6c], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x4035b9
push ebx
push 0xc0000019
lea ecx, [esp + 0x20]
call fcn.00412bf0
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
jb 0x40358e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x403761
mov edx, dword [esp + 0x6c]
push edx
call fcn.0041a56d
add esp, 4
jmp 0x403761
cmp dword [esi + 0x18], 0x10
jb 0x4035c4
mov esi, dword [esi + 4]
jmp 0x4035c7
add esi, 4
push 1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
cmp ebp, ebx
jne 0x403636
push ebx
push 0xc0000020
lea ecx, [esp + 0x20]
call fcn.00412bf0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
jb 0x403607
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x403761
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041a56d
add esp, 4
jmp 0x403761
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x403669
push ebx
push 0xc0000030
lea ecx, [esp + 0x20]
call fcn.00412bf0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
jmp 0x40374f
lea edx, [esp + 0x14]
push edx
push 0x1000
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4036a6
push ebx
push 0xc0000029
lea ecx, [esp + 0x20]
call fcn.00412bf0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
jmp 0x40374f
mov eax, dword [esi + 0xc]
push eax
call fcn.00412df0
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov ecx, dword [esi + 0xc]
cmp byte [ecx], 0x22
mov eax, ecx
mov byte [esp + 0x60], 2
lea edx, [eax + 1]
jne 0x4036e9
mov dword [esp + 0x10], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4036d8
sub eax, dword [esp + 0x10]
add eax, 0xfffffffe
inc ecx
jmp 0x4036fb
mov dword [esp + 0x10], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4036f0
sub eax, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004014c0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.004028b0
test eax, eax
lea ecx, [esp + 0x38]
jne 0x40374a
call fcn.004013a0
lea ecx, [esp + 0x18]
call fcn.004013a0
lea ecx, [esp + 0x68]
call fcn.004013a0
mov al, 1
jmp 0x403763
call fcn.004013a0
lea ecx, [esp + 0x18]
call fcn.004013a0
lea ecx, [esp + 0x68]
call fcn.004013a0
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
call fcn.004064ce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x1c