Function at 0x1002ba10
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010558c
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1014b520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], 0
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c0f7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x3b4]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1002beb5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x21d]
call fcn.1002b620
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002baef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002bb10
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esi + 0x3b8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x21c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1002bb38
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1002bb50
call fcn.10001bd0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1002c101
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x230], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
mov eax, dword [eax + 0x3b8]
mov dword [ebp - 0x228], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x224], edi
lea edx, [edi + 4]
test edx, edx
js 0x1002c10b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1002bbb3
push edx
lea ecx, [ebp - 0x21c]
call fcn.10002770
mov esi, dword [ebp - 0x21c]
add edi, edi
push edi
push dword [ebp - 0x228]
push edi
push esi
call fcn.1001f5c0
lea eax, [edi + esi]
add esp, 0x10
test eax, eax
jne 0x1002bbdf
call fcn.100da5a6
mov dword [eax], 0x16
call fcn.100da4cc
jmp 0x1002bbeb
movq xmm0, qword [str..ico]
movq qword [eax], xmm0
mov eax, dword [ebp - 0x224]
add eax, 4
cmp eax, dword [esi - 8]
jg 0x1002c10b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002bc30
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c115
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 2
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c11f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x1002bc94
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.100025c0
jmp 0x1002bcc2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002bca0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.100028b0
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 4
push dword [eax + 0x3a4]
call fcn.1002c720
xorps xmm0, xmm0
mov dword [ebp - 0x224], eax
push 0x1c
movlpd qword [ebp - 0x234], xmm0
call fcn.100bb0a7
mov edi, eax
add esp, 4
mov dword [ebp - 0x228], edi
test edi, edi
je 0x1002bd61
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
mov dword [edi], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c129
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push 0
push 0
add eax, 0x10
push 1
mov dword [edi + 0x14], eax
push 0
mov dword [edi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x10], eax
jmp 0x1002bd63
xor edi, edi
push dword [ebp - 0x224]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push edi
mov dword [ebp - 0x230], 0
call fcn.1002af60
push dword [ebp - 0x224]
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push 0x7530
push eax
mov eax, dword [ebp - 0x22c]
mov ecx, edi
mov byte [ebp - 4], 5
push dword [eax + 0x3b4]
call fcn.1002c280
test eax, eax
je 0x1002be06
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 0x23c]
call fcn.1001a230
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x1002bdf7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002bdf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1002bdf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x23c]
mov byte [ebp - 0x21d], 0
jmp 0x1002be38
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x1002be31
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002be31
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002be31
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 0x21d], 1
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002be5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21d], 0
jne 0x1002c09f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002be72
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.100028b0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002beaf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
cmp dword [esi + 0x3c0], 0
lea eax, [ebp - 0x238]
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push eax
jne 0x1002bf0a
call fcn.1001fa10
push ecx
lea eax, [esi + 0x3ac]
mov dword [ebp - 0x228], esp
mov ecx, esp
mov byte [ebp - 4], 6
push eax
call fcn.1001fa10
push ecx
lea eax, [esi + 0x3b8]
mov byte [ebp - 4], 7
mov ecx, esp
push eax
call fcn.1001fa10
mov byte [ebp - 4], 0
call fcn.10031170
jmp 0x1002bf44
call fcn.1001fa10
push ecx
lea eax, [esi + 0x3ac]
mov dword [ebp - 0x228], esp
mov ecx, esp
mov byte [ebp - 4], 8
push eax
call fcn.1001fa10
push ecx
lea eax, [esi + 0x3b8]
mov byte [ebp - 4], 9
mov ecx, esp
push eax
call fcn.1001fa10
mov byte [ebp - 4], 0
call fcn.100314b0
add esp, 0xc
push ecx
mov dword [ebp - 0x224], esp
mov dword [ebp - 0x21c], esp
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c133
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x21c]
add eax, 0x10
mov dword [ecx], eax
mov edx, str..url
mov byte [ebp - 4], 0xa
xor al, al
test edx, 0xffff0000
jne 0x1002bf99
movzx eax, dx
push eax
call fcn.100025c0
mov ecx, dword [ebp - 0x21c]
mov al, 1
test al, al
jne 0x1002bfa9
push 4
push str..url
call fcn.100028b0
push ecx
lea eax, [esi + 0x3b8]
mov byte [ebp - 4], 0xb
mov ecx, esp
push eax
call fcn.1001fa10
mov byte [ebp - 4], 0
call fcn.100323b0
add esp, 8
test eax, eax
jne 0x1002c044
push ecx
mov dword [ebp - 0x228], esp
mov dword [ebp - 0x224], esp
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c13d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [ecx], eax
mov eax, str..lnk
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x1002c015
movzx eax, ax
push eax
call fcn.100025c0
jmp 0x1002c021
push 4
push str..lnk
call fcn.100028b0
push ecx
lea eax, [esi + 0x3b8]
mov byte [ebp - 4], 0xd
mov ecx, esp
push eax
call fcn.1001fa10
mov byte [ebp - 4], 0
call fcn.100323b0
add esp, 8
test eax, eax
je 0x1002c0ba
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x1002c147
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push dword [esi + 0x3a8]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xe
push str.link__s
push eax
call fcn.10001aa0
mov esi, dword [ebp - 0x21c]
add esp, 0xc
push 0
push str.alicev3_link
push 1
push 0
push esi
call fcn.10008d90
mov ecx, eax
call fcn.10040cb0
mov eax, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002c0ba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1002c0dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80070057
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
push 0x80004005
call fcn.10001900
int3