Function at 0x40df60
Capabilities:
Get common file path

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
push ebp
push 0x1a
lea eax, [esp + 0x70]
push eax
push ebp
mov dword [esp + 0x20], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e191
lea edi, [esp + 0x68]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x40dfc0
mov ecx, 0x1f
mov esi, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
rep movsd dword es:[edi], dword [esi]
mov edi, 7
lea eax, [esp + 0x68]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40dff1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x54]
call fcn.00401850
mov dword [esp + 0x27c], ebp
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 0x40e05f
lea eax, [esp + 0x50]
push ebp
push eax
lea ecx, [esp + 0x20]
call fcn.00424374
cmp eax, ebp
je 0x40e128
lea ecx, [esp + 0x18]
call fcn.00423fe1
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004242a9
test eax, eax
jne 0x40e118
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
jne 0x40e118
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]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40e0c2
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 0x40e104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], ebp
je 0x40e118
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00404a30
cmp edi, ebp
jne 0x40e072
mov edi, 7
lea esi, [edi + 1]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, ebp
je 0x40e14d
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 0x40e195
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.0042430c
cmp dword [esp + 0x48], esi
jb 0x40e171
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
jb 0x40e191
mov edx, dword [esp + 0x50]
push edx
call fcn.0042397c
add esp, 4
xor eax, eax
jmp 0x40e1de
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.0042430c
cmp dword [esp + 0x48], esi
jb 0x40e1b9
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 0x40e1d9
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