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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a47b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x2e
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48ee02
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.004e7673
xor edx, edx
mov word [eax], dx
add esp, 8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
call fcn.004595b0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, str._rplsp_rplCodecs
mov dword [ebp - 4], 0
call fcn.0045ce00
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x48ee09
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ede0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x48ee02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48f33a
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea eax, [ebp - 0x224]
push eax
mov ebx, str.atrc.dll
mov byte [ebp - 4], 2
call fcn.0045ce00
add esp, 0x10
mov ebx, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ee66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x228]
push ecx
mov ecx, 0x51a1b4
call fcn.004595b0
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x224]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x248], esp
mov esi, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [esi], eax
call fcn.0048f360
test eax, eax
jne 0x48eef9
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48eecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48edbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x48edbb
mov esi, dword [ebp - 0x228]
mov ecx, str.10.0.0.3083
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48ef2a
test dx, dx
je 0x48ef26
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48ef2a
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x48ef06
xor eax, eax
jmp 0x48ef2e
sbb eax, eax
sbb eax, edi
test eax, eax
jns 0x48ef7e
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ef50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48edbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x48edbb
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea eax, [ebp - 0x234]
push eax
mov ebx, str.cook.dll
mov byte [ebp - 4], 6
call fcn.0045ce00
add esp, 0x10
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48efd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x51a1b4
call fcn.004595b0
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x234]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x248], esp
mov esi, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [esi], eax
call fcn.0048f360
test eax, eax
je 0x48f279
mov eax, dword [ebp - 0x230]
mov ecx, str.10.0.0.2389
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48f04a
test dx, dx
je 0x48f046
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48f04a
add eax, 4
add ecx, 4
test dx, dx
jne 0x48f024
xor eax, eax
jmp 0x48f04e
sbb eax, eax
sbb eax, edi
test eax, eax
js 0x48f279
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea edx, [ebp - 0x23c]
push edx
mov ebx, str.drvc.dll
mov byte [ebp - 4], 0xa
call fcn.0045ce00
add esp, 0x10
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xc
call fcn.004591f0
lea eax, [ebp - 0x238]
push eax
mov ecx, 0x51a1b4
call fcn.004595b0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x23c]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x248], esp
mov esi, esp
call fcn.0045cfd0
add eax, 0x10
mov dword [esi], eax
call fcn.0048f360
test eax, eax
je 0x48f263
mov eax, dword [ebp - 0x238]
mov ecx, str.10.0.0.1740
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48f10c
test dx, dx
je 0x48f108
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48f10c
add eax, 4
add ecx, 4
test dx, dx
jne 0x48f0e6
xor eax, eax
jmp 0x48f110
sbb eax, eax
sbb eax, edi
test eax, eax
js 0x48f263
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea ecx, [ebp - 0x240]
push ecx
mov ebx, str.dnet3260.dll
mov byte [ebp - 4], 0xe
call fcn.0045ce00
add esp, 0x10
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x10
call fcn.004591f0
mov edx, dword [ebp - 0x240]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call esi
test eax, eax
je 0x48f258
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x248]
push ecx
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea edx, [ebp - 0x244]
push edx
mov ebx, str.raac.dll
mov byte [ebp - 4], 0x11
call fcn.0045ce00
add esp, 0x10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x13
call fcn.004591f0
mov eax, dword [ebp - 0x244]
push eax
call esi
test eax, eax
je 0x48f24d
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov ebx, str._rplsp
call fcn.0045ce00
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 0x14
call fcn.0045cee0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x13
call fcn.004591f0
mov eax, edi
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov ebx, 0x51d5c8
call fcn.0045ce00
push eax
lea edx, [ebp - 0x24c]
push edx
mov ebx, str.pncrt.dll
mov byte [ebp - 4], 0x15
call fcn.0045ce00
add esp, 0x10
lea ecx, [ebp - 0x22c]
call fcn.004591f0
mov eax, dword [ebp - 0x24c]
push eax
call esi
lea ecx, [ebp - 0x24c]
test eax, eax
jne 0x48f2c2
call fcn.004591f0
lea ecx, [ebp - 0x244]
call fcn.004591f0
lea ecx, [ebp - 0x240]
call fcn.004591f0
lea ecx, [ebp - 0x238]
call fcn.004591f0
lea ecx, [ebp - 0x23c]
call fcn.004591f0
lea ecx, [ebp - 0x230]
call fcn.004591f0
lea ecx, [ebp - 0x234]
call fcn.004591f0
lea ecx, [ebp - 0x228]
call fcn.004591f0
lea ecx, [ebp - 0x224]
call fcn.004591f0
lea ecx, [ebp - 0x21c]
call fcn.004591f0
lea ecx, [ebp - 0x220]
call fcn.004591f0
xor eax, eax
jmp 0x48f33a
call fcn.004591f0
lea ecx, [ebp - 0x244]
call fcn.004591f0
lea ecx, [ebp - 0x240]
call fcn.004591f0
lea ecx, [ebp - 0x238]
call fcn.004591f0
lea ecx, [ebp - 0x23c]
call fcn.004591f0
lea ecx, [ebp - 0x230]
call fcn.004591f0
lea ecx, [ebp - 0x234]
call fcn.004591f0
lea ecx, [ebp - 0x228]
call fcn.004591f0
lea ecx, [ebp - 0x224]
call fcn.004591f0
lea ecx, [ebp - 0x21c]
call fcn.004591f0
lea ecx, [ebp - 0x220]
call fcn.004591f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret