Function at 0x10007c00
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x10083440
call fcn.1006a09e
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov eax, dword [0x100b27b4]
mov ebx, 0x100b27b4
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x104
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10002938
push eax
push edi
push edi
push 0x801a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x18], eax
call fcn.10002668
cmp dword [ebp - 0x18], edi
setge al
test al, al
jne 0x10007d45
mov eax, dword [0x100b27b4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str.GetOCDownloadDirectoryWide_SHGetFolderPath_error_HRESULT:__d
mov byte [ebp - 4], 2
call fcn.1000261c
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
push edi
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
mov dword [ebp - 0x18], eax
call fcn.10002aac
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, 0x10099af8
call fcn.10002a34
mov byte [ebp - 4], 4
call fcn.1001a54d
push eax
mov byte [ebp - 4], 2
call fcn.1001eb8c
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x10099b5c
call edi
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.10002938
push eax
push 0x10099b6c
call edi
mov edi, eax
call fcn.10002668
test edi, edi
mov edi, dword [ebp - 0x14]
jbe 0x10007d02
cmp dword [edi - 0xc], 0
mov byte [ebp - 0xd], 1
jne 0x10007d06
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10002b29
cmp byte [ebp - 0xd], 0
jne 0x10007d48
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.10002b29
push dword [ebp + 8]
mov ecx, str.C:_temp
call fcn.10002a34
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10002b29
mov eax, dword [ebp + 8]
call fcn.1006a176
ret
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, str.OpenCandy
call fcn.10002a34
push ecx
mov byte [ebp - 4], 5
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.10002aac
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10009d65
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.100023e1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10002b29
mov esi, dword [ebp - 0x14]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.10002aac
add eax, 0x10
mov dword [edi], eax
call fcn.10007b4e
pop ecx
test al, al
jne 0x10007e56
push ecx
mov eax, esi
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.10002aac
add eax, 0x10
mov dword [edi], eax
call fcn.1000a411
pop ecx
test al, al
jne 0x10007e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x100b27b4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
push 0x10099b80
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.1000261c
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push 0
push 1
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.10002aac
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 8
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
mov ecx, str.GetOCDownloadDirectoryWide_SHGetFolderPath_error
call fcn.10002a34
mov byte [ebp - 4], 9
call fcn.1001a54d
push eax
mov byte [ebp - 4], 7
call fcn.1001eb8c
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10002b29
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x10007e7c
push 0x10099b7c
lea eax, [ebp - 0x14]
push eax
call fcn.1000407f
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.10004293
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.10002aac
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.10002b29
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10002b29
mov eax, edi
jmp 0x10007d3f