Function at 0x10003250
Capabilities:
Modify service
Query or enumerate registry value
Query service status
Set registry value
Start service

Disassembly:
push 0xffffffffffffffff
push 0x100265c8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10033048]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10033048]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
push str._WJRA_CWjraCommon::StartXpZeroConfig_begin_
call fcn.1000e250
add esp, 4
lea esi, [ebp + 0x1c8]
mov ecx, 0x10
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, esi
je 0x100034e1
push 0xf01ff
push str.WZCSVC
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
je 0x100034da
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100034d3
mov edx, dword [0x10035480]
mov eax, dword [edx + 0xc]
mov ecx, 0x10035480
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x9c], esi
mov edx, str.SOFTWAREMicrosoftWZCSVCParametersInterfaces_
lea ebx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.10003b40
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003330
lea ecx, [esp + 0x4c]
sub eax, edx
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10003b80
mov eax, dword [ebp + 0x514]
mov dword [esp + 0x24], 4
mov eax, dword [eax + 0x4c]
cmp eax, 0x18
je 0x10003372
cmp eax, 0x22
je 0x10003372
cmp eax, 0x2c
je 0x10003372
cmp eax, 0x36
mov eax, 0xf003f
jne 0x10003377
mov eax, 0xf013f
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100033a6
push esi
push str._WJRA__RegOpenKeyEx__hs_failed
call fcn.1000e250
add esp, 8
jmp 0x10003450
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push str.ControlFlags
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003427
mov eax, dword [esp + 0x1c]
and eax, 0x8000
jne 0x10003439
mov eax, dword [esp + 0x34]
cmp eax, 4
je 0x100033e4
cmp eax, 2
jne 0x100033eb
push 0
call fcn.10003520
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
or dword [esp + 0x1c], 0x8000
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
push 0
push str.ControlFlags
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10003439
push str._WJRA__RegSetValueEx_REGSTR_CONTROL_FLAGS_failed
call fcn.1000e250
add esp, 4
jmp 0x10003439
push str.ControlFlags
push str._WJRA__RegQueryValueEx__s_failed
call fcn.1000e250
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10003450
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [esp + 0x34]
cmp eax, 4
je 0x10003475
cmp eax, 2
je 0x10003475
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000349b
push str._WJRA__ChangeServiceConfig_FAILED
jmp 0x100034a0
push str._WJRA__ChangeServiceConfig_SUCCESS
call fcn.1000e250
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100034cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str._WJRA_CWjraCommon::StartXpZeroConfig_end_
call fcn.1000e250
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000eab6
add esp, 0x8c
ret 4