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

Disassembly:
sub esp, 0xc38
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0xc34], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0xa46]
push ecx
mov dword [esp + 0x1c], esi
xor edi, edi
xor ebx, ebx
xor ebp, ebp
mov word [esp + 0xa48], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x84a]
push eax
mov word [esp + 0x84c], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x446]
push edx
mov word [esp + 0x448], cx
call fcn.004e9ba0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x65a]
push ecx
mov word [esp + 0x65c], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4e]
push eax
mov word [esp + 0x50], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x262]
push edx
mov word [esp + 0x264], cx
call fcn.004e9ba0
add esp, 0x48
push ebp
push 0x1a
lea eax, [esp + 0xa44]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
jmp 0x4a59b0
movzx ecx, word [esp + eax + 0xa3c]
mov word [esp + eax + 0x14], cx
add eax, 2
test cx, cx
jne 0x4a59b0
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.004e9c3b
add esp, 8
test eax, eax
jne 0x4a59df
mov ecx, esi
jmp 0x4a5bd8
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x4a59f0
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x834], cx
add eax, 2
test cx, cx
jne 0x4a59f0
lea eax, [esp + 0x834]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5a10
mov ecx, dword [str.Local]
mov edx, dword [0x614704]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [eax], ecx
mov ecx, dword [0x614708]
mov dword [eax + 4], edx
mov dx, word [0x61470c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x834]
push eax
call esi
test eax, eax
je 0x4a5a5a
mov edi, 1
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x424], cx
add eax, 2
test cx, cx
jne 0x4a5a60
lea eax, [esp + 0x424]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5a80
mov ecx, dword [str.LocalLow]
mov edx, dword [0x6146f0]
mov dword [eax], ecx
mov ecx, dword [0x6146f4]
mov dword [eax + 4], edx
mov edx, dword [0x6146f8]
mov dword [eax + 8], ecx
mov ecx, dword [0x6146fc]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x424]
push edx
mov dword [eax + 0x10], ecx
call esi
test eax, eax
je 0x4a5acb
mov ebx, 1
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x62c], cx
add eax, 2
test cx, cx
jne 0x4a5ad0
lea eax, [esp + 0x62c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5af0
mov ecx, dword [str.Roaming]
mov edx, dword [0x6146dc]
mov dword [eax], ecx
mov ecx, dword [0x6146e0]
mov dword [eax + 4], edx
mov edx, dword [0x6146e4]
mov dword [eax + 8], ecx
mov cx, word [0x6146e8]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x62c]
push edx
mov word [eax + 0x10], cx
call esi
test eax, eax
je 0x4a5b3d
mov ebp, 1
test edi, edi
je 0x4a5bd2
test ebx, ebx
je 0x4a5bd2
test ebp, ebp
je 0x4a5bd2
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004a3870
test eax, eax
je 0x4a5bd6
push 0x5fea14
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x224]
push str._s_s_
push ecx
call fcn.00403b80
add esp, 0x10
lea edx, [esp + 0x21c]
push edx
call esi
test eax, eax
jne 0x4a5ba4
lea eax, [esp + 0x21c]
push eax
call fcn.004a6000
add esp, 4
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5bb0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x220]
push ecx
lea ecx, [edi + 0x3c]
call fcn.00401c70
jmp 0x4a5bdd
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004a5640
mov ecx, dword [esp + 0xc44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0xc38
ret