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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jns 0x4079ef
mov edx, dword [0x434080]
not eax
mov eax, dword [edx + eax*4]
add eax, dword [0x433818]
mov dword [ebp - 0x40], 0
mov edi, eax
mov eax, ebx
sub eax, 0x434084
cmp eax, 0x7ff
jbe 0x407ab7
mov dword [ebp - 0x40], ebx
mov ebx, 0x434084
jmp 0x407ab7
mov edx, ebx
sub edx, 0x434084
cmp edx, 0x3ff
jg 0x407ac1
cmp al, 0xfc
jbe 0x407cba
movsx ecx, byte [edi + 2]
add edi, 3
mov esi, ecx
mov cl, byte [edi - 2]
mov dword [ebp - 0x3c], esi
and esi, 0x7f
shl esi, 7
mov dl, cl
mov byte [ebp - 0x48], cl
mov ecx, edx
and ecx, 0x7f
or esi, ecx
movsx ecx, dl
mov edx, ecx
or dh, 0x80
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
or dh, 0x80
cmp al, 0xfe
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
je 0x407aed
cmp al, 0xfd
jne 0x407c9d
cmp esi, 0x1d
jne 0x407c74
mov eax, dword [0x433854]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004077aa
sub esi, 0x15
cmp esi, 6
push eax
push eax
jbe 0x407c8f
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
push esi
mov al, byte [edi]
test al, al
jne 0x407a1d
cmp dword [ebp - 0x40], 0
mov eax, 0x434084
mov byte [ebx], 0
je 0x407cd8
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x434084
mov dword [esp], eax
call fcn.00407881
push ebx
push ebx
jmp 0x407cd8
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 1
test eax, eax
jns 0x407b21
cmp ax, 0x5a04
je 0x407b21
mov esi, dword [ebp - 0x3c]
cmp esi, 0x23
sete al
cmp esi, 0x2e
sete dl
or eax, edx
movzx eax, al
mov dword [ebp - 0x44], eax
cmp dword [0x4337c0], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test cl, 0x80
je 0x407b88
mov cl, byte [ebp - 0x48]
xor esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
mov al, cl
and eax, 0x40
movsx eax, al
mov dword [esp + 0x10], eax
mov eax, ecx
and eax, 0x3f
add eax, dword [0x433818]
mov dword [esp + 8], eax
call fcn.00407701
sub esp, 0x14
cmp byte [ebx], 0
jne 0x407bec
mov eax, dword [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004079d1
push eax
push eax
jmp 0x407bec
cmp ecx, 0x25
jne 0x407ba0
mov dword [esp], ebx
mov dword [esp + 4], 0x400
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x407bb6
cmp ecx, 0x24
jne 0x407bec
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
xor esi, esi
jmp 0x407bec
mov eax, dword [0x433850]
test eax, eax
jne 0x407bf4
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp + esi*4 - 0x28]
mov dword [esp + 4], eax
mov eax, dword [0x433854]
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x407c2f
mov byte [ebx], 0
dec esi
cmp esi, 0xffffffff
jne 0x407bbc
jmp 0x407c28
cmp dword [ebp - 0x44], 0
je 0x407bc5
mov edx, dword [ebp + esi*4 - 0x28]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov edx, dword [0x433854]
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x407bc5
cmp byte [ebx], 0
jne 0x407c5a
jmp 0x407c8f
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 - 0x48], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x48]
test eax, eax
push ecx
je 0x407be9
jmp 0x407c28
cmp dword [ebp - 0x3c], 0x1a
jne 0x407c8f
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.004078b4
push eax
push eax
jmp 0x407c8f
mov eax, esi
shl eax, 0xa
add eax, section..ndata
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407881
jmp 0x407a9d
mov dword [esp], ebx
call fcn.00407904
push eax
jmp 0x407aab
inc al
jne 0x407aab
not esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004079d1
push eax
push eax
jmp 0x407aab
lea edx, [ebx + 1]
jne 0x407cce
mov al, byte [edi + 1]
add edi, 2
mov byte [ebx], al
mov ebx, edx
jmp 0x407ab7
mov byte [ebx], al
inc edi
mov ebx, edx
jmp 0x407ab7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8