Function at 0x10019200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054117
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
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x460], ebx
call fcn.1001dc0a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10019276
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, ebx
setne cl
cmp ecx, ebx
jne 0x100192a8
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
cmp edi, ebx
jne 0x100192ed
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 0x100194dc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x100194bb
cmp eax, 0x104
jae 0x100194bb
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10019317
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2a], 0x5c
je 0x10019345
push 0x1005ec98
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.1003c283
add esp, 0xc
lea eax, [esp + 0x23c]
push eax
push ebx
push 0x1005ec9c
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100194bb
lea esi, [esp + 0x23c]
call fcn.10019b40
test eax, eax
je 0x100193ce
call fcn.10019ce0
test eax, eax
je 0x100193ce
push 0x103
mov ecx, esi
push ecx
lea edx, [esp + 0x34]
push 0x104
push edx
call fcn.1003aeac
push str.SafeDownloadData_Ads.json
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_SafeDownloadData_Ads.json
call fcn.1000e650
test eax, eax
jne 0x100193ee
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 0x1001950f
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 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_Ads.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
mov ebx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x240]
push eax
push str.Copy_file__s_to__s
call fcn.1001aaf0
add esp, 0xc
lea esi, [esp + 0x23c]
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, esi
jmp 0x10019511
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 0x100194e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], bl
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 0x1001950f
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 4