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

Disassembly:
mov r11, rsp
push r13
sub rsp, 0x500
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rcx, qword [0x14020b2d0]
xor r13d, r13d
mov qword [r11 + 8], rbx
test rcx, rcx
mov qword [r11 - 0x10], rdi
je 0x1400ee31f
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]
call fcn.1400d78a0
mov edx, 0x28
mov dword [rsp + 0x70], 0x18
lea ecx, [rdx + 0x18]
mov dword [rsp + 0x80], 1
mov rdi, r13
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rbx, rax
je 0x1400ee38f
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1400ee386
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1400ee386
mov rdi, rbx
jmp 0x1400ee38f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
mov qword [rsp + 0x78], rdi
je 0x1400ef064
lea rcx, [rsp + 0x2c0]
mov qword [rsp + 0x518], rbp
mov qword [rsp + 0x4f0], r12
or r12, 0xffffffffffffffff
call fcn.1400012c0
mov rdx, qword [0x14020b2d8]
test rdx, rdx
je 0x1400ee3d9
lea rcx, [rsp + 0x2c0]
call fcn.14017b470
jmp 0x1400ee442
lea rcx, [rsp + 0xb0]
call fcn.1400012c0
lea rdx, str..PIPEEverything_Service
lea rcx, [rsp + 0xb0]
call fcn.140175d10
call fcn.1400cd3c0
test rax, rax
je 0x1400ee420
call fcn.1400cd3c0
lea rdx, str.___s_
lea rcx, [rsp + 0xb0]
mov r8, rax
call fcn.140176950
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x2c0]
call fcn.14017b470
lea rcx, [rsp + 0xb0]
call fcn.140175010
mov rdx, qword [rsp + 0x2c8]
lea rcx, str.createnamedpipe__S_n
call fcn.1400b35e0
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.1400b35e0
mov rcx, qword [0x14020b2c8]
call fcn.1400d78f0
test eax, eax
jne 0x1400ef03c
mov qword [rsp + 0x520], rsi
lea rcx, [0x14020b270]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x14020b298]
test r11, r11
mov rsi, r11
je 0x1400ee878
mov rax, qword [r11]
mov rcx, qword [0x14020b2a0]
test rax, rax
mov qword [0x14020b298], rax
cmove rcx, r13
mov qword [0x14020b2a0], rcx
lea rcx, [0x14020b270]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsi + 8]
lea rcx, str.device_event__08x_n
call fcn.1400b35e0
mov r11d, dword [rsi + 8]
sub r11d, 0x8001
je 0x1400ee838
sub r11d, 1
je 0x1400ee76e
sub r11d, 1
je 0x1400ee740
sub r11d, 1
je 0x1400ee658
cmp r11d, 2
jne 0x1400ee847
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400ee847
lea r8d, [r11 + 0xe]
lea rdx, [0x1401aee80]
add rcx, 0x20
call fcn.1400da110
test eax, eax
je 0x1400ee574
lea rcx, str.GUID_IO_VOLUME_DISMOUNT_n
call fcn.1400b35e0
mov rcx, qword [rsi + 0x10]
call fcn.1400ec230
jmp 0x1400ee847
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401aee90]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400da110
test eax, eax
je 0x1400ee5ac
lea rcx, str.GUID_IO_VOLUME_DISMOUNT_FAILED_n
call fcn.1400b35e0
mov rcx, qword [rsi + 0x10]
call fcn.1400ec3f0
jmp 0x1400ee847
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401aeeb0]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400da110
test eax, eax
je 0x1400ee5e4
lea rcx, str.GUID_IO_VOLUME_LOCK_n
call fcn.1400b35e0
mov rcx, qword [rsi + 0x10]
call fcn.1400ec230
jmp 0x1400ee847
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401aeec0]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400da110
test eax, eax
je 0x1400ee61c
lea rcx, str.GUID_IO_VOLUME_LOCK_FAILED_n
call fcn.1400b35e0
mov rcx, qword [rsi + 0x10]
call fcn.1400ec3f0
jmp 0x1400ee847
mov rcx, qword [rsi + 0x10]
lea rdx, [0x1401aeed0]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1400da110
test eax, eax
je 0x1400ee847
lea rcx, str.GUID_IO_VOLUME_UNLOCK_n
call fcn.1400b35e0
mov rcx, qword [rsi + 0x10]
call fcn.1400ec3f0
jmp 0x1400ee847
mov rdi, qword [rsi + 0x10]
cmp dword [rdi + 4], 6
jne 0x1400ee847
mov rdx, qword [rdi + 0x10]
lea rcx, str.monitor_unregister_device_notification_by_handle__p_n
call fcn.1400b35e0
mov r11, qword [0x14020b2a8]
test r11, r11
je 0x1400ee847
nop
nop
nop
mov edx, dword [r11 + 0xa8]
mov ecx, r13d
test edx, edx
je 0x1400ee6c4
mov r8, qword [rdi + 0x18]
mov rax, qword [r11 + 0xa0]
nop
nop
mov rbx, qword [rax]
cmp qword [rbx + 0x78], r8
je 0x1400ee704
add ecx, 1
add rax, 8
cmp ecx, edx
jb 0x1400ee6b0
mov edx, dword [r11 + 0xb8]
mov ecx, r13d
test edx, edx
je 0x1400ee6f7
mov r8, qword [rdi + 0x18]
mov rax, qword [r11 + 0xb0]
nop
mov rbx, qword [rax]
cmp qword [rbx + 0x80], r8
je 0x1400ee71f
add ecx, 1
add rax, 8
cmp ecx, edx
jb 0x1400ee6e0
mov r11, qword [r11]
test r11, r11
jne 0x1400ee690
jmp 0x1400ee847
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400ee847
call fcn.1400d7bd0
mov qword [rbx + 0x78], r13
jmp 0x1400ee847
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400ee847
call fcn.1400d7bd0
mov qword [rbx + 0x80], r13
jmp 0x1400ee847
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.1400b35e0
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400ee847
call fcn.1400ec230
jmp 0x1400ee847
mov rbx, qword [rsi + 0x10]
cmp dword [rbx + 4], 6
jne 0x1400ee847
mov rdx, qword [rbx + 0x10]
lea rcx, str.restart_monitor_by_handle__p_n
call fcn.1400b35e0
mov r11, qword [0x14020b2a8]
test r11, r11
je 0x1400ee847
nop
mov r8d, dword [r11 + 0xa8]
mov ecx, r13d
test r8d, r8d
je 0x1400ee7d5
mov r9, qword [rbx + 0x18]
mov rax, qword [r11 + 0xa0]
nop
nop
mov rdx, qword [rax]
cmp qword [rdx + 0x78], r9
je 0x1400ee812
add ecx, 1
add rax, 8
cmp ecx, r8d
jb 0x1400ee7c0
mov r8d, dword [r11 + 0xb8]
mov ecx, r13d
test r8d, r8d
je 0x1400ee808
mov r9, qword [rbx + 0x18]
mov rax, qword [r11 + 0xb0]
nop
mov rdx, qword [rax]
cmp qword [rdx + 0x80], r9
je 0x1400ee825
add ecx, 1
add rax, 8
cmp ecx, r8d
jb 0x1400ee7f0
mov r11, qword [r11]
test r11, r11
jne 0x1400ee7a0
jmp 0x1400ee847
mov rcx, qword [0x14020b2c0]
mov dword [rdx + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400ee847
mov rcx, qword [0x14020b2c0]
mov dword [rdx + 0x58], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400ee847
mov rcx, qword [rsi + 0x10]
cmp dword [rcx + 4], 6
jne 0x1400ee847
call fcn.1400ec230
mov rcx, qword [rsi + 0x10]
call fcn.1400ce0b0
mov rcx, rsi
call fcn.1400ce0b0
lea rcx, [0x14020b270]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x14020b298]
test r11, r11
mov rsi, r11
jne 0x1400ee4c0
lea rcx, [0x14020b270]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11d, dword [rsp + 0x2b0]
cmp r11d, 0x40
jae 0x1400ee8ac
mov rax, qword [0x14020b2c0]
mov qword [rsp + r11*8 + 0xb0], rax
add dword [rsp + 0x2b0], 1
jmp 0x1400ee8c0
mov dword [rsp + 0x2b4], 1
nop
nop
nop
cmp r12, 0xffffffffffffffff
jne 0x1400eeb17
cmp dword [0x14020b0f4], 6
jb 0x1400ee90f
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 0x1400ee947
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 0x1400eec79
lea rcx, str.connect..._n
call fcn.1400b35e0
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 0x1400eea3b
mov ecx, 0x108
call fcn.1400ce030
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a6e60
mov qword [rbx + 0x50], r12
call fcn.1400d78a0
mov qword [rbx + 0x28], rax
call fcn.1400d78a0
mov ecx, dword [0x14020b2bc]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020b2a8], r13
mov dword [0x14020b2bc], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400ee9ef
mov rax, qword [0x14020b2b0]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400ee9fa
mov qword [0x14020b2a8], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020b2b8], 1
mov qword [0x14020b2b0], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400eea19
call fcn.1400ce0b0
mov ecx, 4
call fcn.1400ce030
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
jmp 0x1400eeb17
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1400eeb05
mov ecx, 0x108
call fcn.1400ce030
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a6e60
mov qword [rbx + 0x50], r12
call fcn.1400d78a0
mov qword [rbx + 0x28], rax
call fcn.1400d78a0
mov ecx, dword [0x14020b2bc]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020b2a8], r13
mov dword [0x14020b2bc], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400eeab5
mov rax, qword [0x14020b2b0]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400eeac0
mov qword [0x14020b2a8], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020b2b8], 1
mov qword [0x14020b2b0], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400eeadf
call fcn.1400ce0b0
mov ecx, 4
call fcn.1400ce030
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
or r12, 0xffffffffffffffff
jmp 0x1400ee8c0
cmp eax, 0x218
je 0x1400eeb17
cmp eax, 0x3e5
jne 0x1400eec46
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 0x1400eec00
lea rcx, str.connected_n
call fcn.1400b35e0
mov ecx, 0x108
call fcn.1400ce030
xor edx, edx
mov r8d, 0x108
mov rcx, rax
mov rbx, rax
call fcn.1401a6e60
mov qword [rbx + 0x50], r12
call fcn.1400d78a0
mov qword [rbx + 0x28], rax
call fcn.1400d78a0
mov ecx, dword [0x14020b2bc]
mov dword [rbx + 0x58], ecx
add ecx, 1
cmp qword [0x14020b2a8], r13
mov dword [0x14020b2bc], ecx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x98], 0xffffffffffffffff
je 0x1400eebb0
mov rax, qword [0x14020b2b0]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1400eebbb
mov qword [0x14020b2a8], rbx
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x70]
add dword [0x14020b2b8], 1
mov qword [0x14020b2b0], rbx
test rcx, rcx
mov qword [rbx], r13
je 0x1400eebda
call fcn.1400ce0b0
mov ecx, 4
call fcn.1400ce030
mov dword [rbx + 0x60], 4
mov dword [rbx + 0x78], r13d
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x68], rax
or r12, 0xffffffffffffffff
jmp 0x1400ee8c0
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400eec2f
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 0x1400eec3a
mov dword [rsp + 0x2b4], 1
cmp r12, 0xffffffffffffffff
je 0x1400ee8c0
jmp 0x1400eec9d
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.1400b35e0
mov edx, dword [rsp + 0x2b0]
mov ebp, 0x3e8
mov dword [rsp + 0x44], ebp
or r12, 0xffffffffffffffff
jmp 0x1400eec9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_createnamedpipe__d_n
mov edx, eax
call fcn.1400b35e0
mov edx, dword [rsp + 0x2b0]
mov ebp, 0x3e8
mov dword [rsp + 0x44], ebp
mov rdi, qword [0x14020b2a8]
test rdi, rdi
je 0x1400eef86
nop
mov edx, dword [rdi + 0x58]
mov rbp, qword [rdi]
lea rcx, str.update_client__d_n
call fcn.1400b35e0
mov rbx, qword [rdi + 0x80]
test rbx, rbx
je 0x1400eedd4
cmp dword [rbx + 0x18], r13d
mov rsi, qword [rbx]
je 0x1400eed54
nop
nop
cmp dword [rdi + 0x90], r13d
je 0x1400eed17
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 0x1400eed86
mov ecx, dword [rsp + 0x48]
add qword [rbx + 0x10], rcx
sub dword [rbx + 0x18], ecx
jmp 0x1400eed4e
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 0x1400eeda8
mov edx, dword [rsp + 0x48]
add qword [rbx + 0x10], rdx
sub dword [rbx + 0x18], edx
cmp dword [rbx + 0x18], r13d
jne 0x1400eece0
mov rcx, qword [rbx + 8]
call fcn.1400ce0b0
mov rcx, rbx
call fcn.1400ce0b0
test rsi, rsi
mov qword [rdi + 0x80], rsi
jne 0x1400eed78
mov qword [rdi + 0x88], r13
test rsi, rsi
mov rbx, rsi
jne 0x1400eecd2
jmp 0x1400eedd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x1400eed9f
mov dword [rdi + 0x90], 1
jmp 0x1400eedd4
mov dword [rdi + 0x5c], 1
jmp 0x1400eedd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400eedcd
lea rcx, str.write_pending..._n
call fcn.1400b35e0
mov dword [rdi + 0x90], 1
jmp 0x1400eedd4
mov dword [rdi + 0x5c], 1
mov rcx, rdi
call fcn.1400ed590
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400ed720
cmp dword [rdi + 0x5c], r13d
je 0x1400eee12
mov edx, dword [rdi + 0x58]
lea rcx, str._d:_disconnected._n
call fcn.1400b35e0
mov rcx, rdi
call fcn.1400edf00
mov edx, dword [rsp + 0x2b0]
jmp 0x1400eef76
cmp qword [rdi + 0x80], r13
je 0x1400eee6b
cmp dword [rdi + 0x90], r13d
je 0x1400eee6b
mov edx, dword [rdi + 0x58]
lea rcx, str.client__d_write_pending_n
call fcn.1400b35e0
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400eee5e
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 0x1400eee72
mov dword [rsp + 0x2b4], 1
jmp 0x1400eee72
mov edx, dword [rsp + 0x2b0]
cmp edx, 0x40
jae 0x1400eee98
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 0x1400eeea3
mov dword [rsp + 0x2b4], 1
cmp dword [rdi + 0xa8], r13d
mov r9d, r13d
jbe 0x1400eef08
mov r8, r13
mov rax, qword [rdi + 0xa0]
mov rax, qword [r8 + rax]
cmp dword [rax + 0x80], 2
jne 0x1400eeef7
cmp edx, 0x40
jae 0x1400eeeec
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 0x1400eeef7
mov dword [rsp + 0x2b4], 1
add r9d, 1
add r8, 8
cmp r9d, dword [rdi + 0xa8]
jb 0x1400eeeb2
cmp dword [rdi + 0xb8], r13d
mov r9d, r13d
jbe 0x1400eef76
mov r8, r13
nop
nop
nop
mov rax, qword [rdi + 0xb0]
mov rax, qword [r8 + rax]
cmp dword [rax + 0x88], 2
jne 0x1400eef65
cmp edx, 0x40
jae 0x1400eef5a
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 0x1400eef65
mov dword [rsp + 0x2b4], 1
add r9d, 1
add r8, 8
cmp r9d, dword [rdi + 0xb8]
jb 0x1400eef20
test rbp, rbp
mov rdi, rbp
jne 0x1400eecb0
mov ebp, dword [rsp + 0x44]
cmp dword [rsp + 0x2b4], r13d
je 0x1400eefa1
test ebp, ebp
je 0x1400eef9c
cmp ebp, 0x3e8
jbe 0x1400eefa1
mov ebp, 0x3e8
lea rcx, str.sleep__d__d_n
mov r8d, ebp
call fcn.1400b35e0
test ebp, ebp
je 0x1400eefba
lea r9d, [rbp + 0x11]
jmp 0x1400eefbe
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 [0x14020b2c0]
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.1400b35e0
mov rcx, qword [0x14020b2c8]
call fcn.1400d78f0
test eax, eax
je 0x1400ee4a0
cmp r12, 0xffffffffffffffff
mov rsi, qword [rsp + 0x520]
je 0x1400ef03c
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.140175010
mov r12, qword [rsp + 0x4f0]
mov rbp, qword [rsp + 0x518]
mov rcx, qword [0x14020b2d0]
mov rdi, qword [rsp + 0x4f8]
test rcx, rcx
je 0x1400ef0b2
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 [0x14020b2a8]
test rcx, rcx
je 0x1400ef0d0
nop
mov rbx, qword [rcx]
call fcn.1400edf00
test rbx, rbx
mov rcx, rbx
jne 0x1400ef0c0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14020b2d0]
mov rbx, qword [rsp + 0x510]
test rcx, rcx
je 0x1400ef12c
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.1401a6ae0
add rsp, 0x500
pop r13
ret