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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x407e0d
mov edx, dword [0x42c4e4]
not eax
mov eax, dword [edx + eax*4]
add eax, dword [0x42bc58]
mov ebx, 0x42c500
mov edi, eax
mov eax, dword [ebp + 8]
sub eax, 0x42c500
cmp eax, 0x7ff
ja 0x407edb
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x407edb
mov edx, ebx
sub edx, 0x42c500
cmp edx, 0x3ff
jg 0x407ee5
cmp al, 0xfc
jbe 0x4080e7
mov cl, byte [edi + 1]
mov dl, byte [edi + 2]
add edi, 3
mov byte [ebp - 0x58], cl
mov ecx, dword [ebp - 0x58]
mov esi, edx
and esi, 0x7f
shl esi, 7
and ecx, 0x7f
or esi, ecx
mov dword [ebp - 0x40], esi
movsx esi, byte [ebp - 0x58]
mov ecx, esi
mov dword [ebp - 0x24], esi
or ch, 0x80
mov dword [ebp - 0x28], ecx
movsx ecx, dl
mov edx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], ecx
or dh, 0x80
cmp al, 0xfe
mov dword [ebp - 0x20], edx
je 0x407f11
cmp al, 0xfd
jne 0x4080c7
cmp dword [ebp - 0x40], 0x1d
jne 0x408080
mov eax, dword [0x42bca4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407bcf
mov esi, dword [ebp - 0x40]
push eax
push eax
sub esi, 0x15
cmp esi, 6
jbe 0x4080b9
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
add ebx, eax
mov al, byte [edi]
test al, al
jne 0x407e3c
cmp dword [ebp + 8], 0
mov byte [ebx], 0
mov eax, 0x42c500
je 0x408105
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x42c500
mov dword [esp], eax
call fcn.00407ca2
push edx
push edx
jmp 0x408105
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov edx, 1
jns 0x407f39
cmp ax, 0x5a04
je 0x407f39
cmp dword [ebp - 0x3c], 0x23
sete dl
cmp dword [ebp - 0x3c], 0x2e
sete al
or edx, eax
movzx edx, dl
cmp dword [0x42bbe4], 1
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
test esi, 0x80
je 0x407fa2
mov al, byte [ebp - 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
and eax, 0x40
movsx eax, al
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x58]
and eax, 0x3f
add eax, dword [0x42bc58]
mov dword [esp + 8], eax
call fcn.00407b26
sub esp, 0x14
cmp byte [ebx], 0
jne 0x40809c
mov eax, dword [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407df2
jmp 0x407fde
cmp esi, 0x25
jne 0x407fba
mov dword [esp], ebx
mov dword [esp + 4], 0x400
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x407fde
cmp esi, 0x24
je 0x407fcd
lea esi, [ebp + eax*4 - 0x28]
mov al, dl
and eax, 1
mov byte [ebp - 0x58], al
jmp 0x408017
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
jmp 0x40809c
mov eax, dword [0x42bca0]
test eax, eax
jne 0x408020
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
mov eax, dword [0x42bca4]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x408055
mov byte [ebx], 0
sub esi, 4
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x407fe5
jmp 0x40809c
cmp byte [ebp - 0x58], 0
je 0x407fee
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [esi - 4]
mov dword [esp + 4], edx
mov edx, dword [0x42bca4]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x407fee
jmp 0x40809c
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push edx
push edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x40]
push ecx
test eax, eax
je 0x408011
jmp 0x40809c
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
shl eax, 0xa
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00407ca2
jmp 0x407ebe
cmp byte [ebx], 0
je 0x4080b9
cmp dword [ebp - 0x3c], 0x1a
jne 0x4080b9
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.00407cd4
push eax
push eax
mov dword [esp], ebx
call fcn.00407d23
push eax
jmp 0x407ecf
inc al
jne 0x407ecf
mov esi, dword [ebp - 0x40]
mov dword [esp], ebx
not esi
mov dword [esp + 4], esi
call fcn.00407df2
push esi
push esi
jmp 0x407ecf
lea edx, [ebx + 1]
jne 0x4080fb
mov al, byte [edi + 1]
add edi, 2
mov byte [ebx], al
mov ebx, edx
jmp 0x407edb
mov byte [ebx], al
inc edi
mov ebx, edx
jmp 0x407edb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8