Function at 0x1400efe20
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r13
sub rsp, 0x500
mov rax, qword [0x14020cc08]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rcx, qword [0x14020e3d8]
xor r13d, r13d
test rcx, rcx
je 0x1400efe84
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], gethostbyname
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x68], 0xbb8
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov qword [rsp + 0x510], rbx
call fcn.1400d8d50
mov dword [rsp + 0x70], 0x18
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x80], 1
call fcn.1400ed180
test rax, rax
mov qword [rsp + 0x78], rax
je 0x1400f0b9c
lea rcx, [rsp + 0x2c0]
mov qword [rsp + 0x518], rbp
mov qword [rsp + 0x4f0], r12
or r12, 0xffffffffffffffff
call fcn.1400012c0
mov rdx, qword [0x14020e3e0]
test rdx, rdx
je 0x1400efefb
lea rcx, [rsp + 0x2c0]
call fcn.14017d970
jmp 0x1400eff64
lea rcx, [rsp + 0xb0]
call fcn.1400012c0
lea rdx, str..PIPEEverything_Service
lea rcx, [rsp + 0xb0]
call fcn.140178250
call fcn.1400ce2b0
test rax, rax
je 0x1400eff42
call fcn.1400ce2b0
lea rdx, str.___s_
lea rcx, [rsp + 0xb0]
mov r8, rax
call fcn.140178e90
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x2c0]
call fcn.14017d970
lea rcx, [rsp + 0xb0]
call fcn.140177510
mov rdx, qword [rsp + 0x2c8]
lea rcx, str.createnamedpipe__S_n
call fcn.1400b3e90
mov dword [rsp + 0x2b0], r13d
mov dword [rsp + 0x2b4], r13d
mov ebp, r13d
mov dword [rsp + 0x44], r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, str.awake_n
mov dword [rsp + 0x40], eax
call fcn.1400b3e90
mov rcx, qword [0x14020e3d0]
call fcn.1400d8da0
test eax, eax
jne 0x1400f0b74
mov qword [rsp + 0x520], rsi
mov qword [rsp + 0x4f8], rdi
nop
nop
lea rcx, [0x14020e378]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x14020e3a0]
test r11, r11
mov rsi, r11
je 0x1400f03a8
mov rax, qword [r11]
mov rcx, qword [0x14020e3a8]
test rax, rax
mov qword [0x14020e3a0], rax
cmove rcx, r13
mov qword [0x14020e3a8], rcx
lea rcx, [0x14020e378]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsi + 8]
lea rcx, str.device_event__08x_n
call fcn.1400b3e90
mov r11d, dword [rsi + 8]
sub r11d, 0x8001
je 0x1400f0368
sub r11d, 1
je 0x1400f029e
sub r11d, 1
je 0x1400f0270
sub r11d, 1
je 0x1400f0188
cmp r11d, 2
jne 0x1400f0377
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400f0377
lea r8d, [r11 + 0xe]
lea rdx, [0x1401b0e50]
add rcx, 0x20
call fcn.1400db630
test eax, eax
je 0x1400f00a4
lea rcx, str.GUID_IO_VOLUME_DISMOUNT_n
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
call fcn.1400edda0
jmp 0x1400f0377
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401b0e60]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400db630
test eax, eax
je 0x1400f00dc
lea rcx, str.GUID_IO_VOLUME_DISMOUNT_FAILED_n
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
call fcn.1400edf60
jmp 0x1400f0377
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401b0e80]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400db630
test eax, eax
je 0x1400f0114
lea rcx, str.GUID_IO_VOLUME_LOCK_n
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
call fcn.1400edda0
jmp 0x1400f0377
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401b0e90]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400db630
test eax, eax
je 0x1400f014c
lea rcx, str.GUID_IO_VOLUME_LOCK_FAILED_n
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
call fcn.1400edf60
jmp 0x1400f0377
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401b0ea0]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400db630
test eax, eax
je 0x1400f0377
lea rcx, str.GUID_IO_VOLUME_UNLOCK_n
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
call fcn.1400edf60
jmp 0x1400f0377
mov rdi, qword [rsi + 0x10]
cmp dword [rdi + 4], 6
jne 0x1400f0377
mov rdx, qword [rdi + 0x10]
lea rcx, str.monitor_unregister_device_notification_by_handle__p_n
call fcn.1400b3e90
mov r11, qword [0x14020e3b0]
test r11, r11
je 0x1400f0377
nop
nop
nop
mov edx, dword [r11 + 0xa8]
mov ecx, r13d
test edx, edx
je 0x1400f01f4
mov r8, qword [rdi + 0x18]
mov rax, qword [r11 + 0xa0]
nop
nop
mov rbx, qword [rax]
cmp qword [rbx + 0x78], r8
je 0x1400f0234
add ecx, 1
add rax, 8
cmp ecx, edx
jb 0x1400f01e0
mov edx, dword [r11 + 0xb8]
mov ecx, r13d
test edx, edx
je 0x1400f0227
mov r8, qword [rdi + 0x18]
mov rax, qword [r11 + 0xb0]
nop
mov rbx, qword [rax]
cmp qword [rbx + 0x80], r8
je 0x1400f024f
add ecx, 1
add rax, 8
cmp ecx, edx
jb 0x1400f0210
mov r11, qword [r11]
test r11, r11
jne 0x1400f01c0
jmp 0x1400f0377
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400f0377
call fcn.1400d90a0
mov qword [rbx + 0x78], r13
jmp 0x1400f0377
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400f0377
call fcn.1400d90a0
mov qword [rbx + 0x80], r13
jmp 0x1400f0377
mov rax, qword [rsi + 0x10]
lea rcx, str.dbch_devicetype__d__dbch_size__d_n
mov r8d, dword [rax]
mov edx, dword [rax + 4]
call fcn.1400b3e90
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400f0377
call fcn.1400edda0
jmp 0x1400f0377
mov rbx, qword [rsi + 0x10]
cmp dword [rbx + 4], 6
jne 0x1400f0377
mov rdx, qword [rbx + 0x10]
lea rcx, str.restart_monitor_by_handle__p_n
call fcn.1400b3e90
mov r11, qword [0x14020e3b0]
test r11, r11
je 0x1400f0377
nop
mov r8d, dword [r11 + 0xa8]
mov ecx, r13d
test r8d, r8d
je 0x1400f0305
mov r9, qword [rbx + 0x18]
mov rax, qword [r11 + 0xa0]
nop
nop
mov rdx, qword [rax]
cmp qword [rdx + 0x78], r9
je 0x1400f0342
add ecx, 1
add rax, 8
cmp ecx, r8d
jb 0x1400f02f0
mov r8d, dword [r11 + 0xb8]
mov ecx, r13d
test r8d, r8d
je 0x1400f0338
mov r9, qword [rbx + 0x18]
mov rax, qword [r11 + 0xb0]
nop
mov rdx, qword [rax]
cmp qword [rdx + 0x80], r9
je 0x1400f0355
add ecx, 1
add rax, 8
cmp ecx, r8d
jb 0x1400f0320
mov r11, qword [r11]
test r11, r11
jne 0x1400f02d0
jmp 0x1400f0377
mov rcx, qword [0x14020e3c8]
mov dword [rdx + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400f0377
mov rcx, qword [0x14020e3c8]
mov dword [rdx + 0x58], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400f0377
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400f0377
call fcn.1400edda0
mov rcx, qword [rsi + 0x10]
call fcn.1400cf470
mov rcx, rsi
call fcn.1400cf470
lea rcx, [0x14020e378]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x14020e3a0]
test r11, r11
mov rsi, r11
jne 0x1400efff0
lea rcx, [0x14020e378]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11d, dword [rsp + 0x2b0]
cmp r11d, 0x40
jae 0x1400f03dc
mov rax, qword [0x14020e3c8]
mov qword [rsp + r11*8 + 0xb0], rax
add dword [rsp + 0x2b0], 1
jmp 0x1400f03f0
mov dword [rsp + 0x2b4], 1
nop
nop
nop
cmp r12, 0xffffffffffffffff
jne 0x1400f0647
cmp dword [0x14020e1cc], 6
jb 0x1400f043f
mov rcx, qword [rsp + 0x2c8]
lea rax, [rsp + 0x70]
lea r8d, [r12 + 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov edx, 0x40000003
mov r9d, 0xff
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r12, rax
jmp 0x1400f0477
mov rcx, qword [rsp + 0x2c8]
lea rax, [rsp + 0x70]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x1400f07a9
lea rcx, str.connect..._n
call fcn.1400b3e90
lea rdx, [rsp + 0x90]
mov rcx, r12
mov dword [rsp + 0xa0], r13d
mov dword [rsp + 0xa4], r13d
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400f056b
mov ecx, 0x108
call fcn.1400cf3f0
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a9350
mov qword [rbx + 0x50], r12
call fcn.1400d8d50
mov qword [rbx + 0x28], rax
call fcn.1400d8d50
mov ecx, dword [0x14020e3c4]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020e3b0], r13
mov dword [0x14020e3c4], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400f051f
mov rax, qword [0x14020e3b8]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400f052a
mov qword [0x14020e3b0], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020e3c0], 1
mov qword [0x14020e3b8], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400f0549
call fcn.1400cf470
mov ecx, 4
call fcn.1400cf3f0
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
jmp 0x1400f0647
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1400f0635
mov ecx, 0x108
call fcn.1400cf3f0
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a9350
mov qword [rbx + 0x50], r12
call fcn.1400d8d50
mov qword [rbx + 0x28], rax
call fcn.1400d8d50
mov ecx, dword [0x14020e3c4]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020e3b0], r13
mov dword [0x14020e3c4], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400f05e5
mov rax, qword [0x14020e3b8]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400f05f0
mov qword [0x14020e3b0], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020e3c0], 1
mov qword [0x14020e3b8], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400f060f
call fcn.1400cf470
mov ecx, 4
call fcn.1400cf3f0
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
or r12, 0xffffffffffffffff
jmp 0x1400f03f0
cmp eax, 0x218
je 0x1400f0647
cmp eax, 0x3e5
jne 0x1400f0776
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400f0730
lea rcx, str.connected_n
call fcn.1400b3e90
mov ecx, 0x108
call fcn.1400cf3f0
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a9350
mov qword [rbx + 0x50], r12
call fcn.1400d8d50
mov qword [rbx + 0x28], rax
call fcn.1400d8d50
mov ecx, dword [0x14020e3c4]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020e3b0], r13
mov dword [0x14020e3c4], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400f06e0
mov rax, qword [0x14020e3b8]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400f06eb
mov qword [0x14020e3b0], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020e3c0], 1
mov qword [0x14020e3b8], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400f070a
call fcn.1400cf470
mov ecx, 4
call fcn.1400cf3f0
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
or r12, 0xffffffffffffffff
jmp 0x1400f03f0
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400f075f
mov rax, qword [rsp + 0xa8]
mov qword [rsp + rdx*8 + 0xb0], rax
mov edx, dword [rsp + 0x2b0]
add edx, 1
mov dword [rsp + 0x2b0], edx
jmp 0x1400f076a
mov dword [rsp + 0x2b4], 1
cmp r12, 0xffffffffffffffff
je 0x1400f03f0
jmp 0x1400f07cd
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.connect_named_pipe_failed__d_n
mov edx, eax
call fcn.1400b3e90
mov edx, dword [rsp + 0x2b0]
mov ebp, 0x3e8
mov dword [rsp + 0x44], ebp
or r12, 0xffffffffffffffff
jmp 0x1400f07cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_createnamedpipe__d_n
mov edx, eax
call fcn.1400b3e90
mov edx, dword [rsp + 0x2b0]
mov ebp, 0x3e8
mov dword [rsp + 0x44], ebp
mov rdi, qword [0x14020e3b0]
test rdi, rdi
je 0x1400f0ab6
nop
mov edx, dword [rdi + 0x58]
mov rbp, qword [rdi]
lea rcx, str.update_client__d_n
call fcn.1400b3e90
mov rbx, qword [rdi + 0x80]
test rbx, rbx
je 0x1400f0904
cmp dword [rbx + 0x18], r13d
mov rsi, qword [rbx]
je 0x1400f0884
nop
nop
cmp dword [rdi + 0x90], r13d
je 0x1400f0847
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x30]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov dword [rdi + 0x90], r13d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400f08b6
mov ecx, dword [rsp + 0x48]
add qword [rbx + 0x10], rcx
sub dword [rbx + 0x18], ecx
jmp 0x1400f087e
mov rcx, qword [rdi + 0x50]
mov dword [rdi + 0x40], r13d
mov dword [rdi + 0x44], r13d
mov r8d, dword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
lea rax, [rdi + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400f08d8
mov edx, dword [rsp + 0x48]
add qword [rbx + 0x10], rdx
sub dword [rbx + 0x18], edx
cmp dword [rbx + 0x18], r13d
jne 0x1400f0810
mov rcx, qword [rbx + 8]
call fcn.1400cf470
mov rcx, rbx
call fcn.1400cf470
test rsi, rsi
mov qword [rdi + 0x80], rsi
jne 0x1400f08a8
mov qword [rdi + 0x88], r13
test rsi, rsi
mov rbx, rsi
jne 0x1400f0802
jmp 0x1400f0904
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x1400f08cf
mov dword [rdi + 0x90], 1
jmp 0x1400f0904
mov dword [rdi + 0x5c], 1
jmp 0x1400f0904
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400f08fd
lea rcx, str.write_pending..._n
call fcn.1400b3e90
mov dword [rdi + 0x90], 1
jmp 0x1400f0904
mov dword [rdi + 0x5c], 1
mov rcx, rdi
call fcn.1400ef100
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400ef290
cmp dword [rdi + 0x5c], r13d
je 0x1400f0942
mov edx, dword [rdi + 0x58]
lea rcx, str._d:_disconnected._n
call fcn.1400b3e90
mov rcx, rdi
call fcn.1400efa70
mov edx, dword [rsp + 0x2b0]
jmp 0x1400f0aa6
cmp qword [rdi + 0x80], r13
je 0x1400f099b
cmp dword [rdi + 0x90], r13d
je 0x1400f099b
mov edx, dword [rdi + 0x58]
lea rcx, str.client__d_write_pending_n
call fcn.1400b3e90
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400f098e
mov rax, qword [rdi + 0x48]
mov qword [rsp + rdx*8 + 0xb0], rax
mov edx, dword [rsp + 0x2b0]
add edx, 1
mov dword [rsp + 0x2b0], edx
jmp 0x1400f09a2
mov dword [rsp + 0x2b4], 1
jmp 0x1400f09a2
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400f09c8
mov rax, qword [rdi + 0x28]
mov ecx, edx
mov qword [rsp + rcx*8 + 0xb0], rax
mov edx, dword [rsp + 0x2b0]
add edx, 1
mov dword [rsp + 0x2b0], edx
jmp 0x1400f09d3
mov dword [rsp + 0x2b4], 1
cmp dword [rdi + 0xa8], r13d
mov r9d, r13d
jbe 0x1400f0a38
mov r8, r13
mov rax, qword [rdi + 0xa0]
mov rax, qword [r8 + rax]
cmp dword [rax + 0x80], 2
jne 0x1400f0a27
cmp edx, 0x40
jae 0x1400f0a1c
mov rax, qword [rax + 0x70]
mov ecx, edx
mov qword [rsp + rcx*8 + 0xb0], rax
mov edx, dword [rsp + 0x2b0]
add edx, 1
mov dword [rsp + 0x2b0], edx
jmp 0x1400f0a27
mov dword [rsp + 0x2b4], 1
add r9d, 1
add r8, 8
cmp r9d, dword [rdi + 0xa8]
jb 0x1400f09e2
cmp dword [rdi + 0xb8], r13d
mov r9d, r13d
jbe 0x1400f0aa6
mov r8, r13
nop
nop
nop
mov rax, qword [rdi + 0xb0]
mov rax, qword [r8 + rax]
cmp dword [rax + 0x88], 2
jne 0x1400f0a95
cmp edx, 0x40
jae 0x1400f0a8a
mov rax, qword [rax + 0x78]
mov ecx, edx
mov qword [rsp + rcx*8 + 0xb0], rax
mov edx, dword [rsp + 0x2b0]
add edx, 1
mov dword [rsp + 0x2b0], edx
jmp 0x1400f0a95
mov dword [rsp + 0x2b4], 1
add r9d, 1
add r8, 8
cmp r9d, dword [rdi + 0xb8]
jb 0x1400f0a50
test rbp, rbp
mov rdi, rbp
jne 0x1400f07e0
mov ebp, dword [rsp + 0x44]
cmp dword [rsp + 0x2b4], r13d
je 0x1400f0ad1
test ebp, ebp
je 0x1400f0acc
cmp ebp, 0x3e8
jbe 0x1400f0ad1
mov ebp, 0x3e8
lea rcx, str.sleep__d__d_n
mov r8d, ebp
call fcn.1400b3e90
test ebp, ebp
je 0x1400f0aea
lea r9d, [rbp + 0x11]
jmp 0x1400f0aee
or r9d, 0xffffffff
mov ecx, dword [rsp + 0x2b0]
lea rdx, [rsp + 0xb0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [0x14020e3c8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rsp + 0x2b0], r13d
mov dword [rsp + 0x2b4], r13d
mov ebp, r13d
mov dword [rsp + 0x44], r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, str.awake_n
mov dword [rsp + 0x40], eax
call fcn.1400b3e90
mov rcx, qword [0x14020e3d0]
call fcn.1400d8da0
test eax, eax
je 0x1400effd0
cmp r12, 0xffffffffffffffff
mov rdi, qword [rsp + 0x4f8]
mov rsi, qword [rsp + 0x520]
je 0x1400f0b74
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x2c0]
call fcn.140177510
mov r12, qword [rsp + 0x4f0]
mov rbp, qword [rsp + 0x518]
mov rcx, qword [0x14020e3d8]
test rcx, rcx
je 0x1400f0be2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], gethostbyname
mov dword [rsp + 0x54], 3
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x68], 0xbb8
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x14020e3b0]
test rcx, rcx
je 0x1400f0c00
nop
mov rbx, qword [rcx]
call fcn.1400efa70
test rbx, rbx
mov rcx, rbx
jne 0x1400f0bf0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14020e3d8]
mov rbx, qword [rsp + 0x510]
test rcx, rcx
je 0x1400f0c5c
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], gethostbyname
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x68], 0xbb8
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1401a8fd0
add rsp, 0x500
pop r13
ret