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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x407950
not eax
mov edx, dword [0x431080]
mov eax, dword [edx + eax*4]
mov edi, dword [0x430818]
add edi, eax
mov eax, dword [ebp + 8]
sub eax, 0x431084
mov ebx, 0x431084
cmp eax, 0x7ff
ja 0x407bdd
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x407bdd
cmp al, 0xfc
jbe 0x407bc7
movsx edx, byte [edi + 2]
mov dword [ebp - 0x3c], edx
mov cl, byte [edi + 1]
mov byte [ebp - 0x58], cl
mov esi, edx
and esi, 0x7f
shl esi, 7
and ecx, 0x7f
or esi, ecx
movsx ecx, byte [ebp - 0x58]
mov edx, ecx
or dh, 0x80
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x3c]
or dh, 0x80
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
add edi, 3
cmp al, 0xfe
jne 0x407b5f
mov dword [ebp - 0x5c], ecx
call sub.KERNEL32.dll_GetVersion
mov dword [ebp - 0x40], 1
test eax, eax
mov ecx, dword [ebp - 0x5c]
jns 0x4079fc
cmp ax, 0x5a04
je 0x4079fc
cmp dword [ebp - 0x3c], 0x2e
sete al
cmp dword [ebp - 0x3c], 0x23
sete dl
or eax, edx
movzx eax, al
mov dword [ebp - 0x40], eax
cmp dword [0x4307c0], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test cl, 0x80
je 0x407a69
mov al, byte [ebp - 0x58]
and eax, 0x40
movsx eax, al
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov al, byte [ebp - 0x58]
and eax, 0x3f
add eax, dword [0x430818]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
call fcn.00407687
sub esp, 0x14
xor esi, esi
cmp byte [ebx], 0
jne 0x407b0e
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00407935
push eax
push eax
jmp 0x407b0e
cmp ecx, 0x25
jne 0x407a80
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetSystemDirectoryA
jmp 0x407a99
cmp ecx, 0x24
jne 0x407b0e
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push esi
push esi
xor esi, esi
jmp 0x407b0e
mov eax, dword [0x430850]
test eax, eax
jne 0x407acd
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp + esi*4 - 0x28]
mov dword [esp + 4], eax
mov eax, dword [0x430854]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
test eax, eax
jne 0x407b0b
jmp 0x407b11
cmp dword [ebp - 0x40], 0
je 0x407aa8
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [ebp + esi*4 - 0x28]
mov dword [esp + 4], edx
mov edx, dword [0x430854]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x407aa8
cmp byte [ebx], 0
jne 0x407b45
jmp 0x407b9b
mov byte [ebx], 0
dec esi
jmp 0x407b3a
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push edx
push edx
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov dword [ebp - 0x5c], eax
call sub.OLE32.dll_CoTaskMemFree
push ecx
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x407b0b
jmp 0x407b01
cmp esi, 0xffffffff
jne 0x407a9f
jmp 0x407b01
cmp dword [ebp - 0x3c], 0x1a
jne 0x407b9b
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.00407824
push eax
push eax
jmp 0x407b9b
cmp al, 0xfd
jne 0x407ba6
cmp esi, 0x1d
jne 0x407b7b
mov eax, dword [0x430854]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040772d
jmp 0x407b91
mov eax, esi
shl eax, 0xa
add eax, section..ndata
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004077f4
push eax
push eax
sub esi, 0x15
cmp esi, 6
ja 0x407bba
mov dword [esp], ebx
call fcn.00407870
push eax
jmp 0x407bba
inc al
jne 0x407bba
not esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407935
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push esi
add ebx, eax
jmp 0x407bdd
lea edx, [ebx + 1]
jne 0x407bd8
mov al, byte [edi + 1]
mov byte [ebx], al
mov ebx, edx
add edi, 2
jmp 0x407bdd
inc edi
mov byte [ebx], al
mov ebx, edx
mov al, byte [edi]
test al, al
jne 0x407bf3
mov byte [ebx], 0
mov eax, 0x431084
cmp dword [ebp + 8], 0
je 0x407c1e
jmp 0x407c09
mov edx, ebx
sub edx, 0x431084
cmp edx, 0x3ff
jle 0x40797f
jmp 0x407be3
mov dword [esp + 4], 0x431084
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.004077f4
push ebx
push ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8