Function at 0x408eee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
test esi, esi
jns 0x408f10
inc esi
imul esi, esi, 0xfffffffc
add esi, dword [0x43b260]
mov esi, dword [esi]
add esi, dword [0x423138]
mov ebx, 0x44bb60
cmp dword [ebp - 0x30], ebx
jb 0x408f34
mov eax, dword [ebp - 0x30]
sub eax, ebx
cmp eax, 0x3fff
ja 0x408f34
xor eax, eax
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dl, byte [esi]
test dl, dl
je 0x4091bf
mov eax, ebx
sub eax, 0x44bb60
cmp eax, 0x1fff
jg 0x4091bf
cmp dl, 3
ja 0x4091a3
movsx eax, byte [esi + 2]
add esi, 3
mov dword [ebp - 0x2c], eax
mov al, byte [esi - 2]
mov edi, dword [ebp - 0x2c]
mov ecx, eax
shl edi, 7
and ecx, 0x7f
and edi, 0x3f80
or edi, ecx
movsx ecx, al
mov dword [ebp - 0x34], ecx
or ch, 0x80
mov dword [ebp - 0x28], ecx
movsx ecx, al
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
or ch, 0x80
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmp dl, 2
jne 0x40913d
cmp byte [0x41905c], 0
mov dword [ebp - 0x38], 1
jne 0x408fd2
cmp word [0x41905e], 0x459
ja 0x408fd2
cmp ecx, 0x23
sete dl
cmp ecx, 0x2e
sete cl
or edx, ecx
movzx ecx, dl
mov dword [ebp - 0x38], ecx
cmp dword [0x419024], 1
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
test al, al
jns 0x40902c
mov edx, eax
mov dword [esp + 0xc], ebx
and eax, 0x3f
and edx, 0x40
mov dword [esp + 0x10], edx
add eax, dword [0x423138]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
call fcn.00408699
sub esp, 0x14
cmp byte [ebx], 0
jne 0x40905e
mov eax, dword [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408eee
jmp 0x40905c
cmp dword [ebp - 0x34], 0x25
jne 0x409045
mov dword [esp], ebx
mov dword [esp + 4], 0x2000
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40905c
cmp dword [ebp - 0x34], 0x24
jne 0x4090b0
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push edi
xor edi, edi
jmp 0x4090b0
mov eax, dword [ebp + edi*4 - 0x28]
mov dword [ebp - 0x34], eax
and eax, 0x8000
mov dword [ebp - 0x3c], eax
mov eax, dword [0x437224]
test eax, eax
jne 0x4090b7
mov dword [esp], 7
call fcn.00408e7c
push ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x34]
and edx, 0xbf
mov dword [esp + 4], edx
mov edx, dword [0x43722c]
mov dword [esp], edx
call eax
sub esp, 0xc
test eax, eax
jne 0x40910e
mov byte [ebx], 0
sub edi, 1
jae 0x409062
jmp 0x4090e7
cmp dword [ebp - 0x38], 0
je 0x40907a
xor edx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x34]
and edx, 0xffffffbf
mov dword [esp + 4], edx
mov edx, dword [0x43722c]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x40907a
cmp byte [ebx], 0
je 0x40917a
cmp dword [ebp - 0x2c], 0x1a
jne 0x40917a
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
push eax
push eax
jmp 0x40917a
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push edx
push edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ecx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4090ad
jmp 0x4090e7
cmp dl, 3
jne 0x409185
cmp edi, 0x1d
jne 0x40915a
mov eax, dword [0x43722c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040873f
jmp 0x409193
mov eax, edi
mov dword [esp], ebx
sub edi, 0x15
shl eax, 0xd
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00408823
push eax
push eax
cmp edi, 6
ja 0x409195
mov dword [esp], ebx
call fcn.00408948
push edi
jmp 0x409195
not edi
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.00408eee
push ecx
push ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
push edx
jmp 0x4091b8
lea eax, [ebx + 1]
cmp dl, 4
jne 0x4091b5
mov dl, byte [esi + 1]
add esi, 2
mov byte [ebx], dl
jmp 0x4091b8
mov byte [ebx], dl
inc esi
mov ebx, eax
jmp 0x408f34
cmp dword [ebp - 0x30], 0
mov byte [ebx], 0
je 0x4091e1
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], 0x44bb60
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00408823
lea esp, [ebp - 0xc]
mov eax, 0x44bb60
pop ebx
pop esi
pop edi
pop ebp
ret 8