Function at 0x42f7d0
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f52e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x42fbef
cmp edi, 0xffffffff
je 0x42fbef
push 0x14
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x42fbc8
cmp esi, 0xffffffff
je 0x42fbc8
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42fbc8
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebx + 0x1c]
jne 0x42fbc8
push str.wpscloudsvr
lea ecx, [ebp - 0x40]
call fcn.00401960
push 0x22
xor eax, eax
mov dword [ebp - 0x28], 0
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404580
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00401cd0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x94]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x90], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f9a9
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 4
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.Start
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42f9a9
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x42f96b
cmp eax, 0xffffffff
je 0x42f96b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x42f9a5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f99b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9f5
push edx
push ecx
call fcn.004991fe
add esp, 8
xor ebx, ebx
jmp 0x42fa05
mov eax, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x90]
test eax, eax
je 0x42f9c5
cmp eax, 0xffffffff
je 0x42f9c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x42fa05
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f9fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42f9fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401af0
cmp ebx, 4
jne 0x42fa20
mov ebx, 0xb
jmp 0x42fbcd
push str.wpscloudsvr
lea ecx, [ebp - 0x8c]
call fcn.00401960
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004304a0
add esp, 8
cmp dword [ebp - 0x64], 0
mov byte [ebp - 4], 5
je 0x42fb1e
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x90], 0
cmovae eax, dword [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x90], 0
mov ebx, eax
jle 0x42fb1e
mov edx, dword [ebx]
mov ecx, edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x98], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fab0
sub ecx, dword [ebp - 0x98]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404580
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401900
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42fb33
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fb12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
jmp 0x42fb33
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x74]
call fcn.00401af0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp edx, 8
jb 0x42fb8e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fb84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401af0
test bl, bl
je 0x42fbb8
mov ebx, 0xd
jmp 0x42fbcd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
call esi
push edi
call esi
jmp 0x42fbf4
mov ebx, 0xa
test esi, esi
je 0x42fbe4
cmp esi, 0xffffffff
je 0x42fbe4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x42fbf4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
jmp 0x42fbf4
mov ebx, 0xa
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049920c
mov esp, ebp
pop ebp
ret