Function at 0x140025b00
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movups xmm0, xmmword [0x1401cb0b0]
lea rbx, [0x140270ed0]
mov rsi, rax
movups xmmword [0x14027d0a8], xmm0
cmp rbx, 0xffffffffffffffff
je 0x140025b80
cmp qword [0x140270ed0], 0
mov qword [0x140270f68], rbx
je 0x140025b80
mov cl, 1
call qword [rbx + 0x40]
cmp qword [rbx + 0x48], 0
lea rbx, [rbx + 0x48]
jne 0x140025b70
mov rbx, qword [0x14027dcd0]
mov rcx, qword [0x14027dcd8]
cmp rbx, rcx
jae 0x140025bb0
mov rax, qword [rbx]
test rax, rax
je 0x140025ba7
mov cl, 1
call qword [rax + gethostname]
mov rcx, qword [0x14027dcd8]
add rbx, 8
cmp rbx, rcx
jb 0x140025b93
lea r8, [0x1402719e0]
mov r9d, 0x100
mov edx, 0x64
mov rcx, rdi
mov dword [0x140271c08], 1
call qword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x1401cc110]
mov edi, 1
xor r13d, r13d
mov dword [rsp + 0x58], eax
movzx eax, word [0x1401cc114]
lea rdx, [0x1401cc048]
lea rcx, str.match.dbg
mov qword [0x140271be0], r13
mov word [rsp + 0x5c], ax
mov dword [0x140271be8], 0x10
mov dword [0x140271bec], edi
mov qword [0x140271bf0], rdi
mov qword [0x140271bf8], r13
mov dword [0x140271c00], r13d
mov dword [0x140271c08], edi
mov r14d, edi
xor r15b, r15b
call fcn.140197bc8
lea rdx, str.in__tWinMain_n
mov rcx, rax
mov r12, rax
call fcn.14019c0ec
mov rcx, r12
call fcn.14019bfc0
lea rdx, [0x1401cb720]
lea rcx, [0x1402719a0]
mov r8d, 0x115c
mov dword [0x1402719a8], 0x115c
call fcn.140020d60
lea rdx, [0x1401cb720]
lea rcx, [0x140271c18]
xor r8d, r8d
mov dword [0x140271c20], r13d
call fcn.140020d60
lea r8d, [r13 + 8]
lea rdx, [0x1401cb720]
lea rcx, [0x1402719c0]
mov dword [0x1402719c8], 8
call fcn.140020d60
lea rdx, str.RMatcher
lea rcx, [0x1402719b0]
call fcn.14001f2c0
lea rdx, [0x1401cc134]
lea rcx, [0x1402719b8]
call fcn.14001f2c0
lea rdx, str.Matching_Server
lea rcx, [0x1402719d8]
call fcn.14001f2c0
lea rdx, str.tsqRMatcher.log
lea rcx, [0x140271980]
call fcn.14001f2c0
lea rdx, [0x1402273a8]
lea rcx, [0x140271c28]
call fcn.14001f2c0
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140012a20
lea rsi, [0x1402719e0]
mov rbx, rax
test rax, rax
je 0x140026418
mov qword [rsp + 0x30], rax
movzx ecx, word [rax]
cmp cx, 0x20
je 0x140025d5f
test cx, cx
je 0x140025d5f
add rax, 2
mov qword [rsp + 0x30], rax
movzx ecx, word [rax]
cmp cx, 0x20
jne 0x140025d46
jmp 0x140025d65
cmp word [rax], 0x20
jne 0x140025d6f
mov word [rax], r13w
add qword [rsp + 0x30], 2
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140025e84
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140025e76
mov rax, qword [0x140270f20]
xor r9d, r9d
lea rcx, [0x140270f20]
lea edx, [r9 + 0x64]
xor r8d, r8d
call qword [rax + 0x40]
lea rcx, [0x140270f20]
call fcn.140024fe0
mov rbx, qword [0x140270f68]
test rbx, rbx
je 0x140025dfb
cmp qword [rbx], r13
je 0x140025dfb
nop
call qword [rbx + gethostname]
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.1400200f0
test eax, eax
js 0x140025e6d
xor ecx, ecx
call qword [rbx + reloc.WS2_32.dll_htonl]
test eax, eax
js 0x140025e6d
add rbx, 0x48
cmp qword [rbx], r13
jne 0x140025dd0
mov rax, qword [0x14027d0d0]
test rax, rax
je 0x140025e0d
call rax
test eax, eax
js 0x140025e6d
mov rdi, qword [0x14027dcd0]
mov rax, qword [0x14027dcd8]
mov ecx, r13d
cmp rdi, rax
jae 0x140025e5f
mov rbx, qword [rdi]
test rbx, rbx
je 0x140025e52
call qword [rbx + 0x30]
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.1400200f0
test eax, eax
js 0x140025e6d
xor ecx, ecx
call qword [rbx + reloc.WS2_32.dll_htonl]
mov ecx, eax
test eax, eax
js 0x140025e6d
mov rax, qword [0x14027dcd8]
add rdi, 8
cmp rdi, rax
jb 0x140025e23
test ecx, ecx
js 0x140025e6d
mov rcx, qword [0x14027dcc8]
xor edx, edx
call fcn.1400207b0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, r13d
mov dword [0x140271bf4], eax
mov r14d, r13d
jmp 0x1400263ab
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140025eb7
lea rcx, [0x140270f20]
xor r8d, r8d
mov edx, edi
call fcn.140023130
mov r14d, r13d
mov dword [0x140271bf4], eax
jmp 0x1400263ab
lea rdx, str.Service
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140025eea
lea rcx, [0x140270f20]
mov r8d, edi
mov edx, edi
call fcn.140023130
mov r14d, r13d
mov dword [0x140271bf4], eax
jmp 0x1400263ab
lea rdx, [0x1401cc198]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140025f06
mov r15b, 1
jmp 0x1400263ab
movzx eax, word [rbx]
cmp ax, 0x64
jne 0x140025f51
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
test rax, rax
jne 0x140025f27
mov ecx, r13d
jmp 0x140025f3a
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140025f30
mov r8d, ecx
lea rcx, [0x1402719d8]
mov rdx, rax
call fcn.140024d20
jmp 0x1400263ab
cmp ax, 0x66
jne 0x140025f9e
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x140025f72
mov ecx, r13d
jmp 0x140025f80
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140025f76
mov r8d, ecx
lea rcx, [0x140271988]
mov rdx, rax
call fcn.140024d20
lea rcx, [0x140271178]
jmp 0x1400263a3
cmp ax, 0x6a
jne 0x140025fc1
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
lea rcx, [0x140270f78]
mov rdx, rax
jmp 0x1400263a6
cmp ax, 0x6f
jne 0x140026004
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
test rax, rax
jne 0x140025fdf
mov ecx, r13d
jmp 0x140025fed
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140025fe3
mov r8d, ecx
lea rcx, [0x140271c28]
mov rdx, rax
call fcn.140024d20
jmp 0x1400263ab
cmp ax, 0x68
jne 0x140026058
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x140026025
mov ecx, r13d
jmp 0x14002603a
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026030
mov r8d, ecx
lea rcx, [0x140271990]
mov rdx, rax
call fcn.140024d20
lea rcx, [0x140271278]
jmp 0x1400263a3
cmp ax, 0x48
jne 0x1400260a1
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
test rax, rax
jne 0x140026076
mov ecx, r13d
jmp 0x14002608a
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026080
mov r8d, ecx
lea rcx, [0x140271998]
mov rdx, rax
call fcn.140024d20
jmp 0x1400263ab
cmp ax, 0x50
jne 0x1400260fb
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x1400260c2
mov ecx, r13d
jmp 0x1400260d0
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400260c6
mov r8d, ecx
lea rcx, [0x140271c18]
mov rdx, rax
call fcn.140024d20
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.14019be00
mov dword [0x140271c20], eax
jmp 0x1400263ab
cmp ax, 0x69
jne 0x1400261bb
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
or rcx, 0xffffffffffffffff
mov rdi, rax
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026120
cmp rcx, 8
ja 0x1400263ec
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.140002df0
cmp byte [rsp + 0x60], r13b
je 0x140026164
lea rbx, [rsp + 0x60]
nop dword [rax]
movsx ecx, byte [rbx]
call fcn.140199a18
lea rbx, [rbx + 1]
mov byte [rbx - 1], al
cmp byte [rbx], r13b
jne 0x140026150
lea rdx, str.CLEANSE
lea rcx, [rsp + 0x60]
call fcn.140199438
test rax, rax
jne 0x1400263c4
test rdi, rdi
jne 0x140026188
mov eax, r13d
jmp 0x14002619a
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140026190
lea rcx, [0x1402719b0]
mov r8d, eax
mov rdx, rdi
call fcn.140024d20
mov rdx, rdi
lea rcx, [0x140271478]
jmp 0x1400263a6
cmp ax, 0x6c
jne 0x140026208
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x1400261dc
mov ecx, r13d
jmp 0x1400261ea
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400261e0
mov r8d, ecx
lea rcx, [0x140271980]
mov rdx, rax
call fcn.140024d20
lea rcx, [0x140271078]
jmp 0x1400263a3
cmp ax, 0x6d
jne 0x140026265
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x140026229
mov ecx, r13d
jmp 0x14002623a
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026230
mov r8d, ecx
lea rcx, [0x1402719c0]
mov rdx, rax
call fcn.140024d20
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.14019be00
mov dword [0x1402719c8], eax
jmp 0x1400263ab
cmp ax, 0x6e
jne 0x1400262b1
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov r8, rsi
mov rdx, rax
sub r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 2]
mov word [rdx + r8 - 2], cx
test cx, cx
jne 0x140026290
mov rdx, rax
lea rcx, [0x140271878]
jmp 0x1400263a6
cmp ax, 0x70
jne 0x14002630b
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x1400262d2
mov ecx, r13d
jmp 0x1400262e0
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400262d6
mov r8d, ecx
lea rcx, [0x1402719a0]
mov rdx, rax
call fcn.140024d20
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.14019be00
mov dword [0x1402719a8], eax
jmp 0x1400263ab
cmp ax, 0x73
jne 0x140026355
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x14002632c
mov ecx, r13d
jmp 0x14002633a
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026330
mov r8d, ecx
lea rcx, [0x1402719b8]
mov rdx, rax
call fcn.140024d20
lea rcx, [0x140271578]
jmp 0x1400263a3
cmp ax, 0x74
jne 0x1400263ab
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x30]
call fcn.140012980
mov rbx, rax
test rax, rax
jne 0x140026376
mov ecx, r13d
jmp 0x14002638a
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140026380
mov r8d, ecx
lea rcx, [0x1402719d0]
mov rdx, rax
call fcn.140024d20
lea rcx, [0x140271678]
mov rdx, rbx
call fcn.140002df0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x58]
call fcn.140012a20
mov edi, 1
jmp 0x140025d2c
lea r8, [rsp + 0x60]
lea rdx, str.This_is_a_Matching_server._The_use_of__s_as_the_servers_id_may_not_be_appropriate.
lea rcx, [rbp - 0x30]
call fcn.140197bf8
lea rcx, [rbp - 0x30]
call fcn.140020c20
mov eax, 1
jmp 0x140026580
lea rdx, str.The_name_of_Matching_server___s__can_not_exceed__d_characters.
lea rcx, [rbp - 0x30]
mov r9d, 8
mov r8, rax
call fcn.140197bf8
lea rcx, [rbp - 0x30]
call fcn.140020c20
mov eax, 1
jmp 0x140026580
mov r8d, dword [0x1402719a8]
mov r9d, 0xffff
cmp r8d, r9d
jbe 0x1400264a2
lea rdx, str.The_port_number___d__cannot_be_greater_than__d.
lea rcx, [rbp - 0x30]
call fcn.140197bf8
lea r9, [rbp - 0x30]
lea rcx, [0x140270f20]
mov r8d, 0x400003e8
movzx edx, di
mov qword [rsp + 0x20], r13
call fcn.1400221a0
mov rax, qword [0x140271980]
cmp word [rax], r13w
je 0x14002649b
lea rdx, [0x14022906c]
lea rcx, [0x140271078]
call fcn.140197bc8
mov rbx, rax
test rax, rax
je 0x14002649b
lea r8, [rbp - 0x30]
lea rdx, [0x140227cb4]
mov rcx, rax
call fcn.14019c0ec
mov rcx, rbx
call fcn.14019be84
mov eax, edi
jmp 0x140026580
lea rdx, str._Module.m_nDirPort_d__MAX_PORTS_d_n
mov rcx, r12
call fcn.14019c0ec
mov rcx, r12
call fcn.14019bfc0
test r14d, r14d
je 0x14002657a
mov eax, dword [0x140271c08]
test r15b, r15b
lea rcx, [0x140025a30]
cmove eax, edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r13
mov dword [0x140271c08], eax
test eax, eax
je 0x140026514
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14002650b
mov dword [0x140271c08], r13d
jmp 0x140026514
cmp dword [0x140271c08], r13d
jne 0x14002657a
mov rax, qword [0x140271980]
cmp word [rax], r13w
jne 0x140026528
call fcn.140012900
jmp 0x14002654b
call fcn.14019b768
lea rdx, [0x14022906c]
lea rcx, [0x140271078]
lea r8, [rax + 0x30]
call fcn.14019c304
mov qword [0x140271c10], rax
lea rcx, [0x140270f20]
call fcn.140023b80
call fcn.14019b768
lea rdx, [0x14022906c]
lea r8, [rax + 0x30]
lea rcx, [0x1401cc044]
call fcn.14019c304
mov qword [0x140271c10], rax
mov eax, dword [0x140271bf4]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14019aa20
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret