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

Disassembly:
push 0xffffffffffffffff
push 0x47854c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x260], eax
push ebp
push esi
push edi
mov eax, dword [0x49a670]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
push 0x206
lea eax, [esp + 0x6e]
push ebp
push eax
mov dword [esp + 0x288], ebp
mov word [esp + 0x74], bp
call fcn.0042cac0
add esp, 0xc
push ebp
push 0x1a
lea ecx, [esp + 0x70]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d50e
cmp dword [esp + 0x64], 8
jb 0x40d507
mov edx, dword [esp + 0x50]
push edx
call fcn.0042397c
add esp, 4
xor eax, eax
jmp 0x40d70e
lea edi, [esp + 0x68]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x40d515
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
lea eax, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40d534
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x54]
call fcn.00401850
mov edi, 7
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.004242e6
push 6
push 0x480ee0
lea ecx, [esp + 0x54]
mov byte [esp + 0x284], 2
call fcn.00406100
mov eax, dword [esp + 0x50]
mov esi, 8
cmp dword [esp + 0x64], esi
jae 0x40d5a0
lea eax, [esp + 0x50]
push ebp
push eax
lea ecx, [esp + 0x20]
call fcn.00424374
cmp eax, ebp
je 0x40d666
lea ecx, [esp + 0x18]
call fcn.00423fe1
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004242a9
test eax, eax
jne 0x40d656
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
jne 0x40d656
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004246aa
mov edx, dword [eax]
mov eax, edx
mov byte [esp + 0x27c], 3
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40d600
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00401850
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x27c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], ebp
je 0x40d656
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00404a30
cmp edi, ebp
jne 0x40d5b3
mov esi, 8
lea edi, [esi - 1]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, ebp
je 0x40d68b
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40d6c5
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.0042430c
cmp dword [esp + 0x48], esi
jb 0x40d6af
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042397c
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
jmp 0x40d4f8
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.0042430c
cmp dword [esp + 0x48], esi
jb 0x40d6e9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042397c
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
jb 0x40d709
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042397c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0042caa2
add esp, 0x270
ret