Function at 0x408e14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
lea esi, [eax + eax]
test eax, eax
jns 0x408e3b
inc eax
imul eax, eax, 0xfffffffc
add eax, dword [0x44a280]
mov esi, dword [eax]
add esi, esi
add esi, dword [0x42a158]
mov ebx, 0x46b380
cmp dword [ebp - 0x3c], ebx
jb 0x408e96
mov eax, dword [ebp - 0x3c]
sub eax, ebx
cmp eax, 0x7ffe
ja 0x408e96
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
jmp 0x408e96
mov eax, edi
mov dword [esp], ebx
sub edi, 0x15
shl eax, 0xe
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00408c6f
push eax
push eax
cmp edi, 6
jbe 0x4090bb
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
lea eax, [ebx + eax*2]
mov ebx, eax
mov dx, word [esi]
test dx, dx
je 0x409109
mov eax, ebx
sub eax, 0x46b380
cmp eax, 0x3ffe
jg 0x409109
cmp dx, 3
ja 0x4090e6
movsx edi, byte [esi + 3]
mov al, byte [esi + 2]
add esi, 4
shl edi, 7
and eax, 0x7f
and edi, 0x3f80
or edi, eax
mov ax, word [esi - 2]
movzx ecx, al
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], ecx
or ch, 0x80
mov dword [ebp - 0x28], ecx
mov ecx, eax
shr cx, 8
mov word [ebp - 0x46], cx
movzx ecx, ah
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x1c], ecx
mov cx, word [ebp - 0x46]
or cx, 0x8000
movzx ecx, cx
mov dword [ebp - 0x20], ecx
cmp dx, 2
jne 0x409099
mov edx, dword [0x43e240]
mov dword [ebp - 0x4c], 1
test edx, edx
jns 0x408f43
cmp dx, 0x5a04
je 0x408f43
cmp dword [ebp - 0x40], 0x23
sete dl
cmp dword [ebp - 0x40], 0x2e
sete cl
or edx, ecx
movzx ecx, dl
mov dword [ebp - 0x4c], ecx
cmp dword [0x416064], 1
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
test al, al
jns 0x408fa4
mov edx, eax
and eax, 0x3f
mov dword [esp + 0xc], ebx
xor edi, edi
and edx, 0x40
add eax, eax
add eax, dword [0x42a158]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call fcn.00408adc
sub esp, 0x14
cmp word [ebx], 0
jne 0x40900c
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408e14
push eax
push eax
jmp 0x40900c
cmp dword [ebp - 0x44], 0x25
jne 0x408fbd
mov dword [esp], ebx
mov dword [esp + 4], 0x2000
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x408fd4
cmp dword [ebp - 0x44], 0x24
jne 0x40900c
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push edi
xor edi, edi
jmp 0x40900c
mov eax, dword [0x43e244]
mov edx, dword [ebp + edi*4 - 0x28]
test eax, eax
jne 0x409013
lea eax, [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [0x43e24c]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x40906a
mov word [ebx], 0
sub edi, 1
jae 0x408fda
jmp 0x409049
cmp dword [ebp - 0x4c], 0
je 0x408fe7
mov ecx, dword [0x43e24c]
mov dword [esp + 4], edx
mov dword [ebp - 0x40], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ecx
call eax
mov edx, dword [ebp - 0x40]
sub esp, 0x14
test eax, eax
jne 0x408fe7
cmp word [ebx], 0
je 0x4090bb
cmp word [ebp - 0x46], 0x1a
jne 0x4090bb
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
push eax
push eax
jmp 0x4090bb
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push edx
push edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x40]
push ecx
test eax, eax
je 0x409007
jmp 0x409049
cmp dx, 3
jne 0x4090c9
cmp edi, 0x1d
jne 0x408e63
mov eax, dword [0x43e24c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408b88
jmp 0x4090df
mov dword [esp], ebx
call fcn.00408d37
push edi
jmp 0x408e87
dec dx
jne 0x408e87
not edi
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.00408e14
push ecx
push ecx
jmp 0x408e87
lea eax, [ebx + 2]
cmp dx, 4
jne 0x4090fe
mov dx, word [esi + 2]
add esi, 4
mov word [ebx], dx
jmp 0x408e94
mov word [ebx], dx
add esi, 2
jmp 0x408e94
cmp dword [ebp - 0x3c], 0
mov word [ebx], 0
je 0x40912d
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], 0x46b380
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00408c6f
lea esp, [ebp - 0xc]
mov eax, 0x46b380
pop ebx
pop esi
pop edi
pop ebp
ret 8