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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ca61
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.0051fed6
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
je 0x46f45f
call fcn.00415c50
mov ecx, eax
test ecx, ecx
je 0x46f47c
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.0040e1b0
lea eax, [ebp - 0x6c]
push eax
call fcn.00425690
mov ecx, eax
call fcn.00425660
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x38]
sub eax, 0x10
push eax
call fcn.0040e8f0
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 0x46f21c
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00415c50
mov ecx, eax
test ecx, ecx
je 0x46f486
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.0040e400
test al, al
jne 0x46f25c
push 0xf
push str.____cache_path
lea ecx, [ebp - 0x4c]
call fcn.0041afc0
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
push edi
call fcn.0040e1b0
push 0xc
push str.___log_file
lea ecx, [ebp - 0x4c]
call fcn.0040e1b0
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 5
mov dword [ebp - 0x64], eax
test ecx, ecx
je 0x46f299
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x46f2b1
call fcn.00415c50
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x46f490
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 0x46f49a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46f2f3
push edx
lea ecx, [ebp - 0x54]
call fcn.00418cd0
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add eax, eax
push eax
push edi
push eax
push esi
call fcn.0041e430
mov edi, dword [ebp - 0x58]
add esp, 0x10
lea eax, [esi + edi*2]
test eax, eax
jne 0x46f320
call fcn.00522c52
mov dword [eax], 0x16
call fcn.00522b79
jmp 0x46f32a
movups xmm0, xmmword [str.cef.log]
movups xmmword [eax], xmm0
lea eax, [edi + 8]
cmp eax, dword [esi - 8]
jg 0x46f49a
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.0040e1b0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46f367
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.0040e1b0
movups xmm0, xmmword [str.___disable_keyboard_filter]
lea ecx, [ebp - 0x48]
lea edx, [ecx + 2]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [0x57ed7c]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x57ed8c]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [0x57ed9c]
movq qword [ebp - 0x18], xmm0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f3b0
sub ecx, edx
lea eax, [ebp - 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040e1b0
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 0x46f3fc
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 0x46f418
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x46f440
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x46f440
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x46f440
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 0x46f45f
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.0047285d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040e3e0
push 0x80004005
call fcn.0040e3e0
push 0x80004005
call fcn.0040e3e0
push 0x80070057
call fcn.0040e3e0
int3