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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a62e9
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x100d5688]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x384], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1007f220
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10012eb3
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x10013688
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x370], edi
jmp 0x10012f48
push str.360wpCommonCache
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x10013692
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10012f15
movzx eax, ax
lea ecx, [ebp - 0x370]
push eax
call fcn.1000b4c0
jmp 0x10012f42
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012f20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x370]
call fcn.10007bf0
mov edi, dword [ebp - 0x370]
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x380], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.10007690
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x378]
push eax
call fcn.10012600
push 0x100ae938
lea eax, [ebp - 0x370]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.1000a860
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.1000a7b0
add esp, 0x20
mov edx, dword [ebp - 0x380]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10012fd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x36c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013291
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x1001369c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x36c]
call fcn.1005bd70
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x100130f9
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1000c680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10045960
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x260]
mov ebx, eax
call fcn.100074f0
test ebx, ebx
je 0x10013170
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0xfde9
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000f930
push dword [eax]
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0xb
call fcn.10010a80
jmp 0x1001314d
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
push 0xfde9
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000f930
mov edx, dword [eax]
mov byte [ebp - 4], 0xc
test edx, edx
jne 0x1001312c
xor ecx, ecx
jmp 0x10013140
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013131
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x368]
call fcn.10007bf0
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x1001316a
push eax
call fcn.10085f8e
add esp, 4
mov esi, dword [ebp - 0x368]
cmp dword [esi - 0xc], 0
je 0x10013251
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x374], eax
call fcn.10007690
mov esi, dword [ebp - 0x37c]
lea ecx, [ebp - 0x230]
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.100074f0
lea ecx, [ebp - 0x248]
call fcn.100074f0
mov edx, dword [ebp - 0x374]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100131ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100131ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001322b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001324a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1001366c
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x230]
call fcn.100074f0
lea ecx, [ebp - 0x248]
call fcn.100074f0
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10013291
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x100136a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x368], eax
push 0
push 0x2710
lea eax, [ebp - 0x368]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.1001afb0
add esp, 0x10
test eax, eax
jne 0x100133c4
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x100136b0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x37c]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100ae618
mov byte [ebp - 4], 0xe
mov ecx, esi
test eax, 0xffff0000
jne 0x10013310
movzx eax, ax
push eax
call fcn.1000b4c0
jmp 0x1001331c
push 0
push 0x100ae618
call fcn.10007bf0
mov edx, dword [ebp - 0x368]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001333d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001335e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001337f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001339a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001324a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x1001366c
mov esi, dword [ebp - 0x368]
push dword [esi - 0xc]
push esi
push dword [ebp - 0x36c]
call fcn.1005bf50
add esp, 0xc
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x100136ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x374], eax
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 0xf
jne 0x1001352e
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000c680
mov ecx, esi
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013477
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.1000c680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10045960
add esp, 0xc
lea ecx, [ebp - 0x260]
mov ebx, eax
call fcn.100074f0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
call fcn.100074f0
test ebx, ebx
je 0x1001351d
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0xfde9
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000f930
push dword [eax]
lea ecx, [ebp - 0x374]
mov byte [ebp - 4], 0x13
call fcn.10010a80
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
cmp eax, ecx
je 0x1001351d
push eax
call fcn.10085f8e
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
call fcn.100074f0
jmp 0x1001358b
push 0xfde9
push esi
lea ecx, [ebp - 0x364]
call fcn.1000f930
mov edx, dword [eax]
mov byte [ebp - 4], 0x14
test edx, edx
jne 0x1001354d
xor ecx, ecx
jmp 0x10013561
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013552
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x374]
call fcn.10007bf0
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0xf
cmp eax, ecx
je 0x1001358b
push eax
call fcn.10085f8e
add esp, 4
mov eax, dword [ebp - 0x374]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x384], eax
call fcn.10007690
mov ecx, dword [ebp - 0x37c]
add eax, 0x10
mov edx, dword [ebp - 0x384]
or ebx, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0xd
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100135cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100135ea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001360b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001362c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10013647
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10013666
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x37c]
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.1005f06c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
int3