Function at 0x4393d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495518
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4bf434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x26c], ebx
xor eax, eax
push 0xe
push str.InstallService
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00407630
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], ebx
call fcn.004377e0
push ebx
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.00438130
lea ecx, [ebp - 0x270]
call fcn.00438be0
test eax, eax
jne 0x439467
mov byte [ebp - 0x261], al
jmp 0x439495
lea ecx, [ebp - 0x270]
call fcn.00438170
cmp eax, 3
je 0x43948e
lea ecx, [ebp - 0x270]
call fcn.00438170
mov byte [ebp - 0x261], 0
cmp eax, 4
jne 0x439495
mov byte [ebp - 0x261], 1
lea ecx, [ebp - 0x270]
call fcn.00437820
mov edx, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4394e9
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4394df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4394df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
cmp byte [ebp - 0x261], 0
je 0x43973f
cmp dword [ebp + 8], 0
je 0x439506
mov esi, 0x50004
jmp 0x4396e1
push 0x17
xor eax, eax
mov dword [ebp - 0x220], 0
push str.InstallService__UpPower
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00407630
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4c7f44]
mov dword [ebp - 4], 2
mov dword [ebp - 0x26c], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4c4e2c]
cmp eax, dword [ecx + 4]
jg 0x43976a
cmp dword [0x4bf1c8], 0
jne 0x4395c3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4395a2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4bf1b8
call fcn.00407630
push 0x4bf1b8
lea ecx, [ebp - 0x260]
call fcn.00402080
push 0x38
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2ac], 0x3c
push 0
push eax
mov ebx, 7
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a8], 0x540
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
mov dword [ebp - 0x274], 0
cmovae eax, dword [ebp - 0x260]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], str.runas
mov dword [ebp - 0x290], 1
mov dword [ebp - 0x28c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4396d3
push 0x1388
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4396ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x4396cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x268]
jmp 0x4396e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 6
test bl, 2
je 0x4396f4
lea ecx, [ebp - 0x260]
and ebx, 0xfffffffd
call fcn.00401ba0
test bl, 1
je 0x43973b
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x43973b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439731
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x439731
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
mov eax, esi
jmp 0x43974d
mov ecx, esi
call fcn.0043ab40
mov ecx, esi
call fcn.0043a660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488042
mov esp, ebp
pop ebp
ret 4
push 0x4c4e2c
call fcn.004882cc
add esp, 4
cmp dword [0x4c4e2c], 0xffffffff
jne 0x439566
xor eax, eax
mov dword [0x4bf1c8], 0
push 0x49b9e0
mov dword [0x4bf1cc], 7
mov word [0x4bf1b8], ax
call fcn.004885de
push 0x4c4e2c
call fcn.00488282
add esp, 8
jmp 0x439566