Function at 0x40600e
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
test eax, eax
jge 0x40602a
mov ecx, dword [0x429588]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x42a5d8]
push ebx
lea ebx, [ecx + eax*2]
mov ecx, dword [esp + 0x18]
mov eax, 0x428540
cmp ecx, eax
push esi
mov esi, eax
jb 0x406059
mov edx, ecx
sub edx, eax
sar edx, 1
cmp edx, 0x800
jae 0x406059
and dword [esp + 0x1c], 0
mov esi, ecx
mov dx, word [ebx]
test dx, dx
je 0x406245
push ebp
push edi
mov ecx, esi
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x800
jge 0x406243
push 2
pop ecx
mov edi, 0xe000
add ebx, ecx
test di, dx
je 0x406221
cmp dx, di
jbe 0x406224
movzx ecx, word [ebx]
mov eax, ecx
and eax, 0xff
mov edi, ecx
mov ebp, eax
or ebp, 0x8000
shr ecx, 8
mov dword [esp + 0x14], ebp
mov ebp, ecx
or ecx, 0x8000
and edi, 0x7fff
inc ebx
inc ebx
cmp dx, 0xe002
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
jne 0x4061c8
cmp dword [0x42a624], 0
push 2
pop edi
je 0x4060e7
push 4
pop edi
test al, al
jns 0x406124
mov ecx, eax
and ecx, 0x40
push ecx
mov ecx, dword [0x42a5d8]
push esi
and eax, 0x3f
lea eax, [ecx + eax*2]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058f7
cmp word [esi], 0
jne 0x4061ad
push ebp
push esi
call fcn.0040600e
jmp 0x4061a7
cmp eax, 0x25
jne 0x406137
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4061a7
cmp eax, 0x24
jne 0x4061a3
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edi, edi
jmp 0x4061a3
mov eax, dword [0x42a5a0]
dec edi
test eax, eax
je 0x40616b
push esi
push 0
push 0
push dword [esp + edi*4 + 0x1c]
push dword [0x42a5a4]
call eax
test eax, eax
je 0x4061a7
lea eax, [esp + 0x28]
push eax
push dword [esp + edi*4 + 0x14]
push dword [0x42a5a4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40619f
push esi
push dword [esp + 0x2c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [esp + 0x28]
mov ebp, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebp, ebp
jne 0x4061a7
and word [esi], 0
test edi, edi
jne 0x40614c
cmp word [esi], 0
je 0x4061c0
cmp dword [esp + 0x18], 0x1a
jne 0x4061c0
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call fcn.00405a59
jmp 0x406210
cmp dx, 0xe001
jne 0x4061fd
cmp edi, 0x1d
jne 0x4061e2
push dword [0x42a5a4]
push esi
call fcn.00405971
jmp 0x4061f3
mov eax, edi
shl eax, 0xb
add eax, section..ndata
push eax
push esi
call fcn.00405a2a
add edi, 0xffffffeb
cmp edi, 7
jae 0x406210
jmp 0x4061c0
cmp dx, 0xe003
jne 0x406210
or eax, 0xffffffff
sub eax, edi
push eax
push esi
call fcn.0040600e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
mov eax, 0x428540
jmp 0x406237
cmp dx, di
jne 0x406232
mov dx, word [ebx]
mov word [esi], dx
add esi, ecx
add ebx, ecx
jmp 0x406237
mov word [esi], dx
add esi, ecx
mov dx, word [ebx]
test dx, dx
jne 0x406067
pop edi
pop ebp
and word [esi], 0
cmp dword [esp + 0x1c], 0
pop esi
pop ebx
je 0x40625c
push eax
push dword [esp + 0x18]
call fcn.00405a2a
add esp, 0x10
ret 8