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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b1d1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5c324c]
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 0x5c6448
push 0x5c6424
push 0
push eax
mov dword [ebp - 0x5c], 0
call fcn.0051e736
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
je 0x46f75f
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x46f77c
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.00425500
mov ecx, eax
call fcn.004254d0
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 0x46f51c
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x46f786
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 0x46f55c
push 0xf
push str.____cache_path
lea ecx, [ebp - 0x4c]
call fcn.0041af00
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 0x46f599
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x46f5b1
call fcn.00415b90
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x46f790
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 0x46f79a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46f5f3
push edx
lea ecx, [ebp - 0x54]
call fcn.00418c10
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add eax, eax
push eax
push edi
push eax
push esi
call fcn.0041e4e0
mov edi, dword [ebp - 0x58]
add esp, 0x10
lea eax, [esi + edi*2]
test eax, eax
jne 0x46f620
call fcn.005214b2
mov dword [eax], 0x16
call fcn.005213d9
jmp 0x46f62a
movups xmm0, xmmword [str.cef.log]
movups xmmword [eax], xmm0
lea eax, [edi + 8]
cmp eax, dword [esi - 8]
jg 0x46f79a
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 0x46f667
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 [0x57cd4c]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x57cd5c]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [0x57cd6c]
movq qword [ebp - 0x18], xmm0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f6b0
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 0x46f6fc
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 0x46f718
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x46f740
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x46f740
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x46f740
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 0x46f75f
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.00472b5d
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