Function at 0x403ed0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x42d3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x438ab4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438ab4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x6c], ebx
cmp byte [esi + 0x3c], bl
jne 0x403f2f
cmp dword [esp + 0x8c], 0x10
jb 0x404198
mov eax, dword [esp + 0x78]
push eax
call fcn.00405250
add esp, 4
jmp 0x404198
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1a
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.Protexis_Licensing_Service
mov byte [ecx + 4], bl
call fcn.004022e0
lea ecx, [esp + 0x3c]
call fcn.0042b1c0
push 1
push ebx
push ebx
mov byte [esp + 0x78], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
jne 0x403fc2
push ebx
push 0xc0000019
lea ecx, [esp + 0x28]
call fcn.0042b5d0
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x403f97
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00405250
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x8c], esi
jb 0x404198
mov edx, dword [esp + 0x78]
push edx
call fcn.00405250
add esp, 4
jmp 0x404198
cmp dword [esi + 0x18], 0x10
jb 0x403fcd
mov esi, dword [esi + 4]
jmp 0x403fd0
add esi, 4
push 1
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
jne 0x404041
push ebx
push 0xc0000020
lea ecx, [esp + 0x28]
call fcn.0042b5d0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x404012
mov eax, dword [esp + 0x24]
push eax
call fcn.00405250
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x8c], esi
jb 0x404198
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00405250
add esp, 4
jmp 0x404198
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x404098
push ebx
push 0xc0000030
lea ecx, [esp + 0x28]
call fcn.0042b5d0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
cmp dword [esp + 0x38], 0x10
jb 0x404083
mov edx, dword [esp + 0x24]
push edx
call fcn.00405250
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jmp 0x40418f
lea eax, [esp + 0x1c]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4040d5
push ebx
push 0xc0000029
lea ecx, [esp + 0x28]
call fcn.0042b5d0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
jmp 0x404186
mov edi, dword [esi + 0xc]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4040e0
sub eax, edx
inc eax
push eax
push edi
call fcn.0040febc
add esp, 8
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x6c], 2
mov ecx, dword [esi + 0xc]
cmp byte [ecx], 0x22
mov eax, ecx
lea edi, [eax + 1]
jne 0x404125
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404116
sub eax, edi
add eax, 0xfffffffe
inc ecx
jmp 0x40412e
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404125
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.004022e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push ebp
call esi
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x44]
call fcn.00404460
lea ecx, [esp + 0x40]
test eax, eax
jne 0x404181
call fcn.00401d70
lea esi, [esp + 0x20]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401d70
mov al, 1
jmp 0x40419a
call fcn.00401d70
lea esi, [esp + 0x20]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401d70
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040f653
add esp, 0x5c
ret 0x1c