Function at 0x4c7ac0
Capabilities:
Reference absolute stream path on windows

Disassembly:
lea r12, [rsp - 0xa8]
cmp r12, qword [r14 + 0x10]
jbe 0x4c810a
push rbp
mov rbp, rsp
sub rsp, 0x120
lea rax, [0x004ebca0]
call sym.runtime.newobject
mov rcx, qword [0x005b6ac8]
mov rdx, qword [0x005b6ac0]
mov qword [rax + 8], rcx
cmp dword [0x006191d0], 0
je 0x4c7b0c
call sym.runtime.gcWriteBarrier1
mov qword [r11], rdx
mov qword [rsp + 0x50], rax
mov qword [rax], rdx
mov qword [rax + 0x18], 0x16
lea rcx, [0x004f6ecc]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x28], 0x16
mov qword [rax + 0x20], rcx
lea rax, [0x004d5860]
call sym.runtime.newobject
mov rcx, qword [0x005b6ad8]
mov rdx, qword [0x005b6ad0]
mov qword [rax + 8], rcx
cmp dword [0x006191d0], 0
je 0x4c7b62
call sym.runtime.gcWriteBarrier1
mov qword [r11], rdx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x70], 1
mov qword [rcx + 0x78], 1
cmp dword [0x006191d0], 0
je 0x4c7b93
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov rdx, qword [rcx + 0x68]
mov qword [r11 + 8], rdx
mov qword [rcx + 0x68], rax
mov rdx, qword [0x005c5908]
mov rbx, qword [0x005c5900]
mov qword [rcx + 0x60], rdx
cmp dword [0x006191d0], 0
je 0x4c7bc2
call sym.runtime.gcWriteBarrier2
mov qword [r11], rbx
mov rdx, qword [rcx + 0x58]
mov qword [r11 + 8], rdx
mov qword [rcx + 0x58], rbx
lea rax, [0x004deee0]
call sym.runtime.newobject
movups xmmword [rax], xmm15
mov qword [rax + 0x10], 0
mov rbx, rax
mov rcx, qword [rsp + 0x50]
lea rax, [0x0051dca8]
call sym.github.com_kardianos_service.New
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rbx
nop dword [rax]
test rcx, rcx
je 0x4c7c60
mov rcx, qword [rcx + 0x18]
mov rax, rdi
call rcx
movups xmmword [rsp + 0x80], xmm15
call sym.runtime.convTstring
lea rcx, [0x004d3fa0]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
mov edi, 1
mov rsi, rdi
lea rcx, [rsp + 0x80]
call sym.fmt.Fprintln
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
cmp qword [0x005c5a58], 1
jle 0x4c8050
mov rcx, qword [0x005c5a50]
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
cmp rdx, 7
jne 0x4c7ec1
cmp dword [rcx], 0x74736e69
jne 0x4c7ec1
cmp word [rcx + 4], 0x6c61
nop dword [rax]
jne 0x4c7ec1
cmp byte [rcx + 6], 0x6c
jne 0x4c7ec1
test rax, rax
je 0x4c7eb7
mov rcx, qword [rax + 0x18]
mov rax, rbx
call rcx
test rax, rax
je 0x4c7d3f
mov rcx, qword [rax + 0x18]
mov rax, rbx
call rcx
movups xmmword [rsp + 0x100], xmm15
movups xmmword [rsp + 0x110], xmm15
lea rcx, [0x004d3fa0]
mov qword [rsp + 0x100], rcx
lea rdx, [0x0051d320]
mov qword [rsp + 0x108], rdx
call sym.runtime.convTstring
lea rcx, [0x004d3fa0]
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rax
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
mov edi, 2
mov rsi, rdi
lea rcx, [rsp + 0x100]
call sym.fmt.Fprintln
lea rax, [0x004fb434]
mov ebx, 0x23
mov ecx, 0x1ff
call sym.os.Mkdir
test rax, rax
je 0x4c7d9d
movups xmmword [rsp + 0x70], xmm15
je 0x4c7d66
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [0x004f283c]
mov edi, 3
lea rsi, [rsp + 0x70]
mov r8d, 1
mov r9, r8
call sym.fmt.Fprintf
nop
nop
call sym.syscall.Getwd
mov r8, qword [0x005b6ac0]
mov r9, qword [0x005b6ac8]
mov rcx, rbx
lea rdi, [0x0051c158]
mov esi, 1
lea r10, [0x004f2978]
mov r11d, 4
mov rbx, rax
xor eax, eax
call sym.runtime.concatstring4
mov rdi, qword [0x005c5908]
mov rcx, qword [0x005c5900]
call sym.main.WinCopyFile
movups xmmword [rsp + 0x60], xmm15
lea rax, [0x004d3fa0]
mov qword [rsp + 0x60], rax
lea rcx, [0x0051d330]
mov qword [rsp + 0x68], rcx
mov rbx, qword [0x005c5620]
lea rcx, [rsp + 0x60]
mov edi, 1
mov rsi, rdi
lea rax, [0x0051d928]
call sym.fmt.Fprintln
lea rax, [0x004f2f31]
mov ebx, 8
call sym.github.com_chai2010_winsvc.StartService
nop dword [rax + rax]
test rax, rax
je 0x4c7eae
movups xmmword [rsp + 0xe0], xmm15
movups xmmword [rsp + 0xf0], xmm15
lea rdx, [0x004d3fa0]
mov qword [rsp + 0xe0], rdx
lea rdx, [0x0051d2e0]
mov qword [rsp + 0xe8], rdx
je 0x4c7e7b
mov rax, qword [rax + 8]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rbx
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [rsp + 0xe0]
mov edi, 2
mov rsi, rdi
call sym.fmt.Fprintln
add rsp, 0x120
pop rbp
ret
add rsp, 0x120
pop rbp
nop
ret
cmp rdx, 9
jne 0x4c8050
movabs rdx, 0x6c6174736e696e75
cmp qword [rcx], rdx
jne 0x4c8050
cmp byte [rcx + 8], 0x6c
jne 0x4c8050
test rax, rax
je 0x4c8047
mov rcx, qword [rax + 0x50]
mov rax, rbx
call rcx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x68]
mov rax, qword [rsp + 0x58]
call rcx
test rax, rax
je 0x4c7f79
movups xmmword [rsp + 0xc0], xmm15
movups xmmword [rsp + 0xd0], xmm15
lea rdx, [0x004d3fa0]
mov qword [rsp + 0xc0], rdx
lea r8, [0x0051d340]
mov qword [rsp + 0xc8], r8
nop
je 0x4c7f46
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rbx
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [rsp + 0xc0]
mov edi, 2
mov rsi, rdi
call sym.fmt.Fprintln
movabs rax, 0x12a05f200
call sym.time.Sleep
mov rcx, qword [0x005c5608]
test rcx, rcx
je 0x4c7f9c
mov rax, qword [rcx]
call sym.os._file_.close
lea rax, [0x004fb434]
mov ebx, 0x23
call sym.os.removeAll
test rax, rax
je 0x4c7ff4
movups xmmword [rsp + 0xb0], xmm15
je 0x4c7fc1
mov rax, qword [rax + 8]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [rsp + 0xb0]
mov edi, 1
mov rsi, rdi
call sym.fmt.Fprintln
movups xmmword [rsp + 0xa0], xmm15
lea rdx, [0x004d3fa0]
mov qword [rsp + 0xa0], rdx
lea rdx, [0x0051d350]
mov qword [rsp + 0xa8], rdx
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [rsp + 0xa0]
mov edi, 1
mov rsi, rdi
call sym.fmt.Fprintln
add rsp, 0x120
pop rbp
ret
add rsp, 0x120
pop rbp
ret
test rax, rax
je 0x4c8101
mov rcx, qword [rax + 0x38]
mov rax, rbx
call rcx
test rax, rax
je 0x4c80b8
mov rcx, qword [rax + 0x18]
mov rax, rbx
call rcx
movups xmmword [rsp + 0x90], xmm15
call sym.runtime.convTstring
lea rcx, [0x004d3fa0]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov rbx, qword [0x005c5620]
lea rax, [0x0051d928]
lea rcx, [rsp + 0x90]
mov edi, 1
mov rsi, rdi
call sym.fmt.Fprintln
cmp byte [0x00618f28], 0
nop
je 0x4c80f7
mov rcx, qword [0x005c5608]
test rcx, rcx
je 0x4c80d6
mov rax, qword [rcx]
call sym.os._file_.close
mov eax, 0x3b9aca00
nop dword [rax + rax]
call sym.time.Sleep
nop
lea rax, [0x004fb434]
mov ebx, 0x23
call sym.os.removeAll
add rsp, 0x120
pop rbp
nop
ret
add rsp, 0x120
pop rbp
ret
call sym.runtime.morestack_noctxt.abi0
jmp sym.main.main