Function at 0x401160
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Print debug messages
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0xf4], eax
push esi
push edi
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x64], 2
mov esi, eax
je 0x4011ca
push str.param__2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004026ed
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 7
mov word [esp + 0xbc], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011f2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc4]
call fcn.00401960
push str.zs_installer_oem_srv.exe
lea ecx, [esp + 0xc0]
call fcn.00401880
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xd0], 8
lea eax, [esp + 0xbc]
cmovae eax, dword [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.zsusbldr
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4012e2
push 0x20035
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401275
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4012e2
push 0x34
push str.zsusbldr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x401293
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4012db
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], esi
xorps xmm0, xmm0
push ecx
push eax
movaps xmmword [esp + 0x88], xmm0
movq qword [esp + 0x98], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4012d1
cmp dword [esp + 0x84], 4
mov eax, 1
cmove esi, eax
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x14
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test esi, esi
je 0x4014c4
xor eax, eax
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0xd4]
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401320
sub ecx, edx
lea eax, [esp + 0xd4]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00401960
mov edx, dword [esp + 0x60]
mov eax, edx
mov ecx, dword [esp + 0x5c]
sub eax, ecx
cmp eax, 0x15
jb 0x401380
cmp edx, 8
lea esi, [esp + 0x4c]
push 0x2a
cmovae esi, dword [esp + 0x50]
lea edi, [ecx + 0x15]
push str.driverszsusbldr.sys
mov dword [esp + 0x64], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00405140
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40139b
push 0x15
push str.driverszsusbldr.sys
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x54]
push dword [esp + 0x50]
push 0x15
call fcn.00401ab0
xor eax, eax
mov dword [esp + 0xb4], 0
lea edx, [esp + 0xa4]
mov dword [esp + 0xb8], 7
lea ecx, [esp + 0x4c]
mov word [esp + 0xa4], ax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 7
mov word [esp + 0x80], ax
call fcn.00402380
test al, al
je 0x401446
lea edx, [esp + 0x80]
lea ecx, [esp + 0xbc]
call fcn.00402380
test al, al
jne 0x401577
mov edx, dword [esp + 0x94]
cmp edx, 8
jb 0x401446
mov ecx, dword [esp + 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40143c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x401488
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40147e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0x60]
cmp edx, 8
jb 0x4014c4
mov ecx, dword [esp + 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
cmp dword [esp + 0xd0], 8
lea eax, [esp + 0xbc]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
cmovae eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x48], 0xffffffff
jne 0x40173c
mov esi, 1
jmp 0x40173e
cmp dword [esp + 0x90], 0
je 0x401795
cmp dword [esp + 0xb4], 0
je 0x401795
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.00401c50
add esp, 4
mov dword [esp + 0x68], 0
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x80]
mov dword [esp + 0x70], 0
push eax
call fcn.00401c50
mov eax, dword [esp + 0x7c]
add esp, 4
mov ecx, dword [esp + 0x74]
sub eax, ecx
sub eax, 0x60
cmp eax, 0x18
jae 0x401783
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sub eax, 0x60
cmp eax, 0x18
jae 0x401783
xor esi, esi
nop word [eax + eax]
cmp dword [ecx + esi + 0x14], 8
lea eax, [ecx + esi]
jb 0x40162c
mov eax, dword [eax]
push eax
call fcn.00407c67
mov ecx, dword [esp + 0x6c]
add esp, 4
add ecx, esi
mov edi, eax
cmp dword [ecx + 0x14], 8
jb 0x401645
mov ecx, dword [ecx]
push ecx
call fcn.00407c67
add esp, 4
cmp edi, eax
jg 0x401783
jl 0x401783
add esi, 0x18
cmp esi, 0x60
jge 0x40166a
mov ecx, dword [esp + 0x74]
jmp 0x401620
lea ecx, [esp + 0x68]
call fcn.00402550
lea ecx, [esp + 0x74]
call fcn.00402550
mov edx, dword [esp + 0x94]
cmp edx, 8
jb 0x4016be
mov ecx, dword [esp + 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4016b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x401700
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4016f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0x60]
cmp edx, 8
jb 0x40173c
mov ecx, dword [esp + 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401732
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
xor esi, esi
mov edx, dword [esp + 0xd0]
cmp edx, 8
jb 0x40185a
mov ecx, dword [esp + 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401850
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401872
jmp 0x401850
lea ecx, [esp + 0x68]
call fcn.00402550
lea ecx, [esp + 0x74]
call fcn.00402550
mov edx, dword [esp + 0x94]
cmp edx, 8
jb 0x4017d7
mov ecx, dword [esp + 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4017cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x401815
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40180b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
push edx
push ecx
call fcn.0040272e
add esp, 8
mov edx, dword [esp + 0x60]
cmp edx, 8
jb 0x4014c4
mov ecx, dword [esp + 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401877
jmp 0x4014ba
push edx
push ecx
call fcn.0040272e
add esp, 8
mov ecx, dword [esp + 0xfc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004026ed
mov esp, ebp
pop ebp
ret 0x10
call fcn.00405f30
call fcn.00405f30
int3