Function at 0x402070
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4574ec
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4754f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebx + 8]
xor edi, edi
mov dword [ebx], 2
mov dword [ebx + 4], 2
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], esi
mov dword [esi], edi
push 8
mov dword [ebp - 4], edi
call fcn.00426610
add esp, 4
cmp eax, edi
je 0x4023d2
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
lea edi, [ebx + 0x28]
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x44c], edi
mov dword [edi], esi
push 8
mov byte [ebp - 4], 2
call fcn.00426610
add esp, 4
cmp eax, esi
je 0x402339
mov dword [edi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [edi]
mov dword [edx], edi
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], ax
lea edi, [ebx + 0x48]
mov dword [ebp - 0x44c], edi
mov dword [edi], esi
push 8
mov byte [ebp - 4], 4
call fcn.00426610
add esp, 4
cmp eax, esi
je 0x40239f
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], dx
lea eax, [ebx + 0x68]
push eax
mov edi, 0x466868
mov byte [ebp - 4], 5
call fcn.00406610
lea edi, [ebx + 0x88]
mov dword [ebp - 0x44c], edi
mov dword [edi], esi
push 8
mov byte [ebp - 4], 7
call fcn.00426610
add esp, 4
cmp eax, esi
je 0x40236c
mov dword [edi], eax
mov dword [eax + 4], esi
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [edi]
mov dword [ecx], edi
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], dx
lea edi, [ebx + 0xa8]
mov dword [ebp - 0x44c], edi
mov dword [edi], esi
push 8
mov byte [ebp - 4], 9
call fcn.00426610
add esp, 4
cmp eax, esi
je 0x402339
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], cx
push 0x1fe
lea eax, [ebp - 0x20e]
mov byte [ebp - 4], 0xa
push esi
push eax
mov dword [ebx + 0xc8], esi
mov word [ebp - 0x210], dx
call fcn.0042c300
add esp, 0xc
push esi
push 0x23
lea ecx, [ebp - 0x210]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.FunshionMediaLibrary
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402260
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
lea ecx, [ebx + 0xa8]
call fcn.004098d0
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4022a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x418]
lea ecx, [ebx + 8]
call fcn.004098d0
lea esi, [ebp - 0x438]
call fcn.004153e0
mov esi, eax
lea edi, [ebx + 0x28]
mov byte [ebp - 4], 0xb
call fcn.00408120
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x420], 8
jb 0x4022f3
mov ecx, dword [ebp - 0x434]
push ecx
call fcn.00425770
add esp, 4
lea eax, [ebp - 0x438]
xor edx, edx
push eax
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], 0
mov word [ebp - 0x434], dx
call fcn.00409010
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420d00
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x43c], esi
call fcn.004211a0
push 0x46ffcc
lea edx, [ebp - 0x448]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
mov dword [ebp - 0x43c], esi
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x448]
call fcn.004211a0
push 0x46ffcc
lea ecx, [ebp - 0x448]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x43c], esi
call fcn.004211a0
push 0x46ffcc
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
mov dword [ebp - 0x43c], edi
jmp 0x402372