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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101566dd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101a154c]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10070fd1
push 0x1015fecc
mov ecx, ebx
call fcn.10012f50
mov eax, ebx
jmp 0x10071183
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.10012f50
lea ecx, [ebp - 0x221]
mov dword [ebp - 4], 0
call fcn.10070730
mov ebx, eax
mov dword [ebp - 0x234], ebx
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1007102d
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10071043
call fcn.10017d20
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1007119f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x22c], 2
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
test ebx, ebx
je 0x10071071
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10071062
sub ebx, ecx
sar ebx, 1
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x230], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x228], edi
lea edx, [ebx + edi]
test edx, edx
js 0x100711a9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100710b4
push edx
lea ecx, [ebp - 0x220]
call fcn.10014de0
mov esi, dword [ebp - 0x220]
add edi, edi
push edi
push dword [ebp - 0x230]
push edi
push esi
call fcn.1001cde0
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x234]
push eax
lea eax, [edi + esi]
push eax
call fcn.1001cde0
mov eax, dword [ebp - 0x228]
add esp, 0x20
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x100711a9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100190c0
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10071125
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10071142
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.10019b20
mov esi, dword [ebp - 0x238]
add eax, 0x10
mov edx, dword [ebp - 0x21c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [esi], eax
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10071181
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.100f8fe1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100142b0
push 0x80070057
call fcn.100142b0
int3