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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0xc]
mov ebx, dword [0x4244c0]
mov ecx, edx
test edx, edx
jns 0x40681a
not edx
mov eax, dword [0x424de8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x34], 0x424df8
cmp dword [ebp + 8], 0x424df8
jb 0x406846
mov eax, dword [ebp + 8]
sub eax, 0x424df8
cmp eax, 0x7ff
ja 0x406846
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [ebp - 0x34], eax
add ebx, ecx
mov dword [ebp - 0x38], ebx
jmp 0x406a7c
inc dword [ebp - 0x38]
cmp dl, 3
ja 0x406a57
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 1]
movsx ebx, al
mov byte [ebp - 0x3a], al
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
mov dword [ebp - 0x14], ebx
movsx esi, al
mov byte [ebp - 0x39], al
mov eax, esi
or ah, 0x80
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov eax, ebx
or ah, 0x80
cmp dl, 2
mov dword [ebp - 0x18], eax
jne 0x4069d6
call sub.KERNEL32.dll_GetVersion
test eax, eax
jns 0x4068b7
cmp ax, 0x5a04
je 0x4068b7
cmp ebx, 0x23
sete al
cmp ebx, 0x2e
sete dl
or eax, edx
movzx eax, al
mov dword [ebp - 0x30], eax
jmp 0x4068be
mov dword [ebp - 0x30], 1
cmp dword [0x42443c], 1
sbb edi, edi
mov edx, esi
and edi, 0xfffffffe
add edi, 4
test dl, dl
jns 0x406910
sub esp, 0xc
mov eax, esi
and eax, 0x40
and esi, 0x3f
push eax
add esi, dword [0x4244c0]
push dword [ebp - 0x34]
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406778
mov eax, dword [ebp - 0x34]
add esp, 0xc
xor edi, edi
cmp byte [eax], 0
jne 0x406940
push edx
push edx
push ebx
push eax
call fcn.004067f8
jmp 0x40693e
cmp byte [ebp - 0x39], 0x25
jne 0x406927
push eax
push eax
push 0x400
push dword [ebp - 0x34]
call sub.KERNEL32.dll_GetSystemDirectoryA
jmp 0x40693c
cmp byte [ebp - 0x39], 0x24
jne 0x406940
push edi
push edi
push 0x400
push dword [ebp - 0x34]
call sub.KERNEL32.dll_GetWindowsDirectoryA
xor edi, edi
pop ebx
pop esi
lea esi, [ebp + edi*4 - 0x20]
jmp 0x4069b1
mov eax, dword [0x424528]
test eax, eax
je 0x406971
cmp dword [ebp - 0x30], 0
je 0x406971
sub esp, 0xc
push dword [ebp - 0x34]
push 0
push 0
push dword [esi - 4]
push dword [0x424538]
call eax
add esp, 0xc
test eax, eax
je 0x4069b7
lea edx, [ebp - 0x10]
push ecx
push edx
push dword [esi - 4]
push dword [0x424538]
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
pop edx
test eax, eax
jne 0x4069a8
push eax
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call sub.SHELL32.DLL_SHGetPathFromIDListA
mov ebx, eax
push eax
push dword [ebp - 0x10]
call sub.OLE32.dll_CoTaskMemFree
add esp, 0xc
test ebx, ebx
jne 0x4069b7
mov eax, dword [ebp - 0x34]
sub esi, 4
mov byte [eax], 0
dec edi
cmp edi, 0xffffffff
jne 0x406946
mov edx, dword [ebp - 0x34]
cmp byte [edx], 0
je 0x406a1d
cmp byte [ebp - 0x3a], 0x1a
jne 0x406a1d
push eax
push eax
push str.MicrosoftInternet_ExplorerQuick_Launch
push edx
call fcn.004066da
pop edi
pop eax
jmp 0x406a1d
and ebx, 0x7f
and esi, 0x7f
shl ebx, 7
or ebx, esi
cmp dl, 3
jne 0x406a2d
cmp ebx, 0x1d
jne 0x4069fd
push esi
push esi
push dword [0x424538]
push dword [ebp - 0x34]
call fcn.0040645c
jmp 0x406a13
mov eax, ebx
push ecx
shl eax, 0xa
push ecx
add eax, dword [0x40a474]
push eax
push dword [ebp - 0x34]
call fcn.0040675e
pop eax
lea eax, [ebx - 0x15]
pop edx
cmp eax, 6
ja 0x406a40
sub esp, 0xc
push dword [ebp - 0x34]
call fcn.00406624
add esp, 0xc
jmp 0x406a40
dec dl
jne 0x406a40
not ebx
push eax
push eax
push ebx
push dword [ebp - 0x34]
call fcn.004067f8
pop esi
pop edi
sub esp, 0xc
push dword [ebp - 0x34]
add dword [ebp - 0x38], 2
call fcn.004066e3
add dword [ebp - 0x34], eax
add esp, 0xc
jmp 0x406a7c
mov eax, dword [ebp - 0x34]
cmp dl, 4
lea ecx, [eax + 1]
jne 0x406a74
mov edx, dword [ebp - 0x38]
mov al, byte [edx]
mov edx, dword [ebp - 0x34]
mov byte [edx], al
mov dword [ebp - 0x34], ecx
inc dword [ebp - 0x38]
jmp 0x406a7c
mov eax, dword [ebp - 0x34]
mov byte [eax], dl
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x38]
mov dl, byte [eax]
test dl, dl
je 0x406a98
mov eax, dword [ebp - 0x34]
sub eax, 0x424df8
cmp eax, 0x3ff
jle 0x406850
mov edx, dword [ebp - 0x34]
mov eax, 0x424df8
mov byte [edx], 0
cmp dword [ebp + 8], 0
je 0x406ab6
push ebx
push ebx
push eax
push dword [ebp + 8]
call fcn.0040675e
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8