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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c851
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.0051fd06
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
je 0x46f28f
call fcn.00415c50
mov ecx, eax
test ecx, ecx
je 0x46f2ac
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.00425550
mov ecx, eax
call fcn.00425520
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 0x46f04c
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00415c50
mov ecx, eax
test ecx, ecx
je 0x46f2b6
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 0x46f08c
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 0x46f0c9
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x46f0e1
call fcn.00415c50
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x46f2c0
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 0x46f2ca
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46f123
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 0x46f150
call fcn.00522a82
mov dword [eax], 0x16
call fcn.005229a9
jmp 0x46f15a
movups xmm0, xmmword [str.cef.log]
movups xmmword [eax], xmm0
lea eax, [edi + 8]
cmp eax, dword [esi - 8]
jg 0x46f2ca
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 0x46f197
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 [0x57ed1c]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x57ed2c]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [0x57ed3c]
movq qword [ebp - 0x18], xmm0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f1e0
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 0x46f22c
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 0x46f248
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x46f270
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x46f270
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x46f270
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 0x46f28f
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.0047268d
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