Function at 0x467d38
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467fe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404328
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x416230]
call fcn.00403504
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x467fae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x467dad
call fcn.00403d6c
jmp 0x467fb5
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004047e8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x467dd7
call fcn.00403d6c
jmp 0x467fb5
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigA
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x467e01
call fcn.00403d6c
jmp 0x467fb5
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x467d14]
call fcn.0040558c
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004053d0
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x467e82
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
call fcn.0040bed8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x467ff4
call fcn.004670a0
call fcn.00403d6c
jmp 0x467fb5
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.00409760
cmp dword [ebp - 0x28], 0
jne 0x467eb9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea edx, [ebp - 0x48]
xor ecx, ecx
mov eax, 0x468028
call fcn.004670a0
call fcn.00403d6c
jmp 0x467fb5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea edx, [ebp - 0x48]
xor ecx, ecx
mov eax, 0x468058
call fcn.004670a0
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0x22
jne 0x467f33
mov ecx, 2
mov edx, dword [ebp - 0x28]
mov eax, 0x468080
call fcn.0043285c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x467f09
mov eax, 0x46808c
call fcn.00467028
call fcn.00403d6c
jmp 0x467fb5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
dec ecx
dec ecx
mov edx, 2
mov eax, dword [ebp - 0x28]
call fcn.004327ec
mov eax, 0x4680ac
call fcn.00467028
call fcn.00403d6c
jmp 0x467fb5
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.0040437c
call fcn.00403d6c
jmp 0x467fb5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467fe8
lea eax, [ebp - 0x40]
call fcn.00404328
lea eax, [ebp - 0x28]
call fcn.00404328
lea eax, [ebp - 0x18]
mov edx, dword [0x467d14]
call fcn.00405598
ret