Function at 0x140006eb0
Capabilities:
Print debug messages

Disassembly:
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140044080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140045440], rax
mov dword [0x14004541c], 4
lea rdx, [0x140045418]
mov rcx, qword [0x140045438]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001e40
nop
lea rdx, str.Hello_World
lea rcx, [rsp + 0x40]
call fcn.140001230
nop
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov r9d, 0xf
mov qword [rbp + 0x48], r9
mov byte [rbp + 0x30], 0
mov dword [rsp + 0x20], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rcx, qword [rbp - 0x48]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140003489
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140003489
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rdx
jmp 0x1400034bb
test cl, 4
jne 0x1400034b1
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400034b1
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400034bb
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400034cd
lea rcx, [rbp + 0x30]
call fcn.140004e40
mov r9, qword [rbp + 0x48]
lea rcx, [rbp + 0x30]
cmp r9, 0x10
cmovae rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x14000351c
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003516
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035cf
call fcn.14000c534
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.140002800
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.14000bfa8
nop
mov edx, 0xffffffff
mov rcx, qword [0x140045440]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x14004541c], 1
lea rdx, [0x140045418]
mov rcx, qword [0x140045438]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000c650
add rsp, 0x160
pop rbp
ret
call fcn.140012b1c
nop
int3
sub rsp, 0x28
lea rcx, [0x1400307ec]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r8d, r8d
lea rdx, [0x1400035e0]
lea rcx, str.TestSvc
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExA]
lea rdx, [0x140045418]
mov dword [0x140045418], 0x20
mov rcx, rax
mov qword [0x140045438], rax
mov dword [0x140045428], 0
mov dword [0x14004541c], 2
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
add rsp, 0x28
jmp 0x1400033b0