Function at 0x407c2f
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 0x407c4a
mov edx, dword [0x4373a4]
not eax
mov eax, dword [edx + eax*4]
add eax, dword [0x436ad8]
mov ebx, 0x4373c0
mov edi, eax
mov eax, dword [ebp + 8]
sub eax, 0x4373c0
cmp eax, 0x7ff
ja 0x407d17
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 0
jmp 0x407d17
mov edx, ebx
sub edx, 0x4373c0
cmp edx, 0x3ff
jg 0x407d21
cmp al, 0xfc
jbe 0x407f29
mov cl, byte [edi + 2]
add edi, 3
mov byte [ebp - 0x48], cl
mov cl, byte [edi - 2]
mov esi, dword [ebp - 0x48]
mov byte [ebp - 0x58], cl
mov ecx, dword [ebp - 0x58]
and esi, 0x7f
shl esi, 7
and ecx, 0x7f
or esi, ecx
movsx ecx, byte [ebp - 0x58]
mov edx, ecx
mov dword [ebp - 0x24], ecx
or dh, 0x80
mov dword [ebp - 0x28], edx
movsx edx, byte [ebp - 0x48]
mov dword [ebp - 0x48], edx
or dh, 0x80
cmp al, 0xfe
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edx
je 0x407d4d
cmp al, 0xfd
jne 0x407f0c
cmp esi, 0x1d
jne 0x407ee3
mov eax, dword [0x436b44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407a0c
sub esi, 0x15
push eax
push eax
cmp esi, 6
jbe 0x407efe
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
add ebx, eax
mov al, byte [edi]
test al, al
jne 0x407c79
cmp dword [ebp + 8], 0
mov byte [ebx], 0
mov eax, 0x4373c0
je 0x407f47
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4373c0
mov dword [esp], eax
call fcn.00407adf
push edx
push edx
jmp 0x407f47
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0x60]
jns 0x407d80
cmp ax, 0x5a04
je 0x407d80
cmp dword [ebp - 0x48], 0x23
sete dl
cmp dword [ebp - 0x48], 0x2e
sete al
or eax, edx
movzx eax, al
mov dword [ebp - 0x5c], eax
cmp dword [0x436a3c], 1
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
test cl, 0x80
je 0x407df3
mov al, byte [ebp - 0x58]
mov dword [esp + 0xc], ebx
xor esi, esi
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 [0x436ad8]
mov dword [esp + 8], eax
call fcn.00407963
sub esp, 0x14
cmp byte [ebx], 0
jne 0x407de4
mov eax, dword [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407c2f
push eax
push eax
mov al, byte [ebp - 0x5c]
lea esi, [ebp + esi*4 - 0x28]
and eax, 1
mov byte [ebp - 0x58], al
jmp 0x407e5b
cmp ecx, 0x25
jne 0x407e0b
mov dword [esp], ebx
mov dword [esp + 4], 0x400
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x407e21
cmp ecx, 0x24
jne 0x407de4
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
xor esi, esi
jmp 0x407de4
cmp byte [ebp - 0x58], 0
mov eax, dword [0x436b40]
jne 0x407e64
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
mov eax, dword [0x436b44]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x407eb4
mov byte [ebx], 0
sub esi, 4
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x407e27
jmp 0x407e95
test eax, eax
je 0x407e32
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 [0x436b44]
mov dword [esp], ecx
call eax
sub esp, 0x14
test eax, eax
jne 0x407e32
cmp dword [ebp - 0x48], 0x1a
jne 0x407efe
cmp byte [ebx], 0
je 0x407efe
mov dword [esp + 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [esp], ebx
call fcn.00407b12
push eax
push eax
jmp 0x407efe
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x2c]
push edx
push edx
mov dword [ebp - 0x5c], eax
mov dword [esp], ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x5c]
push ecx
test eax, eax
je 0x407e55
jmp 0x407e95
mov eax, esi
mov dword [esp], ebx
shl eax, 0xa
add eax, section..ndata
mov dword [esp + 4], eax
call fcn.00407adf
jmp 0x407cfd
mov dword [esp], ebx
call fcn.00407b62
push eax
jmp 0x407d0b
inc al
jne 0x407d0b
not esi
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00407c2f
push esi
push esi
jmp 0x407d0b
lea edx, [ebx + 1]
jne 0x407f3d
mov al, byte [edi + 1]
add edi, 2
mov byte [ebx], al
mov ebx, edx
jmp 0x407d17
mov byte [ebx], al
inc edi
mov ebx, edx
jmp 0x407d17
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8