Function at 0x45ac30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be42b
mov eax, dword fs:[0]
push eax
sub esp, 0xa30
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x45ac73
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
jmp 0x45af0c
call fcn.0045aba0
test eax, eax
jne 0x45ac86
mov eax, 1
jmp 0x45af0c
lea edi, [ebx + 4]
push edi
mov dword [ebp - 0xa38], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx], 0
je 0x45acad
xor eax, eax
cmp dword [ebx + 0x1c], eax
push edi
jmp 0x45aeff
cmp dword [ebx + 0x34], 0
jne 0x45acc1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x45af0c
push 0x810
lea ecx, [ebp - 0xa30]
push 0
push ecx
call fcn.004982c0
lea eax, [ebp - 0xa30]
mov esi, str.360TS
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xa34], 0x814
mov edx, 0x100
sub esi, ecx
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x45ad15
movzx ecx, word [esi + eax]
test cx, cx
je 0x45ad15
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x45acf5
jmp 0x45ad19
test edx, edx
jne 0x45ad1c
sub eax, 2
xor edx, edx
cmp dword [ebx + 0x38], 8
mov word [eax], dx
jb 0x45ad2c
mov esi, dword [ebx + 0x24]
jmp 0x45ad2f
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x830]
mov ecx, eax
mov edx, 0x100
sub esi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x45ad60
movzx ecx, word [esi + eax]
test cx, cx
je 0x45ad60
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x45ad40
jmp 0x45ad64
test edx, edx
jne 0x45ad67
sub eax, 2
xor edx, edx
mov word [eax], dx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004982c0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x45ae79
mov ecx, 0x104
lea eax, [ebp - 0x21c]
cmp word [eax], 0
je 0x45adc2
add eax, 2
sub ecx, 1
jne 0x45adb2
jmp 0x45adea
test ecx, ecx
je 0x45adea
mov eax, 0x104
sub eax, ecx
push SysReAllocString
mov ecx, 0x104
push str.360safe
sub ecx, eax
lea edx, [ebp + eax*2 - 0x21c]
call fcn.00425380
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
jne 0x45ae0c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0049806d
add esp, 4
mov ecx, 0x104
lea eax, [ebp - 0x21c]
cmp word [eax], 0
je 0x45ae27
add eax, 2
sub ecx, 1
jne 0x45ae17
jmp 0x45ae4f
test ecx, ecx
je 0x45ae4f
mov eax, 0x104
sub eax, ecx
push SysReAllocString
mov ecx, 0x104
push str.LogInfo
sub ecx, eax
lea edx, [ebp + eax*2 - 0x21c]
call fcn.00425380
lea edx, [ebp - 0x21c]
push edx
call esi
test eax, eax
jne 0x45ae6b
lea eax, [ebp - 0x21c]
push eax
call fcn.0049806d
add esp, 4
push SysReAllocString
lea ecx, [ebp - 0x21c]
push ecx
jmp 0x45ae9f
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x45acb3
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x104
lea edx, [ebp - 0x630]
call fcn.00425380
push 0x4d2224
lea edi, [ebx + 0x1c]
call fcn.0045e770
call fcn.0045a6c0
test eax, eax
jne 0x45aee8
mov eax, dword [edi]
test eax, eax
je 0x45aee8
mov ecx, dword [eax]
lea edx, [ebp - 0xa34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x45aeee
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
mov ecx, dword [ebp - 0xa38]
xor eax, eax
cmp dword [edi], eax
mov dword [ebx], 1
push ecx
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 - 0x14]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4