Function at 0x40680e
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
test eax, eax
jge 0x40682a
mov ecx, dword [0x7e95c8]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x7f1618]
push ebp
lea ebp, [ecx + eax*2]
mov ecx, dword [esp + 0x1c]
mov eax, 0x7e0d60
cmp ecx, eax
push esi
mov esi, eax
jb 0x406859
mov edx, ecx
sub edx, eax
sar edx, 1
cmp edx, 0x4008
jae 0x406859
and dword [esp + 0x20], 0
mov esi, ecx
movzx ecx, word [ebp]
test cx, cx
je 0x406a82
push ebx
push edi
mov edx, esi
sub edx, eax
and edx, 0xfffffffe
cmp edx, 0x4008
jge 0x406a80
push 2
movzx ecx, cx
pop edi
mov edx, 0xe000
add ebp, edi
test dx, cx
je 0x406a5c
cmp cx, dx
jbe 0x406a5f
movzx eax, word [ebp]
mov ebx, eax
and ebx, 0xff
mov edi, eax
shr eax, 8
mov edx, ebx
or edx, 0x8000
and edi, 0x7fff
mov dword [esp + 0x20], eax
or eax, 0x8000
inc ebp
inc ebp
cmp cx, 0xe002
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x4069fa
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x406903
cmp ax, 0x5a04
je 0x406903
cmp dword [esp + 0x20], 0x23
je 0x406903
cmp dword [esp + 0x20], 0x2e
je 0x406903
and dword [esp + 0x2c], 0
jmp 0x40690b
mov dword [esp + 0x2c], 1
cmp dword [0x7f16a4], 0
je 0x406917
push 4
pop edi
test bl, bl
jns 0x406956
mov eax, ebx
and eax, 0x40
push eax
mov eax, dword [0x7f1618]
push esi
and ebx, 0x3f
lea eax, [eax + ebx*2]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405ee8
cmp word [esi], 0
jne 0x4069e5
push dword [esp + 0x20]
push esi
call fcn.0040680e
jmp 0x4069df
cmp ebx, 0x25
jne 0x406969
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4069df
cmp ebx, 0x24
jne 0x4069db
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edi, edi
jmp 0x4069db
mov eax, dword [0x7f15f0]
xor ecx, ecx
dec edi
cmp eax, ecx
je 0x4069a3
cmp dword [esp + 0x2c], ecx
je 0x4069a3
push esi
push ecx
push ecx
push dword [esp + edi*4 + 0x20]
push dword [0x7f15f4]
call eax
test eax, eax
je 0x4069df
lea eax, [esp + 0x10]
push eax
push dword [esp + edi*4 + 0x18]
push dword [0x7f15f4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4069d7
push esi
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x4069df
and word [esi], 0
test edi, edi
jne 0x40697e
cmp word [esi], 0
je 0x406a30
cmp dword [esp + 0x20], 0x1a
jne 0x406a30
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406a30
cmp cx, 0xe001
jne 0x406a38
cmp edi, 0x1d
jne 0x406a14
push dword [0x7f15f4]
push esi
call fcn.00405f62
jmp 0x406a28
mov eax, edi
imul eax, eax, 0x4008
add eax, section..ndata
push eax
push esi
call fcn.0040601b
add edi, 0xffffffeb
cmp edi, 7
jae 0x406a4b
push esi
call fcn.0040604a
jmp 0x406a4b
cmp cx, 0xe003
jne 0x406a4b
or eax, 0xffffffff
sub eax, edi
push eax
push esi
call fcn.0040680e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
mov eax, 0x7e0d60
jmp 0x406a73
cmp cx, dx
jne 0x406a6e
mov cx, word [ebp]
mov word [esi], cx
add esi, edi
add ebp, edi
jmp 0x406a73
mov word [esi], cx
add esi, edi
movzx ecx, word [ebp]
test cx, cx
jne 0x406868
pop edi
pop ebx
and word [esi], 0
cmp dword [esp + 0x20], 0
pop esi
pop ebp
je 0x406a99
push eax
push dword [esp + 0x1c]
call fcn.0040601b
add esp, 0x14
ret 8