Function at 0x140035790
Capabilities:
Create thread
Print debug messages

Disassembly:
push rdi
mov eax, 0x18a0
call fcn.1400dab40
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x18b8], rbx
mov qword [rsp + 0x18c0], rsi
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x1890], rax
mov rbx, rcx
xor esi, esi
mov qword [rcx], rsi
mov byte [rcx + 8], sil
mov dword [rcx + 0xc], 0x2bf20
xor edx, edx
mov r8d, 0x208
add rcx, 0x18
call fcn.1400b57e0
lea r8, str.WifiWindowsService.exe
mov edx, 0x104
lea rcx, [rbx + 0x18]
call fcn.1400b2160
xor edx, edx
lea rcx, [rbx + 0x18]
call fcn.1400b2b00
cmp eax, 0xffffffff
jne 0x140035987
xor edx, edx
mov r8d, 0x208
lea rcx, [rbx + 0x18]
call fcn.1400b57e0
mov word [rsp + 0x470], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x472]
call fcn.1400b57e0
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.1400b57e0
mov word [rsp + 0x680], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x682]
call fcn.1400b57e0
call fcn.14008cdf8
mov rcx, qword [rax + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x680]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rsp + 0x680]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r11, qword [rsp + 0x38]
mov word [r11], si
mov word [rsp + 0x470], si
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call fcn.1400b1b70
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140035916
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003590c
mov rcx, rax
call fcn.140050830
jmp 0x14003590f
mov rax, rsi
mov qword [0x1401370f0], rax
lea rdx, str.Is64BitWindows__
mov rcx, rax
call fcn.140050c00
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140035959
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003594f
mov rcx, rax
call fcn.140050830
jmp 0x140035952
mov rax, rsi
mov qword [0x1401370f0], rax
lea rdx, str.Compiled_as_64bit_app_so_must_be_on_64_bit_Windows.
mov rcx, rax
call fcn.140050c00
lea r9, str.WifiWindowsService.exe
lea r8, [rsp + 0x470]
lea rdx, str._sx64_s
lea rcx, [rbx + 0x18]
call fcn.1400b0f30
lea rcx, str.Service_path_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x30], esi
lea rcx, str.create_msgpump_thread
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140035400]
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [rbx + 0xc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140035a0e
lea rcx, str.The_thread_works_done.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rbx
jmp 0x140035b13
lea rcx, str.Time_out
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rbx + 8], 0
lea rcx, str.Force_stop_and_uninstall_the_service
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov word [rsp + 0x890], 0
mov word [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x72]
call fcn.1400b57e0
lea r9, str._stop
lea r8, [0x1400f5f70]
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.1400b1010
lea r8, [rsp + 0x70]
mov edx, 0x800
lea rcx, [rsp + 0x890]
call fcn.1400b2160
lea r8, [rsp + 0x890]
lea rdx, [rbx + 0x18]
mov ecx, 1
call fcn.14004eb10
mov word [rsp + 0x890], 0
mov word [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x72]
call fcn.1400b57e0
lea r9, str._uninstall
lea r8, [0x1400f5f70]
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.1400b1010
lea r8, [rsp + 0x70]
mov edx, 0x800
lea rcx, [rsp + 0x890]
call fcn.1400b2160
lea r8, [rsp + 0x890]
lea rdx, [rbx + 0x18]
mov ecx, 1
call fcn.14004eb10
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x1890]
xor rcx, rsp
call fcn.1400b09d0
lea r11, [rsp + 0x18a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret