Function at 0x14012c460
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14027f238]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov rdi, qword [0x14028c8d0]
test rdi, rdi
jne 0x14012c4c1
lea ecx, [rdi + 0x50]
call fcn.140165194
mov rdi, rax
mov qword [rsp + 0x28], rax
mov edx, 0x102
mov rcx, rax
call fcn.140166928
mov qword [0x14028c8d0], rdi
mov rcx, rdi
call fcn.140166958
test eax, eax
je 0x14012c4d4
mov ecx, eax
call fcn.1401664c4
mov byte [rbx + 1], 1
cmp byte [rbx], 0
jne 0x14012c513
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
je 0x14012c50a
cmp eax, 1
je 0x14012c50a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 1
je 0x14012c50a
test eax, eax
jne 0x14012c9e1
inc dword [0x14028c8e8]
mov byte [rbx], 1
cmp qword [rbx + 0x18], 0
jne 0x14012c53e
mov rcx, rbx
call fcn.14012bff0
mov edi, eax
test eax, eax
js 0x14012c52f
cmp qword [rbx + 0x18], 0
jne 0x14012c53e
mov rcx, rbx
call fcn.1400fb0f0
mov eax, edi
jmp 0x14012c9ec
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.1401a85d0
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14012c9e1
xor esi, esi
cmp word [rsp + 0x50], si
jne 0x14012c576
mov r8d, esi
jmp 0x14012c58a
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], si
jne 0x14012c580
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x50]
call fcn.1400be520
cmp qword [rbx + 0x20], 8
jb 0x14012c5a5
mov rcx, qword [rbx + 8]
jmp 0x14012c5a9
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14012c9e1
lea r8, str.SBTE.dll
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400dc1b0
nop
cmp qword [rax + 0x18], 8
jb 0x14012c5d7
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x48], rax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14012c601
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400be810
mov rcx, qword [rbx + 0x48]
test rcx, rcx
jne 0x14012c61c
mov rcx, rbx
call fcn.1400fb0f0
mov eax, 0xffffffe4
jmp 0x14012c9ec
lea rdx, str.SBCSCloseThreatEngine
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.SBCSResetScanOptions
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.SBCSEnableAV
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.SBCSSetScanOption
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
lea rdx, str.SBCSGetScanOption
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
lea rdx, str.SBCSClearPathsToScan
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
lea rdx, str.SBCSRunScanner
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
lea rdx, str.SBCSGetScannerResultsSizeW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
lea rdx, str.SBCSGetScannerResultsW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
lea rdx, str.SBCSOpenThreatEngineW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
lea rdx, str.SBCSAddPathToScanW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
lea rdx, str.SBCSClearThreatCategoryActions
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa8], rax
lea rdx, str.SBCSAddThreatCategoryActionW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], rax
lea rdx, str.SBCSRunCleanerW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
lea rdx, str.SBCSGetCleanerResultsW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc0], rax
lea rdx, str.SBCSGetCleanerResultsSizeW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc8], rax
lea rdx, str.SBCSGetDefVersionW
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd0], rax
cmp qword [rbx + 0x88], 0
jne 0x14012c7c0
lea rdx, str.SBCSGetScannerResultsSize
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
cmp qword [rbx + 0x90], 0
jne 0x14012c7e2
lea rdx, str.SBCSGetScannerResults
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
cmp qword [rbx + 0x98], 0
jne 0x14012c804
lea rdx, str.SBCSOpenThreatEngine
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
cmp qword [rbx + 0xa0], 0
jne 0x14012c826
lea rdx, str.SBCSAddPathToScan
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
cmp qword [rbx + 0xb0], 0
jne 0x14012c848
lea rdx, str.SBCSAddThreatCategoryAction
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], rax
cmp qword [rbx + 0xb8], 0
jne 0x14012c86a
lea rdx, str.SBCSRunCleaner
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
cmp qword [rbx + 0xc0], 0
jne 0x14012c88c
lea rdx, str.SBCSGetCleanerResults
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc0], rax
cmp qword [rbx + 0xc8], 0
jne 0x14012c8ae
lea rdx, str.SBCSGetCleanerResultsSize
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc8], rax
cmp qword [rbx + 0xd0], 0
jne 0x14012c8d0
lea rdx, str.SBCSGetDefVersion
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd0], rax
cmp qword [rbx + 0x50], 0
je 0x14012c97c
cmp qword [rbx + 0x58], 0
je 0x14012c97c
cmp qword [rbx + 0x60], 0
je 0x14012c97c
cmp qword [rbx + 0x68], 0
je 0x14012c97c
cmp qword [rbx + 0x70], 0
je 0x14012c97c
cmp qword [rbx + 0x78], 0
je 0x14012c97c
cmp qword [rbx + 0x80], 0
je 0x14012c97c
cmp qword [rbx + 0x88], 0
je 0x14012c97c
cmp qword [rbx + 0x90], 0
je 0x14012c97c
cmp qword [rbx + 0x98], 0
je 0x14012c97c
cmp qword [rbx + 0xa0], 0
je 0x14012c97c
cmp qword [rbx + 0xa8], 0
je 0x14012c97c
cmp qword [rbx + 0xb0], 0
je 0x14012c97c
cmp qword [rbx + 0xb8], 0
je 0x14012c97c
cmp qword [rbx + 0xc0], 0
je 0x14012c97c
cmp qword [rbx + 0xc8], 0
je 0x14012c97c
cmp qword [rbx + 0xd0], 0
je 0x14012c97c
xor eax, eax
jmp 0x14012c9ec
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0xb0], rsi
mov qword [rbx + 0xb8], rsi
mov qword [rbx + 0xc0], rsi
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xd0], rsi
mov rcx, rbx
call fcn.1400fb0f0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140164ec0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret