Function at 0x10002070
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024786
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1002f490]
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
mov eax, dword [0x10032e88]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x10032e84
call fcn.10005ef0
mov eax, dword [0x10032e88]
mov dword [eax + 4], eax
mov eax, dword [0x10032e88]
mov dword [eax], eax
mov eax, dword [0x10032e88]
mov dword [eax + 8], eax
mov edx, dword [0x10032e98]
xor ebx, ebx
mov dword [0x10032e8c], ebx
mov eax, dword [edx + 4]
push eax
mov ecx, 0x10032e94
call fcn.10005ef0
mov eax, dword [0x10032e98]
mov dword [eax + 4], eax
mov eax, dword [0x10032e98]
mov dword [eax], eax
mov eax, dword [0x10032e98]
mov dword [eax + 8], eax
push ebx
mov dword [0x10032e9c], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x41c]
push ecx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10002130
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x320]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edx, edx
lea eax, [ebp - 0x320]
mov word [ebp - 0x374], dx
mov dword [ebp - 0x360], 7
mov dword [ebp - 0x364], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002165
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x320]
lea ecx, [ebp - 0x374]
call fcn.10006b60
mov edi, 8
push edi
mov eax, 0x1002820c
lea ecx, [ebp - 0x374]
mov dword [ebp - 4], ebx
call fcn.10006a80
mov eax, dword [ebp - 0x374]
cmp dword [ebp - 0x360], edi
jae 0x100021b3
lea eax, [ebp - 0x374]
mov edx, dword [ebp - 0x364]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push edx
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push 0xb
mov eax, str.XyHelper.db
lea ecx, [ebp - 0x374]
call fcn.10006a80
push 0x104
lea ecx, [ebp - 0x118]
push ebx
push ecx
call fcn.1001ca20
mov eax, dword [ebp - 0x374]
add esp, 0xc
cmp dword [ebp - 0x360], edi
jae 0x1000221b
lea eax, [ebp - 0x374]
mov ecx, dword [ebp - 0x364]
push ebx
push ebx
push 0x104
lea edx, [ebp - 0x118]
push edx
push ecx
push eax
push ebx
push ebx
call esi
lea edx, [ebp - 0x118]
push 0x10028238
push edx
xor edi, edi
call fcn.10013a7d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100022be
push esi
call fcn.1001348c
add esp, 4
push 2
push ebx
push esi
call fcn.100143c0
add esp, 0xc
push esi
call fcn.100142d1
add esp, 4
push eax
mov dword [ebp - 0x41c], eax
call fcn.10012f50
mov edi, eax
mov eax, dword [ebp - 0x41c]
add esp, 4
push eax
push ebx
push edi
call fcn.1001ca20
add esp, 0xc
push ebx
push ebx
push esi
call fcn.100143c0
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
push esi
push 1
push ecx
push edi
call fcn.10013ddf
mov edx, dword [ebp - 0x41c]
push esi
mov byte [edi + edx], bl
call fcn.100144fa
add esp, 0x14
mov ecx, edi
call fcn.10001bd0
mov esi, eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x424], esi
call fcn.10001b10
mov edx, esi
lea edi, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.1000d130
test al, al
je 0x100028f4
push ecx
mov eax, esp
mov esi, edi
mov dword [ebp - 0x420], esp
mov dword [eax], str.root
call fcn.1000d260
cmp al, bl
je 0x100028ee
mov ecx, dword [ebp - 0x3dc]
cmp ecx, ebx
je 0x10002354
cmp dword [ebp - 0x3cc], 1
jne 0x10002354
mov eax, dword [ebp - 0x3d8]
mov dword [ebp - 0x3e0], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3d8], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3cc], ecx
push ecx
mov eax, esp
lea esi, [ebp - 0x418]
mov dword [ebp - 0x420], esp
mov dword [eax], str.browser
call fcn.1000d260
cmp al, bl
je 0x1000261d
mov eax, esi
call fcn.1000df30
lea ecx, [ecx]
push ecx
mov eax, esp
lea esi, [ebp - 0x418]
mov dword [ebp - 0x420], esp
mov dword [eax], str.item
call fcn.1000d260
cmp al, bl
je 0x1000261d
mov eax, 0xf
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], ebx
mov byte [ebp - 0x358], bl
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x32c], ebx
mov byte [ebp - 0x33c], bl
push ecx
mov eax, esp
mov byte [ebp - 4], 3
mov dword [eax], 0x10028254
mov eax, esi
mov dword [ebp - 0x420], esp
call fcn.1000d300
cmp al, bl
je 0x10002427
lea esi, [ebp - 0x390]
lea ecx, [ebp - 0x418]
call fcn.10001bb0
mov edi, eax
lea esi, [ebp - 0x358]
mov byte [ebp - 4], 4
call fcn.10005ad0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x37c], 0x10
jb 0x10002427
mov edx, dword [ebp - 0x390]
push edx
call fcn.10012768
add esp, 4
push ecx
mov eax, esp
mov dword [eax], 0x10028258
lea eax, [ebp - 0x418]
mov dword [ebp - 0x420], esp
call fcn.1000d300
cmp al, bl
je 0x10002483
lea esi, [ebp - 0x390]
lea ecx, [ebp - 0x418]
call fcn.10001bb0
mov edi, eax
lea esi, [ebp - 0x33c]
mov byte [ebp - 4], 5
call fcn.10005ad0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x37c], 0x10
jb 0x10002483
mov eax, dword [ebp - 0x390]
push eax
call fcn.10012768
add esp, 4
mov esi, dword [ebp - 0x348]
lea esi, [esi + esi + 2]
push esi
call fcn.10012f50
add esp, 4
push esi
push ebx
push eax
mov dword [ebp - 0x41c], eax
call fcn.1001ca20
mov esi, dword [ebp - 0x32c]
add esp, 0xc
lea esi, [esi + esi + 2]
push esi
call fcn.10012f50
add esp, 4
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x420], edi
call fcn.1001ca20
mov ecx, dword [ebp - 0x358]
add esp, 0xc
cmp dword [ebp - 0x344], 0x10
jae 0x100024e2
lea ecx, [ebp - 0x358]
mov eax, dword [ebp - 0x348]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [eax + eax + 2]
push edx
mov edx, dword [ebp - 0x41c]
push edx
push eax
push ecx
push ebx
push ebx
call esi
cmp dword [ebp - 0x328], 0x10
mov ecx, dword [ebp - 0x33c]
jae 0x10002515
lea ecx, [ebp - 0x33c]
mov eax, dword [ebp - 0x32c]
lea edx, [eax + eax + 2]
push edx
push edi
push eax
push ecx
push ebx
push ebx
call esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x3ac]
push edx
call fcn.10008060
lea ecx, [ebp - 0x3ac]
mov edx, 0x10032e84
mov byte [ebp - 4], 6
call fcn.10008110
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x10032e84
call fcn.10007b80
mov esi, 8
cmp dword [ebp - 0x37c], esi
jb 0x10002583
mov ecx, dword [ebp - 0x390]
push ecx
call fcn.10012768
add esp, 4
xor edx, edx
mov dword [ebp - 0x37c], 7
mov dword [ebp - 0x380], ebx
mov word [ebp - 0x390], dx
cmp dword [ebp - 0x398], esi
jb 0x100025b3
mov eax, dword [ebp - 0x3ac]
push eax
call fcn.10012768
add esp, 4
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.10012d61
add esp, 4
push edi
call fcn.10012d61
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x328], esi
jb 0x100025e7
mov edx, dword [ebp - 0x33c]
push edx
call fcn.10012768
add esp, 4
mov dword [ebp - 0x328], 0xf
mov dword [ebp - 0x32c], ebx
mov byte [ebp - 0x33c], bl
cmp dword [ebp - 0x344], esi
jb 0x10002380
mov eax, dword [ebp - 0x358]
push eax
call fcn.10012768
add esp, 4
jmp 0x10002380
lea eax, [ebp - 0x418]
call fcn.1000df70
push ecx
mov eax, esp
lea esi, [ebp - 0x418]
mov dword [ebp - 0x420], esp
mov dword [eax], 0x10028258
call fcn.1000d260
cmp al, bl
je 0x100028ee
mov eax, esi
call fcn.1000df30
push ecx
mov eax, esp
lea esi, [ebp - 0x418]
mov dword [ebp - 0x420], esp
mov dword [eax], str.item
call fcn.1000d260
cmp al, bl
je 0x100028ee
mov eax, 0xf
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], ebx
mov byte [ebp - 0x358], bl
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x32c], ebx
mov byte [ebp - 0x33c], bl
push ecx
mov eax, esp
mov byte [ebp - 4], 8
mov dword [eax], 0x10028254
mov eax, esi
mov dword [ebp - 0x420], esp
call fcn.1000d300
cmp al, bl
je 0x100026f8
lea esi, [ebp - 0x390]
lea ecx, [ebp - 0x418]
call fcn.10001bb0
mov edi, eax
lea esi, [ebp - 0x358]
mov byte [ebp - 4], 9
call fcn.10005ad0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x37c], 0x10
jb 0x100026f8
mov ecx, dword [ebp - 0x390]
push ecx
call fcn.10012768
add esp, 4
push ecx
mov eax, esp
mov dword [eax], 0x10028258
lea eax, [ebp - 0x418]
mov dword [ebp - 0x420], esp
call fcn.1000d300
cmp al, bl
je 0x10002754
lea esi, [ebp - 0x390]
lea ecx, [ebp - 0x418]
call fcn.10001bb0
mov edi, eax
lea esi, [ebp - 0x33c]
mov byte [ebp - 4], 0xa
call fcn.10005ad0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x37c], 0x10
jb 0x10002754
mov edx, dword [ebp - 0x390]
push edx
call fcn.10012768
add esp, 4
mov esi, dword [ebp - 0x348]
lea esi, [esi + esi + 2]
push esi
call fcn.10012f50
add esp, 4
push esi
push ebx
push eax
mov dword [ebp - 0x41c], eax
call fcn.1001ca20
mov esi, dword [ebp - 0x32c]
add esp, 0xc
lea esi, [esi + esi + 2]
push esi
call fcn.10012f50
add esp, 4
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x420], edi
call fcn.1001ca20
mov ecx, dword [ebp - 0x358]
add esp, 0xc
cmp dword [ebp - 0x344], 0x10
jae 0x100027b3
lea ecx, [ebp - 0x358]
mov eax, dword [ebp - 0x348]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [eax + eax + 2]
push edx
mov edx, dword [ebp - 0x41c]
push edx
push eax
push ecx
push ebx
push ebx
call esi
cmp dword [ebp - 0x328], 0x10
mov ecx, dword [ebp - 0x33c]
jae 0x100027e6
lea ecx, [ebp - 0x33c]
mov eax, dword [ebp - 0x32c]
lea edx, [eax + eax + 2]
push edx
push edi
push eax
push ecx
push ebx
push ebx
call esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x3ac]
push edx
call fcn.10008060
lea ecx, [ebp - 0x3ac]
mov edx, 0x10032e94
mov byte [ebp - 4], 0xb
call fcn.10008110
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x10032e94
call fcn.10007b80
mov esi, 8
cmp dword [ebp - 0x37c], esi
jb 0x10002854
mov ecx, dword [ebp - 0x390]
push ecx
call fcn.10012768
add esp, 4
xor edx, edx
mov dword [ebp - 0x37c], 7
mov dword [ebp - 0x380], ebx
mov word [ebp - 0x390], dx
cmp dword [ebp - 0x398], esi
jb 0x10002884
mov eax, dword [ebp - 0x3ac]
push eax
call fcn.10012768
add esp, 4
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.10012d61
add esp, 4
push edi
call fcn.10012d61
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x328], esi
jb 0x100028b8
mov edx, dword [ebp - 0x33c]
push edx
call fcn.10012768
add esp, 4
mov dword [ebp - 0x328], 0xf
mov dword [ebp - 0x32c], ebx
mov byte [ebp - 0x33c], bl
cmp dword [ebp - 0x344], esi
jb 0x10002651
mov eax, dword [ebp - 0x358]
push eax
call fcn.10012768
add esp, 4
jmp 0x10002651
mov esi, dword [ebp - 0x424]
push esi
call fcn.10012768
add esp, 4
lea ecx, [ebp - 0x418]
push ecx
mov byte [ebp - 4], bl
call fcn.1000d030
cmp dword [ebp - 0x360], 8
jb 0x10002924
mov edx, dword [ebp - 0x374]
push edx
call fcn.10012768
add esp, 4
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.10012773
mov esp, ebp
pop ebp
ret