Function at 0x42e9b0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460b11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x42e9ef
cmp dword [ebp + 0xc], 0
jne 0x42ea09
cmp dword [ebp + 0x18], 0
je 0x42e9fe
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x57
xor ecx, ecx
test ecx, ecx
jne 0x42e9ef
jmp 0x42ec9e
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x24], 0
jne 0x42ea3c
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.0042e850
test eax, eax
jne 0x42ea3c
cmp dword [ebp + 0x18], 0
je 0x42ea31
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x57
xor edx, edx
test edx, edx
jne 0x42ea22
jmp 0x42ec9e
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
cmp dword [ebp - 0x1c], 0
jne 0x42ea85
cmp dword [ebp + 0x18], 0
je 0x42ea7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
test eax, eax
jne 0x42ea69
jmp 0x42ec9e
push 0x1dc
push 0x4a13b4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401244
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x42eac4
cmp dword [ebp + 0x18], 0
je 0x42eab9
mov eax, dword [ebp + 0x18]
mov dword [eax], 8
xor ecx, ecx
test ecx, ecx
jne 0x42eaaa
jmp 0x42ec9e
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42eb08
cmp dword [ebp + 0x18], 0
je 0x42eafd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
test eax, eax
jne 0x42eaec
jmp 0x42ec9e
push 0x1eb
push 0x4a13f0
push 0x1000
call fcn.00401244
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x42eb48
cmp dword [ebp + 0x18], 0
je 0x42eb3d
mov edx, dword [ebp + 0x18]
mov dword [edx], 8
xor eax, eax
test eax, eax
jne 0x42eb2e
jmp 0x42ec9e
push 0x1000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42eba3
cmp dword [ebp + 0x18], 0
je 0x42eb98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42eb87
jmp 0x42ec9e
cmp dword [ebp + 0x10], 0
je 0x42ebd9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00401528
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004012c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401005
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401528
mov dword [ebp - 4], 1
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004012c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401005
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x42ec8d
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x42ec8d
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401528
mov dword [ebp - 4], 2
cmp dword [ebp + 0x14], 0
je 0x42ec66
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
jbe 0x42ec66
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00401947
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401005
jmp 0x42ec1e
mov dword [ebp - 0x10], 1
xor eax, eax
test eax, eax
jne 0x42e9e3
cmp dword [ebp - 0x18], 0
je 0x42ecb6
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.0040120d
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x42ecce
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0040120d
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14