Function at 0x4078ff
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 0x407919
mov eax, dword [0x447bbc]
not edi
mov edi, dword [eax + edi*4]
mov eax, dword [ebp + 8]
mov ebx, 0x447bc0
add edi, dword [0x443b54]
sub eax, 0x447bc0
cmp eax, 0x3fff
ja 0x407b9d
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x407b9d
cmp al, 0xfc
jbe 0x407b87
movsx edx, byte [edi + 1]
movsx ecx, byte [edi + 2]
add edi, 3
mov esi, edx
or esi, 0x8000
mov dword [ebp - 0x2c], esi
mov esi, ecx
or esi, 0x8000
cmp al, 0xfe
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
jne 0x407b11
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x40]
test eax, eax
jns 0x4079b7
cmp ax, 0x5a04
je 0x4079b7
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 [0x443afc], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test dl, 0x80
je 0x407a20
mov eax, edx
and edx, 0x3f
add edx, dword [0x443b54]
and eax, 0x40
mov dword [ebp - 0x40], ecx
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
call fcn.00407680
mov ecx, dword [ebp - 0x40]
sub esp, 0x14
cmp byte [ebx], 0
jne 0x407ae9
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004078ff
push eax
push eax
jmp 0x407ae9
cmp edx, 0x25
jne 0x407a38
mov dword [esp], ebx
mov dword [esp + 4], 0x2000
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x407a52
cmp edx, 0x24
jne 0x407ae9
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
xor esi, esi
jmp 0x407ae9
dec esi
mov eax, dword [0x443b8c]
cmp dword [ebp - 0x3c], 0
je 0x407a99
test eax, eax
je 0x407a99
mov edx, dword [ebp + esi*4 - 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov edx, dword [0x443b90]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
je 0x407af1
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + esi*4 - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [0x443b90]
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
jne 0x407ae6
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_SHGetPathFromIDListA]
push edx
push edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x40]
test eax, eax
push ecx
jne 0x407af1
mov byte [ebx], 0
test esi, esi
jne 0x407a5b
cmp byte [ebx], 0
je 0x407b5a
cmp dword [ebp - 0x20], 0x1a
jne 0x407b5a
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push eax
jmp 0x407b5a
mov esi, ecx
and edx, 0x7f
and esi, 0x7f
shl esi, 7
or esi, edx
cmp al, 0xfd
jne 0x407b65
cmp esi, 0x1d
jne 0x407b3a
mov eax, dword [0x443b90]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407729
jmp 0x407b50
mov eax, esi
shl eax, 0xd
add eax, section..ndata
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004077ed
sub esi, 0x15
cmp esi, 6
push eax
push eax
ja 0x407b79
mov dword [esp], ebx
call fcn.0040782b
push eax
jmp 0x407b79
inc al
jne 0x407b79
not esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004078ff
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
push esi
jmp 0x407b9d
lea edx, [ebx + 1]
jne 0x407b98
mov al, byte [edi + 1]
add edi, 2
mov byte [ebx], al
mov ebx, edx
jmp 0x407b9d
mov byte [ebx], al
inc edi
mov ebx, edx
mov al, byte [edi]
test al, al
je 0x407bb7
mov edx, ebx
sub edx, 0x447bc0
cmp edx, 0x1fff
jle 0x407946
cmp dword [ebp + 8], 0
mov eax, 0x447bc0
mov byte [ebx], 0
je 0x407bd6
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004077ed
push ebx
push ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8