Function at 0x407417
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 0x407431
not edi
mov eax, dword [0x431174]
mov edi, dword [eax + edi*4]
mov edx, dword [ebp + 8]
mov eax, dword [0x43084c]
sub edx, 0x431184
mov ebx, 0x431184
cmp edx, 0x7ff
ja 0x407456
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
add edi, eax
jmp 0x4076ad
inc edi
cmp al, 0xfc
jbe 0x40769b
movsx edx, byte [edi + 1]
mov dword [ebp - 0x3c], edx
movsx edx, byte [edi]
mov ecx, edx
mov dword [ebp - 0x28], edx
or ch, 0x80
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x3c]
or ch, 0x80
cmp al, 0xfe
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
jne 0x40761a
mov dword [ebp - 0x48], edx
call sub.KERNEL32.dll_GetVersion
mov edx, dword [ebp - 0x48]
test eax, eax
jns 0x4074bf
cmp ax, 0x5a04
je 0x4074bf
cmp dword [ebp - 0x3c], 0x2e
sete al
cmp dword [ebp - 0x3c], 0x23
sete cl
or eax, ecx
movzx eax, al
mov dword [ebp - 0x40], eax
jmp 0x4074c6
mov dword [ebp - 0x40], 1
cmp dword [0x4307c8], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test dl, dl
jns 0x407532
mov eax, edx
and edx, 0x3f
add edx, dword [0x43084c]
and eax, 0x40
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.00407371
xor esi, esi
sub esp, 0x14
cmp byte [ebx], 0
jne 0x407522
mov eax, dword [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407417
push eax
push eax
lea edx, [ebp + esi*4 - 0x30]
mov dword [ebp - 0x44], edi
mov edi, ebx
mov ebx, edx
jmp 0x4075ee
cmp edx, 0x25
jne 0x407549
mov dword [esp], ebx
mov dword [esp + 4], 0x400
call sub.KERNEL32.dll_GetSystemDirectoryA
jmp 0x40755e
cmp edx, 0x24
jne 0x407522
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
xor esi, esi
push ecx
push ecx
jmp 0x407522
dec esi
mov eax, dword [0x4308b4]
cmp byte [ebp - 0x40], 0
je 0x4075a0
test eax, eax
je 0x4075a0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [ebx]
mov dword [esp + 4], edx
mov edx, dword [0x4308c4]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
je 0x4075f6
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [0x4308c4]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
test eax, eax
jne 0x4075e8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
mov dword [ebp - 0x48], eax
push edx
push edx
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call sub.OLE32.dll_CoTaskMemFree
mov eax, dword [ebp - 0x48]
push ecx
test eax, eax
jne 0x4075f6
mov byte [edi], 0
sub ebx, 4
test esi, esi
jne 0x407564
mov ebx, edi
mov edi, dword [ebp - 0x44]
cmp byte [ebx], 0
je 0x40766c
cmp dword [ebp - 0x3c], 0x1a
jne 0x40766c
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.00407292
push edx
push edx
jmp 0x40766c
mov esi, dword [ebp - 0x3c]
and edx, 0x7f
and esi, 0x7f
shl esi, 7
or esi, edx
cmp al, 0xfd
jne 0x407677
cmp esi, 0x1d
jne 0x40764c
mov eax, dword [0x4308c4]
mov dword [esp + 4], 0x40b4bf
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
jmp 0x407664
mov eax, esi
mov dword [esp], ebx
shl eax, 0xa
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00407326
push eax
push eax
sub esi, 0x15
cmp esi, 6
ja 0x40768b
mov dword [esp], ebx
call fcn.004071c3
push esi
jmp 0x40768b
inc al
jne 0x40768b
not esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407417
push ecx
push ecx
mov dword [esp], ebx
call fcn.0040729e
add edi, 2
add ebx, eax
push edx
jmp 0x4076ad
lea edx, [ebx + 1]
jne 0x4076a9
mov al, byte [edi]
inc edi
mov byte [ebx], al
mov ebx, edx
jmp 0x4076ad
mov byte [ebx], al
mov ebx, edx
mov al, byte [edi]
test al, al
je 0x4076c7
mov edx, ebx
sub edx, 0x431184
cmp edx, 0x3ff
jle 0x40745d
mov byte [ebx], 0
mov eax, 0x431184
cmp dword [ebp + 8], 0
je 0x4076e6
mov edx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407326
push esi
push esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8