Function at 0x406270
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x450398]
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
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4063e4
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4062e2
mov eax, dword [0x4462a4]
mov dword [edi], eax
lea eax, [ebp - 0x21c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406300
mov ecx, dword [0x4465c8]
mov edx, dword [0x4465cc]
mov dword [eax], ecx
mov ecx, dword [0x4465d0]
mov dword [eax + 4], edx
mov edx, dword [0x4465d4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4465d8]
mov dword [eax + 0xc], edx
mov dx, word [0x4465dc]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 4
push str..
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
add esp, 4
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00413b80
lea eax, [ebp - 0x224]
push eax
call fcn.004027d0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
or esi, 0xffffffff
add esp, 4
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4063e7
or esi, 0xffffffff
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40651f
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406423
mov eax, dword [0x4462a4]
mov dword [edi], eax
lea eax, [ebp - 0x21c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406440
mov ecx, dword [0x4465c8]
mov edx, dword [0x4465cc]
mov dword [eax], ecx
mov ecx, dword [0x4465d0]
mov dword [eax + 4], edx
mov edx, dword [0x4465d4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4465d8]
mov dword [eax + 0xc], edx
mov dx, word [0x4465dc]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 4
push str..
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
add esp, 4
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00413b80
lea eax, [ebp - 0x224]
push eax
call fcn.004027d0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40651f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4065c0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 2
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4065c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406661
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406661
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406702
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 4
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x18
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4067a1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 5
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, ebx
push ecx
call fcn.004027d0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4067a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x21c]
push edx
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
js 0x40696b
cmp word [ebp - 0x21c], 0
je 0x40696b
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 0x2a
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea ebx, [ebp - 0x220]
mov dword [ebp - 4], 6
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, dword [ebp - 0x220]
push ecx
call edi
test eax, eax
je 0x40683f
mov byte [0x452bb9], 1
lea edx, [ebp - 0x220]
push edx
call fcn.004027d0
lea eax, [ebp - 0x21c]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406857
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push ecx
lea edx, [ebp - 0x220]
push edx
mov ebx, eax
call fcn.00416d10
push 0x3e
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ebx, [ebp - 0x220]
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov eax, dword [ebp - 0x220]
push eax
call edi
test eax, eax
je 0x4068b9
mov byte [0x452bba], 1
lea ecx, [ebp - 0x220]
push ecx
call fcn.004027d0
lea eax, [ebp - 0x21c]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068d1
sub eax, edx
lea edx, [ebp - 0x21c]
sar eax, 1
push edx
lea ecx, [ebp - 0x220]
push ecx
mov ebx, eax
call fcn.00416d10
push 0x40
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu_
lea ebx, [ebp - 0x220]
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov edx, dword [ebp - 0x220]
push edx
call edi
test eax, eax
je 0x406933
mov byte [0x452bbb], 1
lea eax, [ebp - 0x220]
push eax
call fcn.004027d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40696b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00429770
add esp, 0xc
push 0
push 0x23
lea edx, [ebp - 0x21c]
push edx
push 0
call esi
test eax, eax
js 0x406b2a
cmp word [ebp - 0x21c], 0
je 0x406b2a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b80
push 0x2a
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea ebx, [ebp - 0x224]
mov dword [ebp - 4], 7
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ecx, dword [ebp - 0x224]
push ecx
call edi
test eax, eax
je 0x4069fd
mov byte [0x452bc0], 1
lea edx, [ebp - 0x224]
push edx
call fcn.004027d0
lea eax, [ebp - 0x21c]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a15
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push ecx
lea edx, [ebp - 0x224]
push edx
mov ebx, eax
call fcn.00416d10
push 0x3e
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ebx, [ebp - 0x224]
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov eax, dword [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x406a77
mov byte [0x452bc1], 1
lea ecx, [ebp - 0x224]
push ecx
call fcn.004027d0
lea eax, [ebp - 0x21c]
add esp, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a90
sub eax, edx
lea edx, [ebp - 0x21c]
sar eax, 1
push edx
lea ecx, [ebp - 0x224]
push ecx
mov ebx, eax
call fcn.00416d10
push 0x40
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu_
lea ebx, [ebp - 0x224]
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov edx, dword [ebp - 0x224]
push edx
call edi
test eax, eax
je 0x406af2
mov byte [0x452bc2], 1
lea eax, [ebp - 0x224]
push eax
call fcn.004027d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004267a3
mov esp, ebp
pop ebp
ret