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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x188
mov eax, dword [0x42300c]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x40e654
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40443f
and dword [esp + 8], 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x10]
call eax
test eax, eax
jne 0x404436
push 2
pop eax
jmp 0x40443f
xor eax, eax
cmp dword [esp + 8], eax
setne al
mov dword [esi + 0x4c], eax
xor eax, eax
mov dword [esi + 0x60], eax
push 0x118
push eax
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], al
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x74], 0x11c
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
and dword [esi + 0x18], 0
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.004042f9
mov dword [esi], eax
lea ecx, [esp + 0x3c]
movzx eax, word [esp + 0x180]
add esp, 4
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x17e]
mov dword [esi + 0x24], eax
lea eax, [esp + 0x7c]
push eax
call fcn.004016d7
lea edx, [esp + 0x38]
lea ecx, [esp + 0x50]
call fcn.00402fa1
push eax
lea ecx, [esi + 0x28]
call fcn.00402cf8
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.00401db9
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.004014dc
push 9
pop eax
mov ecx, eax
lea edi, [esp + 0x14]
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [esp + 0x14]
push 6
pop edi
movzx eax, cx
push 9
pop edx
test eax, eax
je 0x404533
cmp eax, edi
je 0x40452a
cmp eax, edx
jne 0x404537
mov dword [esi + 0x40], 1
jmp 0x404537
mov dword [esi + 0x40], 2
jmp 0x404537
and dword [esi + 0x40], 0
mov eax, dword [esp + 0x28]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x48], eax
cmp dword [esp + 0x6c], edi
je 0x4045ad
cmp dword [esp + 0x6c], 0xa
je 0x4045ad
cmp dword [esp + 0x6c], 5
jne 0x4045fa
cmp dword [esp + 0x70], 2
jne 0x404590
cmp byte [esp + 0x182], 1
jne 0x404577
cmp cx, dx
je 0x404628
mov ax, word [esp + 0x180]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [esi + 0x1c], eax
jmp 0x4045fe
cmp dword [esp + 0x70], 1
jne 0x4045fa
mov ax, word [esp + 0x180]
not ax
movzx eax, ax
shr eax, 9
and eax, 1
jmp 0x40458b
push str.GetProductInfo
push 0x40e654
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call eax
mov eax, dword [esp + 0x10]
cmp eax, 0xf
ja 0x404614
cmp eax, 0xc
jae 0x404631
cmp eax, 1
je 0x404628
cmp eax, 4
je 0x404628
cmp eax, edi
je 0x404628
jbe 0x4045fa
cmp eax, 0xa
jbe 0x404631
and dword [esi + 0x1c], 0
mov ecx, dword [esp + 0x18c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040c535
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
jb 0x4045fa
cmp eax, 0x12
jbe 0x404631
cmp eax, 0x19
je 0x404631
cmp eax, 0x30
jne 0x4045fa
mov dword [esi + 0x1c], 1
jmp 0x4045fe
mov dword [esi + 0x1c], 2
jmp 0x4045fe