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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018616d
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101dd594]
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 0x10077d51
push 0x10193fcc
mov ecx, ebx
call fcn.10016670
mov eax, ebx
jmp 0x10077f03
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.10016670
lea ecx, [ebp - 0x221]
mov dword [ebp - 4], 0
call fcn.100773d0
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 0x10077dad
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10077dc3
call fcn.1001b540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10077f1f
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 0x10077df1
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10077de2
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 0x10077f29
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10077e34
push edx
lea ecx, [ebp - 0x220]
call fcn.10018550
mov esi, dword [ebp - 0x220]
add edi, edi
push edi
push dword [ebp - 0x230]
push edi
push esi
call fcn.10020550
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x234]
push eax
lea eax, [edi + esi]
push eax
call fcn.10020550
mov eax, dword [ebp - 0x228]
add esp, 0x20
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x10077f29
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.1001c9f0
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 0x10077ea5
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 0x10077ec2
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.1001d450
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 0x10077f01
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.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
push 0x80070057
call fcn.10017a40
int3