Function at 0x470f70
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cef1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x5c8448
push 0x5c8424
push 0
push eax
mov dword [ebp - 0x5c], 0
call fcn.005201c6
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
je 0x47127f
call fcn.00415b60
mov ecx, eax
test ecx, ecx
je 0x47129c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x50], eax
push 0x24
push str.___allow_universal_access_from_files
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040e0d0
lea eax, [ebp - 0x6c]
push eax
call fcn.004254d0
mov ecx, eax
call fcn.004254a0
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x38]
sub eax, 0x10
push eax
call fcn.0040e810
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x70], edi
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47103c
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00415b60
mov ecx, eax
test ecx, ecx
je 0x4712a6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
push str.____cache_path
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.0040e320
test al, al
jne 0x47107c
push 0xf
push str.____cache_path
lea ecx, [ebp - 0x4c]
call fcn.0041aed0
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
push edi
call fcn.0040e0d0
push 0xc
push str.___log_file
lea ecx, [ebp - 0x4c]
call fcn.0040e0d0
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 5
mov dword [ebp - 0x64], eax
test ecx, ecx
je 0x4710b9
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x4710d1
call fcn.00415b60
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x4712b0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x5c], 1
lea esi, [eax + 0x10]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], eax
lea edx, [eax + 8]
test edx, edx
js 0x4712ba
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x471113
push edx
lea ecx, [ebp - 0x54]
call fcn.00418be0
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add eax, eax
push eax
push edi
push eax
push esi
call fcn.0041e4b0
mov edi, dword [ebp - 0x58]
add esp, 0x10
lea eax, [esi + edi*2]
test eax, eax
jne 0x471140
call fcn.00522f42
mov dword [eax], 0x16
call fcn.00522e69
jmp 0x47114a
movups xmm0, xmmword [str.cef.log]
movups xmmword [eax], xmm0
lea eax, [edi + 8]
cmp eax, dword [esi - 8]
jg 0x4712ba
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x4c]
push dword [esi - 0xc]
push esi
call fcn.0040e0d0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471187
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
push dword [esi - 0xc]
push esi
call fcn.0040e0d0
movups xmm0, xmmword [str.___disable_keyboard_filter]
lea ecx, [ebp - 0x48]
lea edx, [ecx + 2]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [0x57f01c]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x57f02c]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [0x57f03c]
movq qword [ebp - 0x18], xmm0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4711d0
sub ecx, edx
lea eax, [ebp - 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040e0d0
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x50]
push 0
push edi
mov eax, dword [ecx]
push str.special_command
push ecx
call dword [eax + 0x30]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47121c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471238
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x471260
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x471260
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x471260
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47127f
mov ecx, dword [edi]
push edi
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.0047467d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
push 0x80070057
call fcn.0040e300
int3