Function at 0x4289c0
Capabilities:
Check if file exists
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626aa9
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1d0], 0
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0x676964
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00403c30
mov dword [ebp - 4], 1
xor eax, eax
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x676964
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c30
mov byte [ebp - 4], 2
push 0x3f
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 0x67c070
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00403c30
mov byte [ebp - 4], 3
cmp dword [ebp - 0x44], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x1c4]
push ecx
push 1
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push 0x80000001
call esi
test eax, eax
je 0x428ead
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
push edx
push 0x67c03c
push eax
call dword [ecx + 0x14]
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push 0x67b2dc
call fcn.004035b0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1cc]
call fcn.004252e0
mov edx, dword [ebp - 0x1cc]
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.004248b0
test al, al
jne 0x428d52
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
push edx
push 0x67ad80
push eax
call dword [ecx + 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c0]
push 0x11c
push 0
push eax
call fcn.005edd10
add esp, 0xc
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - 0x1c0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x428b99
mov ecx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1b8]
jmp 0x428b9f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 5
jne 0x428cc1
cmp eax, 1
jne 0x428cc1
lea ecx, [ebp - 0xa0]
call fcn.004282d0
mov byte [ebp - 4], 5
push 1
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040ca70
mov byte [ebp - 4], 6
push 0x67c1b0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00404680
add esp, 0xc
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.00403640
cmp dword [eax + 0x14], 8
jb 0x428c04
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1f0]
call fcn.00403680
test bl, bl
je 0x428c58
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00403610
mov dword [ebp - 0x1d0], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00403680
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00403680
jmp 0x42900d
push 0x67c220
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00404680
add esp, 0xc
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x28]
call fcn.00403640
mov ecx, eax
call fcn.004a0af0
mov bl, al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1f0]
call fcn.00403680
test bl, bl
je 0x428ca6
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00403610
jmp 0x428c2e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00403680
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00403680
push 0x677708
mov ecx, edi
call fcn.004035b0
mov dword [ebp - 0x1d0], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x428cec
push dword [ebp - 0x58]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x428d11
push dword [ebp - 0x28]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x2c], 8
jb 0x428d39
push dword [ebp - 0x40]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x429031
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
push edx
push 0x67ae98
push eax
call dword [ecx + 0x14]
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x677634
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404680
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404780
add esp, 0xc
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x5c], 8
jb 0x428dbc
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
xor eax, eax
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x1c4]
push ecx
mov word [ebp - 0x70], ax
push 1
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push 0
push eax
push 0x80000003
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
call esi
test eax, eax
je 0x428e7e
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
push edx
push 0x67aed8
push eax
call dword [ecx + 0x14]
add esp, 0xc
mov ecx, edi
push 0x677708
mov dword [ebp - 0x1c4], 0
call fcn.004035b0
mov dword [ebp - 0x1d0], 1
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x428e62
push dword [ebp - 0x88]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jmp 0x428cd7
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x428e96
push dword [ebp - 0x88]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c8]
push eax
push 0
push 0
push 0
push 0x67c208
push dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], 0
call esi
test eax, eax
je 0x428f08
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x67c0f0
push eax
call dword [ecx + 0x14]
add esp, 8
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428cc1
mov eax, dword [ebp - 0x1c8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c56b9
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x1c8]
push eax
push ebx
push 0
push 0
push 0x67c208
push dword [ebp - 0x1c4]
call esi
push dword [ebp - 0x1c4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x428f7b
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x67c160
push eax
call dword [ecx + 0x14]
push ebx
call fcn.004c56c2
add esp, 0xc
jmp 0x428cc1
push ebx
lea ecx, [ebp - 0x70]
call fcn.004035b0
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.00403640
mov byte [ebp - 4], 3
cmp dword [ebp - 0x5c], 8
jb 0x428fa6
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
xor eax, eax
push ebx
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004c56c2
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, edi
test eax, eax
je 0x428ff9
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00403760
jmp 0x429003
push 0x677708
call fcn.004035b0
mov dword [ebp - 0x1d0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403680
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret