Function at 0x14008f2e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x51c0]
mov eax, 0x52c0
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x5300], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x51b0], rax
mov qword [rbp - 0x68], r9
mov qword [rsp + 0x78], r8
mov r15, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_SNMPgetPortInfoUsingSysDescription
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov r9, r15
lea r8, str.sysDesc___s
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140007780
call fcn.140102a14
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14008f37f
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
call fcn.140102a14
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14008f3b1
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x50], r14d
xor r13b, r13b
mov byte [rsp + 0x30], r13b
mov edx, 0x2800
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
lea rdi, [rbp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14008f467
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14008f4ef
cmp dword [rdx + 0x10], eax
jge 0x14008f434
cmp dword [rbx - 0xc], eax
jge 0x14008f427
mov ecx, 0x80070057
call fcn.140005210
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14008f4ef
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f44b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x40]
jmp 0x14008f4ef
mov r14d, dword [rbx - 0x10]
lea r13, [rbp + 0x1b0]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x14008f487
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14008f4a9
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140005e40
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14008f4cd
lea r8, [rbx + r13*2]
call fcn.1402457b4
jmp 0x14008f4d9
lea r8, [rbp + 0x1b0]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x14008f98d
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
xor r13b, r13b
mov r8d, recv
lea rdx, str._tcpmon.ini
lea rcx, [rsp + 0x38]
call fcn.140005f90
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140005900
nop
lea r8, [rsp + 0x68]
lea rdx, [0x1402deb90]
lea rcx, [rbp - 0x70]
call fcn.14000d810
nop
lea r8, [0x1402deb90]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14003ffa0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14008f598
cmp dword [rsi + 0x10], 0
jl 0x14008f589
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14008f589
call fcn.140006190
mov rdi, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14008f57e
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x14008f598
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140005d50
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f5b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f5d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x38]
mov r9, rdi
lea r8, str._t_t_ttcpmonFile_Path___s
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov r9, qword [rsp + 0x40]
lea r8, str._t_t_tSearch_keyName____s
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x2800
lea r9, [rbp + 0x1b0]
lea r8, [0x1402dc4e0]
xor edx, edx
lea rcx, str.Ports
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14008f8fe
lea r14, [rbp + 0x1b0]
cmp word [rbp + 0x1b0], 0
je 0x14008f8fe
mov r15, qword [rsp + 0x78]
nop dword [rax]
test r13b, r13b
jne 0x14008f8fe
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x40]
mov rdx, r14
call qword [rax + 0x130]
test eax, eax
je 0x14008f8b5
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xff
lea r9, [rbp - 0x50]
lea r8, [0x1402dc4e0]
mov rdx, r14
lea rcx, str.Ports
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rbp - 0x50]
lea r8, str._t_t_tSectionName___s
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
call fcn.140102a14
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
je 0x14008f8f3
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x50]
test rax, 0xffffffffffff0000
jne 0x14008f736
movzx edi, cx
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x14008f822
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005b00
mov rbx, qword [rsp + 0x48]
jmp 0x14008f822
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14008f7a3
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14008f822
cmp dword [rdx + 0x10], eax
jge 0x14008f778
cmp dword [rbx - 0xc], eax
jl 0x14008f8d2
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14008f822
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f78f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x14008f822
mov r13d, dword [rbx - 0x10]
lea rsi, [rbp - 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x14008f8e8
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14008f7db
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140005e40
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14008f7ff
lea r8, [rbx + rsi*2]
call fcn.1402457b4
jmp 0x14008f808
lea r8, [rbp - 0x50]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x14008f8dd
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
movzx r13d, byte [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, rax
lea rcx, [rbx - 0x18]
call fcn.140006190
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.140006190
add rax, 0x18
mov qword [rbp - 0x78], rax
mov rax, qword [rdi]
mov rcx, qword [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9, r15
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [rax + 0x380]
test eax, eax
je 0x14008f899
mov r13b, 1
mov byte [rsp + 0x30], r13b
mov dword [rsp + 0x50], 1
mov eax, r12d
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x14008f8b5
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, r12
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r14, [r14 + rcx*2]
cmp word [r14], ax
je 0x14008f8fe
jmp 0x14008f660
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
nop
mov ecx, 0x80004005
call fcn.140005210
int3
mov edi, dword [rsp + 0x50]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f93d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008f95e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14008f97f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, edi
jmp 0x14008f998
mov ecx, 0x80070057
call fcn.140005210
nop
mov rcx, qword [rbp + 0x51b0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x5300]
add rsp, 0x52c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret