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

Disassembly:
push 0xffffffffffffffff
push 0x5b250c
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], ebp
cmp ebp, ebx
je 0x47f767
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov dword [esp + 0x238], ebx
cmp ebp, ebx
je 0x47f963
cmp dword [esi + 4], ebx
je 0x47f963
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x23c], 1
push ebp
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00480ae0
test eax, eax
jne 0x47f7c3
mov byte [esp + 0x238], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47f7b3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x238], 0xffffffff
jmp 0x47f972
push 0x208
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.0058e300
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0x19
lea eax, [esp + 0x2c]
push eax
push ebx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00406c20
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, 0x5d4b20
mov byte [esp + 0x240], 2
call fcn.00406330
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 8
push eax
lea eax, [esp + 0x28]
push eax
call edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f84b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f935
push 0x104
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0058e300
add esp, 0xc
push 1
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00406c20
push eax
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x5d4b20
mov byte [esp + 0x240], 3
call fcn.00406330
mov eax, dword [eax]
add esp, 8
push eax
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.004066e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 1
call fcn.004066e0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f935
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov esi, eax
push eax
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x3c]
push esi
mov edi, eax
call edx
lea ecx, [esp + 0x24]
push ecx
mov edx, edi
mov ecx, eax
call fcn.00527b8c
add esp, 4
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47f94d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x238], 0xffffffff
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
jmp 0x47f97b
mov dword [esp + 0x238], 0xffffffff
cmp ebp, ebx
je 0x47f97b
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005886fc
add esp, 0x228
ret 4