Function at 0x4bf5f0
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c73e4
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x328
mov eax, dword [0x66a8c4]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x2d0], ecx
push 0x66e36c
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a5c0
add esp, 8
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 4], 0
push 0x5d838c
mov edx, dword [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2e0]
push edx
mov ecx, dword [ebp - 0x2d0]
add ecx, 0x50
call fcn.004013f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.00403d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fc]
call fcn.00403d10
push 1
push 0x64
push 0x5d8398
mov ecx, dword [ebp - 0x2d0]
add ecx, 0x50
call fcn.00403c80
push eax
push reloc.WS2_32.dll_accept
lea eax, [ebp - 0x234]
push eax
call fcn.005bfa60
add esp, 0x18
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x2e8]
push edx
mov ecx, dword [ebp - 0x2d0]
add ecx, 0x34
call fcn.004013f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00403d10
lea ecx, [ebp - 0x13c]
call fcn.00403ca0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2d0]
call fcn.004bf520
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea edx, [ebp - 0x11f]
push edx
call fcn.00591690
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ecx, 0x66e36c
call fcn.00403c80
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x5d83a4
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x5d83ac
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00404560
mov byte [ebp - 4], 4
push 1
lea edx, [ebp - 0x250]
push edx
push 0x66e4bc
lea eax, [ebp - 0x26c]
push eax
call fcn.0041b9d0
add esp, 0x10
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2f0]
push edx
mov ecx, dword [ebp - 0x2d0]
add ecx, 0x18
call fcn.004013f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x26c]
call fcn.00403d10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00403d10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x188]
call fcn.005b6a00
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x13c]
call fcn.00403c80
mov dword [ebp - 0x2f8], eax
push 1
push 0
mov eax, dword [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x188]
call fcn.005b8b10
lea ecx, [ebp - 0x188]
call fcn.00415520
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0
je 0x4bfadd
push 0x5d83b4
mov ecx, dword [ebp - 0x140]
call fcn.005b6060
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x18c], edx
cmp dword [ebp - 0x18c], 0
je 0x4bfadd
push 0x5d83bc
mov ecx, dword [ebp - 0x18c]
call fcn.005b73a0
mov dword [ebp - 0x304], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x270], esp
mov eax, dword [ebp - 0x304]
push eax
call fcn.00404560
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.004c9650
add esp, 0x20
mov dword [ebp - 0x30c], eax
mov byte [ebp - 4], 8
push 0x5d83c4
mov ecx, dword [ebp - 0x18c]
call fcn.005b73a0
mov dword [ebp - 0x310], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x274], esp
mov edx, dword [ebp - 0x310]
push edx
call fcn.00404560
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.004c9650
add esp, 0x20
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c4]
call fcn.00408810
mov byte [ebp - 0x319], al
movzx ecx, byte [ebp - 0x319]
test ecx, ecx
jne 0x4bfa98
lea ecx, [ebp - 0x1a8]
call fcn.00408810
mov byte [ebp - 0x31a], al
movzx edx, byte [ebp - 0x31a]
test edx, edx
jne 0x4bfa98
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x290]
call fcn.00404560
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0xa
push 1
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x1a8]
push edx
lea eax, [ebp - 0x1e0]
push eax
call fcn.0041b9d0
add esp, 0x10
mov dword [ebp - 0x324], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x290]
call fcn.00403d10
lea ecx, [ebp - 0x1e0]
call fcn.00408810
mov byte [ebp - 0x325], al
movzx ecx, byte [ebp - 0x325]
test ecx, ecx
jne 0x4bfa89
lea ecx, [ebp - 0x1e0]
call fcn.00403c80
mov dword [ebp - 0x32c], eax
mov edx, dword [ebp - 0x32c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4bfa89
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.004bfb90
mov dword [ebp - 0x330], eax
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x334], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x334]
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.004bffe0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c8]
call fcn.004bc800
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1e0]
call fcn.00403d10
push str.skin
mov ecx, dword [ebp - 0x18c]
call fcn.005b60a0
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x18c], ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.00403d10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c4]
call fcn.00403d10
jmp 0x4bf8c6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x188]
call fcn.004154f0
jmp 0x4bfafb
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2d0]
add ecx, 0x18
call fcn.00408810
movzx edx, al
test edx, edx
je 0x4bfb4a
mov ecx, dword [ebp - 0x2d0]
call fcn.004bff70
movzx eax, al
test eax, eax
je 0x4bfb4a
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00403d10
mov al, byte [ebp - 0x2c9]
jmp 0x4bfb69
mov byte [ebp - 0x2ca], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00403d10
mov al, byte [ebp - 0x2ca]
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.00590c4b
mov esp, ebp
pop ebp
ret 4