Function at 0x403630
Capabilities:
Check os version
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
mov eax, dword [0x415070]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x4f4], eax
xor eax, eax
mov dword [esp + 0x38], 0x94
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x4c], 0
mov ecx, 0x1f
lea edi, [esp + 0x4d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], esi
mov dword [edx], esi
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4036c4
push 4
push esi
call fcn.00402d30
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x4f4]
call fcn.0040851d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x48], 2
jne 0x4036af
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x2e0]
push edx
lea eax, [esp + 0x1dc]
push eax
mov dword [0x416b5c], 1
mov dword [0x416b60], ecx
call fcn.004027c0
add esp, 8
test eax, eax
je 0x4037c5
lea ecx, [esp + 0x1d8]
push ecx
call fcn.00403070
lea edx, [esp + 0x2e4]
push edx
mov ebx, eax
call fcn.00403070
mov edi, eax
mov eax, dword [0x416b60]
add esp, 8
cmp eax, ebx
jne 0x40372f
cmp edi, esi
ja 0x403735
cmp eax, ebx
jae 0x4037ca
test edi, edi
jbe 0x40379c
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SystemCurrentControlSetControlWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403797
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.CSDVersion
push eax
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403788
movzx ecx, word [esp + 0x18]
cmp ecx, edi
sbb esi, esi
inc esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4037c3
mov eax, dword [0x416b60]
cmp eax, ebx
jne 0x4036af
mov eax, dword [esp + 0x10]
mov dword [eax], 1
xor eax, eax
mov ecx, dword [esp + 0x4f4]
call fcn.0040851d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [0x416b60]
cmp dword [0x416b5c], esi
je 0x4037ec
cmp eax, 4
jb 0x4036af
cmp dword [0x41708c], esi
jne 0x4037ec
cmp eax, 5
jae 0x40393f
push 0x104
lea ecx, [esp + 0x3ec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x3e8]
push edx
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.MSI.DLL
lea ecx, [esp + 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403866
push str.DllGetVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40385f
lea ecx, [esp + 0x24]
push ecx
call eax
test eax, eax
jne 0x40385f
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x10]
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [edi], eax
jne 0x40393f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004035d0
add esp, 8
neg eax
sbb eax, eax
inc eax
jne 0x4038c7
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4038c7
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xd8]
push 0
push eax
call fcn.004033d0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4038e7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
shl ecx, 0x10
shl edx, 0x10
and esi, 0xffff
or ecx, ebx
or edx, esi
mov esi, dword [esp + 0x14]
cmp esi, 0x10032
sbb ebx, ebx
neg ebx
mov dword [0x4170d4], ebx
mov ebx, dword [0x416b5c]
test ebx, ebx
je 0x40390e
cmp dword [0x416b60], 5
jae 0x40393f
test eax, eax
jne 0x403922
cmp ecx, esi
jb 0x403922
jne 0x40391e
cmp edx, dword [esp + 0x10]
jb 0x403922
xor edx, edx
jmp 0x403927
mov edx, 1
mov esi, dword [edi]
or esi, edx
test eax, eax
mov dword [edi], esi
jne 0x40393f
shr ecx, 0x10
neg ecx
sbb ecx, ecx
inc ecx
mov dword [0x4170d0], ecx
mov ecx, dword [esp + 0x4f4]
mov eax, 1
call fcn.0040851d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret