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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420982
push eax
mov eax, dword [0x42c628]
mov dword fs:[0], esp
sub esp, 0x664
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
jbe 0x402b14
mov eax, dword [0x42c624]
cmp eax, ebp
jne 0x402ada
mov eax, 0x422470
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x48]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402bb4
mov edx, dword [0x422604]
mov ecx, 0x42c4b0
push edx
push ebp
push 0x42c620
call fcn.0040c980
jmp 0x402c99
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ebp
push eax
push 0x20019
push ebp
push str.SOFTWAREMaxthon2
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x402bb4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
stosw word es:[edi], ax
push ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push str.Folder
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x5c]
push edx
call fcn.00417a8e
add esp, 4
test eax, eax
je 0x402bb4
lea eax, [esp + 0x5c]
mov dword [esi + 0x5e4], 1
push eax
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, 0x42c4b0
call fcn.0040cb90
jmp 0x402c99
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x60], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x60]
push ebp
cmp eax, 6
jb 0x402c04
lea eax, [esp + 0x268]
push 0x1a
push eax
jmp 0x402c0e
lea ecx, [esp + 0x268]
push 0x26
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.0040cf30
lea eax, [esp + 0x264]
push eax
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x264]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040cb90
push 0x427374
mov dword [esp + 0x680], ebp
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x427374
call fcn.0040a1a0
mov edx, dword [0x422604]
lea eax, [esp + 0x14]
push edx
push ebp
push eax
mov ecx, 0x42c4b0
call fcn.0040c980
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x680], 0xffffffff
call fcn.0040cf30
mov eax, dword [0x42c590]
mov ebx, 3
push ebp
mov dword [0x42c518], ebx
push 0x427344
mov ecx, esi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0x66
mov dword [esi + 0x38], eax
call fcn.0040d7c0
mov ecx, dword [esi + 0x454]
cmp ecx, ebp
je 0x402cd9
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x454], ebp
mov ecx, esi
call fcn.0040cfa0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov ebp, 0x422600
mov dword [esp + 0x67c], 1
mov dword [esp + 0x24], ebp
push 0
push str.install_path
push 0x42731c
lea eax, [esp + 0x30]
push 0
push eax
lea ecx, [esi + 0x45c]
mov byte [esp + 0x690], 2
call fcn.0040f110
mov eax, dword [esp + 0x28]
mov byte [esp + 0x67c], 1
push eax
mov edi, eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.MxUI.dll_HTMLayout_UseElement]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x14], esi
je 0x402ed4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42c4b4]
test eax, eax
jne 0x402d79
mov eax, 0x422470
push 0x5c
push 0x32
lea ecx, [esp + 0x474]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCompactPathExW]
mov dl, byte [0x42c4b0]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.0040cf30
mov eax, dword [0x422604]
lea ecx, [esp + 0x34]
push eax
push 0
push 0x42c4b0
call fcn.0040c980
mov eax, dword [0x42c4b8]
mov byte [esp + 0x67c], bl
cmp eax, 0x2d
jb 0x402e82
push ebx
lea ecx, [esp + 0x28]
push 0
push ecx
mov ecx, 0x42c4b0
call fcn.0040a270
mov edx, dword [0x422604]
lea ecx, [esp + 0x34]
push edx
push 0
push eax
mov byte [esp + 0x688], 4
call fcn.0040c980
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x680], bl
call fcn.0040cf30
push 0x427320
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x34]
push eax
push 0x427320
call fcn.0040a1a0
mov eax, dword [0x42c4b8]
push eax
lea ecx, [eax - 0x28]
lea eax, [esp + 0x50]
push ecx
push eax
mov ecx, 0x42c4b0
call fcn.0040a270
mov ecx, dword [0x422604]
mov byte [esp + 0x67c], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0040e570
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402e82
mov cl, byte [eax - 1]
test cl, cl
je 0x402e76
cmp cl, 0xff
je 0x402e76
dec cl
mov byte [eax - 1], cl
jmp 0x402e82
add eax, 0xfffffffe
push eax
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x38]
mov edi, 0x422470
test ecx, ecx
je 0x402e91
mov edi, ecx
test edi, edi
je 0x402eab
push edi
call fcn.00417a8e
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutSetElementInnerText16]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x402ecd
mov al, byte [ecx - 1]
test al, al
je 0x402ec1
cmp al, 0xff
je 0x402ec1
dec al
mov byte [ecx - 1], al
jmp 0x402ecd
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
push esi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x670
ret