Function at 0x4069b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
test eax, eax
jge 0x4069d0
mov ecx, dword [0x46a5a8]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x472618]
push esi
push edi
lea edi, [ecx + eax*2]
mov eax, 0x461d40
cmp dword [ebp + 8], eax
mov esi, eax
jb 0x4069fd
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0x4008
jae 0x4069fd
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
movzx ecx, word [edi]
test cx, cx
je 0x406c0d
push ebx
mov edx, esi
sub edx, eax
and edx, 0xfffffffe
cmp edx, 0x4008
jge 0x406c0c
push 2
movzx ecx, cx
pop edx
add edi, edx
cmp cx, 4
jae 0x406bed
mov al, byte [edi]
movzx edx, byte [edi + 1]
and edx, 0x7f
movzx ebx, al
and ebx, 0x7f
shl edx, 7
or edx, ebx
movzx eax, al
mov dword [ebp + 0xc], edx
mov edx, 0x8000
mov ebx, eax
or ebx, edx
mov dword [ebp - 0x18], ebx
movzx ebx, byte [edi + 1]
mov dword [ebp - 0xc], ebx
or ebx, edx
push 2
mov dword [ebp - 0x10], ebx
pop ebx
add edi, ebx
cmp cx, bx
mov dword [ebp - 0x14], eax
jne 0x406b89
mov ecx, dword [0x4725d0]
test ecx, ecx
jns 0x406a95
cmp cx, 0x5a04
je 0x406a95
cmp dword [ebp - 0xc], 0x23
je 0x406a95
cmp dword [ebp - 0xc], 0x2e
je 0x406a95
and dword [ebp + 0xc], 0
jmp 0x406a9c
mov dword [ebp + 0xc], 1
cmp dword [0x4726a4], 0
je 0x406aa8
push 4
pop ebx
test al, al
jns 0x406ae7
mov ecx, eax
and ecx, 0x40
push ecx
mov ecx, dword [0x472618]
push esi
and eax, 0x3f
lea eax, [ecx + eax*2]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406292
cmp word [esi], 0
jne 0x406b75
push dword [ebp - 0xc]
push esi
call fcn.004069b2
jmp 0x406b6f
cmp eax, 0x25
jne 0x406afa
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406b6f
cmp eax, 0x24
jne 0x406b6b
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
jmp 0x406b6b
mov eax, dword [0x4725d4]
xor ecx, ecx
dec ebx
cmp eax, ecx
je 0x406b33
cmp dword [ebp + 0xc], ecx
je 0x406b33
push esi
push ecx
push ecx
push dword [ebp + ebx*4 - 0x18]
push dword [0x4725d8]
call eax
test eax, eax
je 0x406b6f
lea eax, [ebp - 4]
push eax
push dword [ebp + ebx*4 - 0x18]
push dword [0x4725d8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406b67
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
jne 0x406b6f
and word [esi], 0
test ebx, ebx
jne 0x406b0f
cmp word [esi], 0
je 0x406bc1
cmp dword [ebp - 0xc], 0x1a
jne 0x406bc1
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406bc1
cmp cx, 3
jne 0x406bc9
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x1d
jne 0x406ba5
push dword [0x4725d8]
push esi
call fcn.0040630b
jmp 0x406bb9
mov eax, ebx
imul eax, eax, 0x4008
add eax, section..ndata
push eax
push esi
call fcn.004063c4
add ebx, 0xffffffeb
cmp ebx, 7
jae 0x406bdc
push esi
call fcn.004063e6
jmp 0x406bdc
cmp cx, 1
jne 0x406bdc
or eax, 0xffffffff
sub eax, dword [ebp + 0xc]
push eax
push esi
call fcn.004069b2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
mov eax, 0x461d40
jmp 0x406c00
jne 0x406bfb
mov cx, word [edi]
mov word [esi], cx
add esi, edx
add edi, edx
jmp 0x406c00
mov word [esi], cx
add esi, edx
movzx ecx, word [edi]
test cx, cx
jne 0x406a0a
pop ebx
and word [esi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
je 0x406c22
push eax
push dword [ebp + 8]
call fcn.004063c4
leave
ret 8