Function at 0x4079bf
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0xc]
test edi, edi
jns 0x4079d9
not edi
mov eax, dword [0x4263cc]
mov edi, dword [eax + edi*4]
add edi, dword [0x425b64]
mov eax, dword [ebp + 8]
sub eax, 0x4263d0
mov ebx, 0x4263d0
cmp eax, 0x7ff
ja 0x407c55
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x407c55
cmp al, 0xfc
jbe 0x407c3f
movsx ecx, byte [edi + 2]
movsx edx, byte [edi + 1]
mov esi, edx
or esi, 0x8000
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
mov esi, ecx
or esi, 0x8000
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
add edi, 3
cmp al, 0xfe
jne 0x407bca
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
call sub.KERNEL32.dll_GetVersion
mov dword [ebp - 0x3c], 1
test eax, eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
jns 0x407a76
cmp ax, 0x5a04
je 0x407a76
cmp ecx, 0x2e
sete byte [ebp - 0x3c]
cmp ecx, 0x23
sete al
or byte [ebp - 0x3c], al
movzx eax, byte [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
cmp dword [0x425b0c], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test dl, 0x80
je 0x407adf
mov eax, edx
and eax, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
and edx, 0x3f
add edx, dword [0x425b64]
mov dword [esp + 8], edx
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
mov dword [ebp - 0x40], ecx
call fcn.00407756
sub esp, 0x14
xor esi, esi
cmp byte [ebx], 0
mov ecx, dword [ebp - 0x40]
jne 0x407ba3
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004079bf
push eax
push eax
jmp 0x407ba3
cmp edx, 0x25
jne 0x407af6
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetSystemDirectoryA
jmp 0x407b0f
cmp edx, 0x24
jne 0x407ba3
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push esi
push esi
xor esi, esi
jmp 0x407ba3
dec esi
mov eax, dword [0x425b9c]
cmp byte [ebp - 0x3c], 0
je 0x407b56
test eax, eax
je 0x407b56
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [ebp + esi*4 - 0x2c]
mov dword [esp + 4], edx
mov edx, dword [0x425ba0]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
je 0x407bab
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + esi*4 - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [0x425ba0]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
test eax, eax
jne 0x407ba0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push edx
push edx
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [ebp - 0x40], eax
call sub.OLE32.dll_CoTaskMemFree
push ecx
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x407bab
mov byte [ebx], 0
test esi, esi
jne 0x407b18
cmp byte [ebx], 0
je 0x407c13
cmp dword [ebp - 0x20], 0x1a
jne 0x407c13
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
push eax
push eax
jmp 0x407c13
mov esi, ecx
and esi, 0x7f
shl esi, 7
and edx, 0x7f
or esi, edx
cmp al, 0xfd
jne 0x407c1e
cmp esi, 0x1d
jne 0x407bf3
mov eax, dword [0x425ba0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004077fc
jmp 0x407c09
mov eax, esi
shl eax, 0xa
add eax, section..ndata
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004078bf
push eax
push eax
sub esi, 0x15
cmp esi, 6
ja 0x407c32
mov dword [esp], ebx
call fcn.004078f8
push eax
jmp 0x407c32
inc al
jne 0x407c32
not esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004079bf
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push esi
add ebx, eax
jmp 0x407c55
lea edx, [ebx + 1]
jne 0x407c50
mov al, byte [edi + 1]
mov byte [ebx], al
mov ebx, edx
add edi, 2
jmp 0x407c55
inc edi
mov byte [ebx], al
mov ebx, edx
mov al, byte [edi]
test al, al
je 0x407c6f
mov edx, ebx
sub edx, 0x4263d0
cmp edx, 0x3ff
jle 0x407a06
mov byte [ebx], 0
mov eax, 0x4263d0
cmp dword [ebp + 8], 0
je 0x407c8e
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004078bf
push ebx
push ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8