Function at 0x408411
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
test eax, eax
lea esi, [eax + eax]
jns 0x408432
inc eax
imul eax, eax, 0xfffffffc
add eax, dword [0x43cb24]
mov esi, dword [eax]
add esi, esi
add esi, dword [0x43ba98]
mov ebx, 0x43cb40
cmp dword [ebp + 8], ebx
jb 0x408519
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, 0xfff
ja 0x408519
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x408519
mov eax, ebx
sub eax, 0x43cb40
cmp eax, 0x7fe
jg 0x40871a
cmp dx, 3
ja 0x4086f7
movsx edi, byte [esi + 3]
mov al, byte [esi + 2]
add esi, 4
and eax, 0x7f
shl edi, 7
and edi, 0x3f80
or edi, eax
mov ax, word [esi - 2]
movzx ecx, al
mov byte [ebp - 0x43], al
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], ecx
or ch, 0x80
mov dword [ebp - 0x28], ecx
mov ecx, eax
shr cx, 8
mov word [ebp - 0x42], cx
movzx ecx, cx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], ecx
mov cx, word [ebp - 0x42]
or cx, 0x8000
cmp dx, 2
movzx ecx, cx
mov dword [ebp - 0x20], ecx
je 0x40852a
cmp dx, 3
jne 0x4086da
cmp edi, 0x1d
jne 0x4086b1
mov eax, dword [0x43bae8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.l
sub edi, 0x15
push eax
push eax
cmp edi, 6
jbe 0x4086cc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push ecx
add eax, ebx
mov ebx, eax
mov dx, word [esi]
test dx, dx
jne 0x408465
jmp 0x40871a
mov edx, dword [0x43bae0]
mov dword [ebp - 0x48], 1
test edx, edx
jns 0x408558
cmp dx, 0x5a04
je 0x408558
cmp dword [ebp - 0x3c], 0x23
sete dl
cmp dword [ebp - 0x3c], 0x2e
sete cl
or edx, ecx
movzx edi, dl
mov dword [ebp - 0x48], edi
cmp dword [0x43ba24], 1
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
test al, al
jns 0x4085be
mov dl, al
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
and edx, 0x40
mov dword [esp], 0x80000002
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, eax
and edx, 0x3f
add edx, edx
add edx, dword [0x43ba98]
mov dword [esp + 8], edx
call sym._47
sub esp, 0x14
cmp word [ebx], 0
jne 0x408690
mov eax, dword [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.3
jmp 0x4085d5
cmp byte [ebp - 0x43], 0x25
jne 0x4085dc
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
jmp 0x408690
cmp dword [ebp - 0x40], 0x24
jne 0x408627
mov dword [esp], ebx
mov dword [esp + 4], 0x400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x4085d5
mov eax, dword [0x43bae4]
mov edx, dword [ebp + edi*4 - 0x28]
test eax, eax
jne 0x40862f
lea eax, [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [0x43bae8]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x408667
mov word [ebx], 0
dec edi
cmp edi, 0xffffffff
jne 0x4085f5
jmp 0x408690
cmp dword [ebp - 0x48], 0
je 0x408602
mov ecx, dword [0x43bae8]
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ecx
call eax
sub esp, 0x14
test eax, eax
mov edx, dword [ebp - 0x3c]
jne 0x408602
jmp 0x408690
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 - 0x3c], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x3c]
push ecx
test eax, eax
je 0x408622
cmp word [ebx], 0
je 0x4086cc
cmp word [ebp - 0x42], 0x1a
jne 0x4086cc
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.004082e0
push eax
push eax
jmp 0x4086cc
mov eax, edi
mov dword [esp], ebx
shl eax, 0xb
add eax, section..ndata
mov dword [esp + 4], eax
call sym._48
jmp 0x4084fb
mov dword [esp], ebx
call sym._51
push eax
jmp 0x408509
dec dx
jne 0x408509
not edi
mov dword [esp], ebx
mov dword [esp + 4], edi
call sym.3
push edi
push edi
jmp 0x408509
cmp dx, 4
lea eax, [ebx + 2]
jne 0x40870f
mov dx, word [esi + 2]
add esi, 4
mov word [ebx], dx
jmp 0x408517
add esi, 2
mov word [ebx], dx
jmp 0x408517
cmp dword [ebp + 8], 0
mov word [ebx], 0
mov eax, 0x43cb40
je 0x40873b
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._48
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8