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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5709d1
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x488
call fcn.004a6180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x26c]
add eax, 0x6ac
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x22c]
call fcn.00438030
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00438030
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.0053c870
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.00438030
mov byte [ebp - 4], 2
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x4932fe
mov dword [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0044fc20
mov eax, dword [ebp - 0x234]
jmp 0x493719
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0041a580
push 0x584b28
lea ecx, [ebp - 0x228]
call fcn.004565d0
mov dword [ebp - 0x230], 0
jmp 0x49333b
mov edx, dword [ebp - 0x230]
add edx, 1
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x14]
jae 0x4936dd
mov ecx, dword [ebp - 0x26c]
add ecx, 0x6ac
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0041a580
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x488
call fcn.0045fcc0
push eax
lea ecx, [ebp - 0x22c]
call fcn.0045e6c0
lea ecx, [ebp - 0x22c]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4933b0
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x4936d8
push 0x584b2c
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.004366f0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00438070
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.0044fc20
cmp dword [ebp - 0x238], 0
je 0x49342d
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x4936d8
push 0x584b38
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.004366f0
add esp, 0xc
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00438070
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x244]
call fcn.0044fc20
cmp dword [ebp - 0x240], 0
je 0x4934aa
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x4936d8
push 0x584b44
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x488
call fcn.0045fcc0
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00436640
add esp, 0xc
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x284]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.004366f0
add esp, 0xc
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00438070
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call fcn.0044fc20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.0044fc20
cmp dword [ebp - 0x248], 0
je 0x49357b
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x4936d8
push str..url
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x488
call fcn.0045fcc0
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00436640
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x294], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.004366f0
add esp, 0xc
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00438070
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x25c]
call fcn.0044fc20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.0044fc20
cmp dword [ebp - 0x254], 0
je 0x49364c
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x4936d8
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x488
call fcn.0045fcc0
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00436640
add esp, 0xc
mov dword [ebp - 0x2a0], eax
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00438070
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.0044fc20
cmp dword [ebp - 0x260], 0
je 0x4936d8
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004368d0
jmp 0x49332c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0044fc20
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 4