Function at 0x4081cb
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
lea edx, [eax + eax]
jns 0x4081eb
mov edx, dword [0x47bd24]
not eax
mov edx, dword [edx + eax*4]
add edx, edx
mov edi, dword [0x473c58]
mov ebx, 0x47bd40
add edi, edx
cmp dword [ebp + 8], ebx
jb 0x4082d0
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, 0x7fff
ja 0x4082d0
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x4082d0
mov edx, ebx
sub edx, 0x47bd40
cmp edx, 0x3fff
jg 0x4082dc
cmp ax, 3
ja 0x4084f0
mov dl, byte [edi + 3]
mov cl, byte [edi + 2]
add edi, 4
mov esi, edx
and esi, 0x7f
shl esi, 7
mov edx, esi
mov esi, ecx
mov cx, word [edi - 2]
and esi, 0x7f
or esi, edx
mov word [ebp - 0x48], cx
movzx edx, byte [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 0x4c], dl
shr cx, 8
mov dword [ebp - 0x24], edx
or dh, 0x80
mov word [ebp - 0x68], cx
mov dword [ebp - 0x28], edx
movzx edx, byte [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0x1c], edx
or ch, 0x80
cmp ax, 2
mov dword [ebp - 0x20], ecx
je 0x40830a
cmp ax, 3
jne 0x4084d3
cmp esi, 0x1d
jne 0x4084aa
mov eax, dword [0x473cc4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407f88
sub esi, 0x15
push eax
push eax
cmp esi, 6
jbe 0x4084c5
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push ecx
add ebx, eax
mov ax, word [edi]
test ax, ax
jne 0x408220
cmp dword [ebp + 8], 0
mov word [ebx], 0
mov eax, 0x47bd40
je 0x408517
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x47bd40
mov dword [esp], eax
call fcn.00408063
push edx
push edx
jmp 0x408517
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov dword [ebp - 0x50], 1
mov edx, dword [ebp - 0x54]
jns 0x40833b
cmp ax, 0x5a04
je 0x40833b
cmp edx, 0x23
sete cl
cmp edx, 0x2e
sete al
or eax, ecx
movzx eax, al
mov dword [ebp - 0x50], eax
cmp dword [0x473bbc], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
cmp byte [ebp - 0x48], 0
jns 0x4083b5
mov al, byte [ebp - 0x48]
mov dword [esp + 0xc], ebx
xor esi, esi
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
mov dword [ebp - 0x4c], edx
and eax, 0x40
movzx eax, al
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x48]
and eax, 0x3f
add eax, eax
add eax, dword [0x473c58]
mov dword [esp + 8], eax
call fcn.00407ed9
sub esp, 0x14
cmp word [ebx], 0
mov edx, dword [ebp - 0x4c]
jne 0x4083a6
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004081cb
push eax
push eax
mov al, byte [ebp - 0x50]
lea esi, [ebp + esi*4 - 0x28]
and eax, 1
mov byte [ebp - 0x48], al
jmp 0x408421
cmp byte [ebp - 0x4c], 0x25
jne 0x4083ce
mov dword [esp], ebx
mov dword [esp + 4], 0x2000
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4083e5
cmp byte [ebp - 0x4c], 0x24
jne 0x4083a6
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
xor esi, esi
jmp 0x4083a6
cmp byte [ebp - 0x48], 0
mov eax, dword [0x473cc0]
jne 0x40842a
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
mov eax, dword [0x473cc4]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x40847b
mov word [ebx], 0
sub esi, 4
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x4083eb
jmp 0x40845b
test eax, eax
je 0x4083f6
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esi - 4]
mov dword [esp + 4], ecx
mov ecx, dword [0x473cc4]
mov dword [esp], ecx
call eax
sub esp, 0x14
test eax, eax
jne 0x4083f6
cmp byte [ebp - 0x68], 0x1a
jne 0x4084c5
cmp word [ebx], 0
je 0x4084c5
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.00408096
push eax
push eax
jmp 0x4084c5
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [ebp - 0x2c]
push edx
push edx
mov dword [ebp - 0x4c], eax
mov dword [esp], ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x4c]
push ecx
test eax, eax
je 0x408419
jmp 0x40845b
mov eax, esi
mov dword [esp], ebx
shl eax, 0xe
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00408063
jmp 0x4082b4
mov dword [esp], ebx
call fcn.004080ea
push eax
jmp 0x4082c2
dec ax
jne 0x4082c2
not esi
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004081cb
push esi
push esi
jmp 0x4082c2
cmp ax, 4
lea edx, [ebx + 2]
jne 0x40850a
mov ax, word [edi + 2]
add edi, 4
mov word [ebx], ax
mov ebx, edx
jmp 0x4082d0
mov word [ebx], ax
add edi, 2
mov ebx, edx
jmp 0x4082d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8