Function at 0x10018e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054192
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x10070850]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x460], esi
call fcn.1001dc0a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x10018e81
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x460], 1
call fcn.1001dc0a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x10018eb3
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 1
mov byte [esp + 0x464], 2
call fcn.1001dbc5
mov edi, eax
add esp, 4
test edi, edi
jne 0x10018ef8
lea eax, [esi - 0x10]
mov byte [esp + 0x460], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x100191a2
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10019181
cmp eax, 0x104
jae 0x10019181
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018f22
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2a], 0x5c
je 0x10018f50
push 0x1005ec98
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.1003c283
add esp, 0xc
lea eax, [esp + 0x23c]
push eax
push 0
push 0x1005ec9c
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10019181
lea esi, [esp + 0x23c]
call fcn.10019b40
test eax, eax
je 0x10018fda
call fcn.10019ce0
test eax, eax
je 0x10018fda
push 0x103
mov ecx, esi
push ecx
lea edx, [esp + 0x34]
push 0x104
push edx
call fcn.1003aeac
push str.AdBoard.hc
lea eax, [esp + 0x40]
push eax
push str._s_s
mov edx, esi
call fcn.1000f5d0
add esp, 0x1c
mov ecx, esi
push ecx
mov ecx, str.http:__khophanmem.vn_kpm_data
call fcn.1000e650
test eax, eax
jne 0x10018ffa
push 1
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.1000e8b0
push edi
call fcn.1001dbf4
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10006d70
lea ecx, [esp + 0x14]
call fcn.10006d70
jmp 0x100191d6
push str.BkzLib.dll
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call fcn.10006ce0
mov eax, dword [esp + 0x24]
add esp, 0x10
lea esi, [esp + 0x20]
call fcn.1000dbc0
mov edx, esi
push edx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x240]
call fcn.1000dc00
test eax, eax
jg 0x1001907a
push 1
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.1000e8b0
push edi
call fcn.1001dbf4
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10006d70
lea ecx, [esp + 0x14]
call fcn.10006d70
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100191d6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100191d6
mov ebx, dword [ebx + 0x210]
lea ecx, [esp + 0x1c]
push str.SiteAdvisor
push ecx
call fcn.1001abd0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x464], 3
call fcn.100069d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.10006d70
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push str.SafeDownloadData_Kpm.json
push edx
call fcn.1001abd0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x464], 4
call fcn.100069d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.10006d70
lea eax, [esp + 0x1c]
push str.kpm_data.txt
push eax
lea ebx, [esp + 0x34]
call fcn.1001abd0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x464], 5
call fcn.100069d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.10006d70
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push ebx
push esi
push str.Copy_file__s_to__s
call fcn.1001aaf0
add esp, 0xc
call fcn.10019a60
push 1
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov esi, eax
call fcn.1000e8b0
push edi
call fcn.1001dbf4
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10006d70
lea ecx, [esp + 0x14]
call fcn.10006d70
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001917d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x100191d8
push edi
call fcn.1001dbf4
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x464], 1
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100191ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100191d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1003aa2d
mov esp, ebp
pop ebp
ret