Function at 0x10018070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e187e
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x101080e7
call fcn.100de193
mov eax, dword [ebx + 4]
test eax, eax
jne 0x100180b8
xor al, al
jmp 0x1001860b
mov byte [eax], 0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x5c]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x100180b1
push 0xb
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x278]
push str.Quarantine_
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.10004bd0
mov dword [ebp - 4], 0
mov ecx, esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018154
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.10004bd0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x278]
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x290]
call fcn.10029960
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 4]
push eax
add ecx, 0xc
call fcn.1000d410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
call fcn.10004b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10004b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.10004b70
mov ecx, dword [ebx + 4]
add ecx, 0xc
call fcn.100265d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100182bd
push 2
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x100182bd
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x230]
push str.Failed_to_GetTempPath__d
push eax
call fcn.10035c70
add esp, 0xc
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push 0x8b
push str.RC::RCTrojaneOperator::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x100182ab
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10004b70
xor eax, eax
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x268], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100182f7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.10004bd0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x278]
mov edx, dword [ebx + 4]
add edx, 0x40
call fcn.10027870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.10004b70
mov ecx, dword [ebx + 4]
push 0xb
add ecx, 0x40
push str.Quarantine_
call fcn.100087b0
mov ecx, dword [ebx + 4]
add ecx, 0x40
call fcn.100265d0
mov ecx, dword [ebx + 4]
add ecx, 0x24
call fcn.10006c70
lea eax, [ebp - 0x260]
push eax
call fcn.1001f860
add esp, 4
mov dword [ebp - 4], 5
xor eax, eax
push 0xd
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.DriverApi.dll
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10004bd0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x248]
call fcn.10029960
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.10004b70
push ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x248]
push eax
add ecx, 4
call fcn.1001ee20
test al, al
je 0x10018480
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10018480
mov eax, dword [eax]
test eax, eax
je 0x10018480
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018480
mov ecx, dword [ebx + 4]
add ecx, 8
push ecx
push 0x100efb54
call eax
mov eax, dword [ebx + 4]
add esp, 8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10018480
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax]
call eax
test al, al
jne 0x1001846a
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10018480
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 8], 0
jmp 0x10018480
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esi + 4]
call dword [edi + 8]
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 0
jne 0x10018531
push 2
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x10018531
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
push 0x1b
push str.Load_BdPcSafeApi.dll_failed
call fcn.10004bd0
push 0xaa
push str.RC::RCTrojaneOperator::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x10018522
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.10004b70
mov ecx, dword [ebx + 4]
add ecx, 0x60
call fcn.10025960
test al, al
jne 0x100185e8
push 2
mov ecx, 0x101063a0
call fcn.10035760
mov esi, eax
test esi, esi
je 0x100185e8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x230]
push 0x22
push 0x100ef078
call fcn.10004bd0
push 0xaf
push str.RC::RCTrojaneOperator::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push eax
push 2
call fcn.100357b0
cmp esi, 1
jbe 0x100185d9
lea eax, [ebp - 0x230]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.10004b70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.10004b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.10004b70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret