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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x874], ecx
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x45f515
xor eax, eax
jmp 0x45f8ad
lea ecx, [ebp - 0x20]
call fcn.00434060
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], reloc.WS2_32.dll_accept
mov ecx, dword [ebp + 8]
add ecx, 0xd4
call fcn.004034e0
test eax, eax
je 0x45f63a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xd4
call fcn.00401340
push eax
call fcn.0045f2c0
add esp, 0xc
movzx edx, al
test edx, edx
je 0x45f63a
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x45f5c1
cmp dword [ebp - 0x18], reloc.WS2_32.dll_accept
jne 0x45f5c1
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
call fcn.00520960
movzx edx, al
test edx, edx
je 0x45f5ef
cmp dword [ebp - 0x2c], 0
je 0x45f5ef
lea eax, [ebp - 0x28]
push eax
push 0x20119
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x858], eax
mov ecx, dword [ebp - 0x858]
push ecx
call fcn.004b9d83
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x2c], 0
sete al
mov dword [ebp - 0x85c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x85c]
jmp 0x45f8ad
mov ecx, dword [ebp + 8]
add ecx, 0x144
call fcn.004258a0
movzx ecx, al
test ecx, ecx
jne 0x45f759
xor edx, edx
mov word [ebp - 0x444], dx
push 0x206
push 0
lea eax, [ebp - 0x442]
push eax
call fcn.004ba280
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x444]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x144
call fcn.00401340
push eax
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f6d6
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x860]
jmp 0x45f8ad
xor ecx, ecx
mov word [ebp - 0x23c], cx
push 0x206
push 0
lea edx, [ebp - 0x23a]
push edx
call fcn.004ba280
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x144
call fcn.00401340
push eax
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f759
mov dword [ebp - 0x864], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x864]
jmp 0x45f8ad
mov ecx, dword [ebp + 8]
add ecx, 0x160
call fcn.004258a0
movzx eax, al
test eax, eax
jne 0x45f7f5
xor ecx, ecx
mov word [ebp - 0x64c], cx
push 0x206
push 0
lea edx, [ebp - 0x64a]
push edx
call fcn.004ba280
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x64c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x160
call fcn.00401340
push eax
lea ecx, [ebp - 0x64c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x64c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f7f5
mov dword [ebp - 0x868], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x868]
jmp 0x45f8ad
mov ecx, dword [ebp + 8]
add ecx, 0x17c
call fcn.004258a0
movzx eax, al
test eax, eax
jne 0x45f88e
xor ecx, ecx
mov word [ebp - 0x854], cx
push 0x206
push 0
lea edx, [ebp - 0x852]
push edx
call fcn.004ba280
add esp, 0xc
push 0
push 0x1c
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x17c
call fcn.00401340
push eax
lea ecx, [ebp - 0x854]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x854]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f88e
mov dword [ebp - 0x86c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x86c]
jmp 0x45f8ad
mov dword [ebp - 0x870], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00426800
mov eax, dword [ebp - 0x870]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 4