Function at 0x419c40
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x28]
mov dword [edi], 0
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [edi + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419cd1
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0
push ecx
push esi
call eax
test eax, eax
jne 0x419cc6
mov eax, 2
jmp 0x419cd1
xor eax, eax
cmp dword [ebp - 0x15c], eax
setne al
mov dword [edi + 0x4c], eax
lea eax, [ebp - 0x154]
push pe_nt_image_headers32
push 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
push eax
mov byte [edi + 0x50], 0
mov dword [ebp - 0x158], 0x11c
call fcn.00429740
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x154]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x15c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x15c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419dad
mov esi, dword [ebp - 0x15c]
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
push eax
push 0x454374
mov dword [ebp - 0x168], esi
call fcn.0041d3d0
test esi, esi
je 0x419da5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x160]
jmp 0x419daf
xor eax, eax
push dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x18], eax
call fcn.00419bb0
mov dword [edi], eax
lea esi, [ebp - 0x144]
movzx eax, word [ebp - 0x44]
lea ecx, [esi + 2]
mov dword [edi + 0x20], eax
add esp, 4
movzx eax, word [ebp - 0x42]
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419df0
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x419e29
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x144]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004283e0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x1c], ax
jmp 0x419ed9
cmp esi, 0x7ffffffe
ja 0x41a1a6
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x419e49
mov ebx, 0x7ffffffe
jmp 0x419e53
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
test eax, eax
jne 0x419e64
xor ecx, ecx
mov dword [ebp - 0x15c], ecx
jmp 0x419eae
cmp eax, 0x7fffffff
ja 0x41a1ab
add eax, eax
cmp eax, 0x1000
jb 0x419e9d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41a1b0
push ecx
call fcn.0042769c
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x15c], ecx
mov dword [ecx - 4], eax
jmp 0x419eae
push eax
call fcn.0042769c
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, eax
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x144]
add esi, esi
mov dword [ebp - 8], ebx
push esi
push eax
push ecx
call fcn.004291c0
mov eax, dword [ebp - 0x15c]
lea ebx, [edi + 0x28]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.0041b2f0
mov esi, eax
cmp ebx, esi
je 0x419f6f
mov eax, dword [ebx + 0x14]
cmp eax, 0x10
jb 0x419f3d
xor dl, dl
lea ecx, [eax + 1]
mov eax, dword [ebx]
jne 0x41a1b5
cmp ecx, 0x1000
jb 0x419f34
test al, 0x1f
jne 0x41a1b5
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x41a1b5
sub eax, ecx
cmp eax, 4
jb 0x41a1b5
cmp eax, 0x23
ja 0x41a1b5
mov eax, ecx
push eax
call fcn.0042740d
add esp, 4
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
movups xmm0, xmmword [esi]
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x419fbf
xor dl, dl
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x34]
jne 0x41a1b5
cmp ecx, 0x1000
jb 0x419fb6
test al, 0x1f
jne 0x41a1b5
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x41a1b5
sub eax, ecx
cmp eax, 4
jb 0x41a1b5
cmp eax, 0x23
ja 0x41a1b5
mov eax, ecx
push eax
call fcn.0042740d
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x41a024
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x7fffffff
ja 0x41a1b5
add eax, eax
cmp eax, 0x1000
jb 0x41a01b
test cl, 0x1f
jne 0x41a1b5
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41a1b5
sub ecx, eax
cmp ecx, 4
jb 0x41a1b5
cmp ecx, 0x23
ja 0x41a1b5
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x170], 0
lea eax, [ebp - 0x190]
push eax
movups xmmword [ebp - 0x190], xmm0
movups xmmword [ebp - 0x180], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x190]
movzx eax, cx
test eax, eax
je 0x41a076
cmp eax, 6
je 0x41a06d
cmp eax, 9
jne 0x41a07d
mov dword [edi + 0x40], 1
jmp 0x41a07d
mov dword [edi + 0x40], 2
jmp 0x41a07d
mov dword [edi + 0x40], 0
mov eax, dword [ebp - 0x17c]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x174]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x154]
cmp eax, 6
je 0x41a10e
cmp eax, 0xa
je 0x41a10e
cmp eax, 5
jne case.0x41a151.2
mov eax, dword [ebp - 0x150]
cmp eax, 2
jne 0x41a0e4
cmp byte [ebp - 0x3e], 1
jne 0x41a0c3
cmp cx, 9
je case.0x41a151.1
mov eax, dword [ebp - 0x40]
shr eax, 0xe
not eax
and eax, 2
mov dword [edi + 0x1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.0x41a151.2
mov eax, dword [ebp - 0x40]
shr eax, 9
not eax
and eax, 1
mov dword [edi + 0x1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x16c]
push ecx
push 0
push 0
push dword [ebp - 0x150]
push dword [ebp - 0x154]
call eax
mov eax, dword [ebp - 0x16c]
dec eax
cmp eax, 0x2f
ja case.0x41a151.2
movzx eax, byte [eax + 0x41a1c8]
jmp dword [eax*4 + 0x41a1bc]
mov dword [edi + 0x1c], 2
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [edi + 0x1c], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
call fcn.004028e1
call fcn.00426e1c
call fcn.00426e1c
call fcn.0042c6c3
nop
jb 0x41a15f
inc ecx
add byte [eax - 0x5f], bl
inc ecx
add byte [ecx + 0x2000041], cl
add al, byte [eax]
add al, byte [eax]
add dword [ecx], eax
add dword [ecx], eax
add al, byte [ecx]
add dword [ecx], eax
add dword [edx], eax
add dword [ecx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
int3