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

Disassembly:
push 0xffffffffffffffff
push 0x4ab394
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x284]
xor edi, edi
mov dword [esp + 0x27c], edi
mov ebx, edx
mov dword [esp + 0x24], edi
push 0xffffffffffffffff
mov esi, ecx
push edi
lea eax, [ebx + 0xc]
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
call fcn.00406430
mov eax, 1
mov dword [esp + 0x27c], eax
cmp dword [esi + 0x64], eax
jne 0x413e84
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
lea ecx, [esi + 0x90]
push ecx
mov ecx, dword [esi + 0x58]
push edx
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00453430
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x284], 2
call fcn.00455920
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], 3
call fcn.00406430
cmp dword [esp + 0x40], 8
jb 0x413e6b
mov edx, dword [esp + 0x2c]
push edx
call fcn.004692b1
add esp, 4
mov byte [esp + 0x27c], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x14], vtable.CAUEnv.0
call fcn.00406b70
cmp dword [esi + 0x64], 2
jne 0x413efb
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x5c]
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00452b10
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x284], 4
call fcn.00455920
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], 5
call fcn.00406430
cmp dword [esp + 0x40], 8
jb 0x413ee2
mov edx, dword [esp + 0x2c]
push edx
call fcn.004692b1
add esp, 4
mov byte [esp + 0x27c], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x14], vtable.CAUEnv.0
call fcn.00406b70
push 0x208
lea eax, [esp + 0x68]
push edi
push eax
call fcn.0048a580
mov ebx, dword [ebx + 8]
add esp, 0xc
sub ebx, edi
je 0x413f55
sub ebx, 1
je 0x413f4e
sub ebx, 1
je 0x413f47
lea ecx, [esp + 0x14]
call fcn.00483c47
push 0x4c04d0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], vtable.CUpdaterException.0
mov dword [esp + 0x28], 0xffffffff
call fcn.0048aacb
mov eax, 0x18
jmp 0x413f5a
mov eax, 0x17
jmp 0x413f5a
mov eax, 0x19
push edi
push eax
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], di
lea eax, [esp + 0x48]
push eax
mov ebx, str..lnk
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 1
call fcn.00407ff0
add esp, 4
mov esi, 8
mov byte [esp + 0x27c], 6
cmp dword [eax + 0x18], esi
jb 0x413fb1
mov eax, dword [eax + 4]
jmp 0x413fb4
add eax, 4
push ebp
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.0043df40
add esp, 4
cmp dword [esp + 0x40], esi
jb 0x413fd6
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x60], esi
jb 0x413fe9
mov edx, dword [esp + 0x4c]
push edx
call fcn.004692b1
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00483bf3
add esp, 0x26c
ret 4