Function at 0x402540
Capabilities:
Check os version
Create process on windows
Get common file path
Get disk size
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [0x42c518]
dec eax
cmp eax, 5
ja case.0x40254b.4
jmp dword [eax*4 + 0x402568]
jmp fcn.00402aa0
jmp fcn.004062c0
jmp fcn.004037d0
jmp 0x404c00
ret
push 0xffffffffffffffff
push 0x420bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], esi
mov byte [esp + 0x40], al
call fcn.0040cf30
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], edi
mov ebx, 0x422600
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
push edi
push str.run_mx2
push 0x42731c
lea ecx, [esp + 0x34]
add esi, 0x45c
push edi
push ecx
mov ecx, esi
mov byte [esp + 0x68], 2
call fcn.0040f110
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.MxUI.dll_HTMLayout_UseElement]
push eax
mov ebp, eax
mov byte [esp + 0x58], 1
call ebx
mov edi, eax
mov eax, dword [0x4270f0]
neg edi
sbb edi, edi
not edi
and edi, ebp
test eax, eax
mov dword [esp + 0x24], edi
mov al, 1
jne 0x404ca8
mov al, byte [esp + 0x13]
mov ecx, dword [0x42c51c]
test ecx, ecx
je 0x404d58
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call fcn.004105e0
push 0
push str.ChangeLog
push 0x42731c
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, esi
mov byte [esp + 0x68], 4
call fcn.0040f110
mov eax, dword [esp + 0x18]
mov byte [esp + 0x54], 3
push eax
mov ebp, eax
mov dword [esp + 0x18], 0x422600
call ebx
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, ebp
mov dword [esp + 0x28], esi
je 0x404d46
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push str.LogUrl
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutGetAttributeByName]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x404d46
push ebx
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x3c]
push eax
push ebx
call fcn.0040cb90
test esi, esi
mov byte [esp + 0x54], 1
je 0x404d60
push esi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
jmp 0x404d60
test al, al
je 0x404dfd
push 0x42771c
lea ecx, [esp + 0x18]
push 0x42c4b0
push ecx
call fcn.00410f20
add esp, 0xc
mov dl, byte [0x42c4b0]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 5
mov byte [esp + 0x2c], dl
call fcn.0040cf30
mov eax, dword [0x422604]
lea ecx, [esp + 0x28]
push eax
push 0
push 0x42c4b0
call fcn.0040c980
mov eax, dword [esp + 0x2c]
mov edx, 0x422470
test eax, eax
je 0x404db6
mov edx, eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x404dc3
mov ecx, 0x422470
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x404dd0
mov eax, 0x422470
push 5
push edx
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
lea ecx, [esp + 0x2c]
call fcn.0040cf30
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.0040cf30
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0x10
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x404e1c
push edi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
je 0x404e53
mov al, byte [ecx - 1]
test al, al
je 0x404e47
cmp al, 0xff
je 0x404e47
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret