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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1019646c]
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 0x100710d1
push 0x10154eac
mov ecx, ebx
call fcn.10012770
mov eax, ebx
jmp 0x10071283
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.10012770
lea ecx, [ebp - 0x221]
mov dword [ebp - 4], 0
call fcn.10070830
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 0x1007112d
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10071143
call fcn.10017640
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1007129f
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 0x10071171
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10071162
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 0x100712a9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100711b4
push edx
lea ecx, [ebp - 0x220]
call fcn.10014650
mov esi, dword [ebp - 0x220]
add edi, edi
push edi
push dword [ebp - 0x230]
push edi
push esi
call fcn.1001c650
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x234]
push eax
lea eax, [edi + esi]
push eax
call fcn.1001c650
mov eax, dword [ebp - 0x228]
add esp, 0x20
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x100712a9
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.10018af0
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 0x10071225
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 0x10071242
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.10019550
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 0x10071281
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.100f5f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013b40
push 0x80070057
call fcn.10013b40
int3