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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5256db
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x587978]
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, dword [ebp + 8]
mov eax, 1
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x24c], edi
test byte [0x589184], al
jne 0x46f793
or dword [0x589184], eax
mov dword [ebp - 4], eax
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [0x589180], eax
mov byte [ebp - 4], 1
push 0x52f8b0
call fcn.004ec87b
add esp, 4
mov byte [ebp - 4], 0
test byte [0x589184], 2
jne 0x46f809
or dword [0x589184], 2
mov dword [ebp - 4], 3
xor eax, eax
push eax
push 0x589168
mov dword [0x589168], eax
mov dword [0x58916c], eax
mov dword [0x589170], eax
mov dword [0x589174], eax
mov dword [0x589178], eax
mov dword [0x58917c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x46f7f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46f7f0
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jns 0x46f7f8
push eax
call fcn.00406170
push 0x52f890
call fcn.004ec87b
add esp, 4
mov byte [ebp - 4], 0
push 0x589168
mov dword [ebp - 0x1e0], 0x589168
mov byte [ebp - 0x1dc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1dc], 1
mov ebx, 4
mov dword [ebp - 4], ebx
mov eax, dword [0x589180]
cmp dword [eax - 0xc], 0
jne 0x470304
xor eax, eax
push 0x11c
push eax
lea ecx, [ebp - 0x1cc]
push ecx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
call fcn.004eafd0
add esp, 0xc
lea edx, [ebp - 0x1cc]
push edx
mov dword [ebp - 0x1cc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x46f90c
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046cd40
add esp, 4
mov byte [ebp - 4], 5
push eax
mov ecx, 0x589180
call fcn.00411920
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1d4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f8ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x589180]
add eax, 0xfffffff0
push eax
call fcn.00406e60
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
jmp 0x47031d
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x1bc], 2
jne 0x4702c1
cmp dword [ebp - 0x1c8], ebx
jbe 0x4702c1
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046cba0
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.004064c0
cmp dword [ebp - 0x1c8], 6
jne case.0x46fa8d.5
cmp dword [ebp - 0x1c4], 0
jne 0x46f9ca
cmp byte [ebp - 0xb2], 1
jne 0x46f998
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046ece0
add esp, 4
mov byte [ebp - 4], 9
jmp 0x46f9ab
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046ea70
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.004064c0
cmp dword [ebp - 0x1c4], 1
jne 0x46fa23
cmp byte [ebp - 0xb2], 1
jne 0x46f9f1
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046e800
add esp, 4
mov byte [ebp - 4], 0xb
jmp 0x46fa04
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046eb40
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.004064c0
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046cc70
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.004064c0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [ebp - 0x1c8]
lea edx, [ebp - 0x200]
push edx
push 0
push 0
push eax
push ecx
call esi
mov eax, dword [ebp - 0x200]
dec eax
cmp eax, 0x2f
ja case.0x46fa8d.5
movzx edx, byte [eax + 0x4703a8]
jmp dword [edx*4 + 0x47035c]
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046e4c0
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
jmp 0x46fe0d
lea ecx, [ebp - 0x204]
push ecx
call fcn.0046cee0
add esp, 4
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x204]
jmp 0x46fe0d
lea edx, [ebp - 0x218]
push edx
call fcn.0046cad0
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x218]
jmp 0x46fe0d
lea eax, [ebp - 0x220]
push eax
call fcn.0046c930
add esp, 4
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
jmp 0x46fe0d
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046c6c0
add esp, 4
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x21c]
jmp 0x46fe0d
lea edx, [ebp - 0x20c]
push edx
call fcn.0046c040
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20c]
jmp 0x46fe0d
lea eax, [ebp - 0x1f0]
push eax
call fcn.0046de40
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f0]
jmp 0x46fe0d
lea ecx, [ebp - 0x210]
push ecx
call fcn.0046c110
add esp, 4
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x210]
jmp 0x46fe0d
lea edx, [ebp - 0x1f8]
push edx
call fcn.0046c2b0
add esp, 4
mov byte [ebp - 4], 0x16
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f8]
jmp 0x46fe0d
lea eax, [ebp - 0x214]
push eax
call fcn.0046c380
add esp, 4
mov byte [ebp - 4], 0x17
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x214]
jmp 0x46fe0d
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.0046c6c0
add esp, 4
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e4]
jmp 0x46fe0d
lea edx, [ebp - 0x224]
push edx
call fcn.0046c790
add esp, 4
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
jmp 0x46fe0d
lea eax, [ebp - 0x208]
push eax
call fcn.0046c860
add esp, 4
mov byte [ebp - 4], 0x1a
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x208]
jmp 0x46fe0d
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.0046db00
add esp, 4
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e8]
jmp 0x46fe0d
lea edx, [ebp - 0x1ec]
push edx
call fcn.0046dbd0
add esp, 4
mov byte [ebp - 4], 0x1c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1ec]
jmp 0x46fe0d
lea eax, [ebp - 0x1f4]
push eax
call fcn.0046dca0
add esp, 4
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f4]
jmp 0x46fe0d
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0046dd70
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1fc]
jmp 0x46fe0d
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046e660
add esp, 4
mov byte [ebp - 4], 0x1f
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
mov esi, 5
cmp dword [ebp - 0x1c8], esi
jne 0x4701b3
cmp dword [ebp - 0x1c4], 2
jne 0x47004e
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x46fe51
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046e9a0
add esp, 4
mov byte [ebp - 4], 0x20
jmp 0x46feca
mov eax, dword [ebp - 0xb4]
test eax, 0x2000
je 0x46fe73
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ec10
add esp, 4
mov byte [ebp - 4], 0x21
jmp 0x46feca
test eax, 0x8000
je 0x46fe8f
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046e8d0
add esp, 4
mov byte [ebp - 4], 0x22
jmp 0x46feca
cmp byte [ebp - 0xb2], 1
jne 0x46feb7
cmp word [ebp - 0x248], 9
jne 0x46feb7
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046ee80
add esp, 4
mov byte [ebp - 4], 0x23
jmp 0x46feca
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046e9a0
add esp, 4
mov byte [ebp - 4], 0x24
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
cmp byte [ebp - 0xb2], 1
je 0x470042
mov eax, dword [ebp - 0x248]
cmp ax, 6
jne 0x46ff44
mov al, byte [ebp - 0xb4]
test al, al
jns 0x46ff24
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c450
add esp, 4
mov byte [ebp - 4], 0x25
jmp 0x470023
test al, 2
je 0x470042
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c450
add esp, 4
mov byte [ebp - 4], 0x26
jmp 0x470023
cmp ax, 9
jne 0x46ffa0
mov al, byte [ebp - 0xb4]
test al, al
jns 0x46ff6c
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046c5f0
add esp, 4
mov byte [ebp - 4], 0x27
jmp 0x470023
test al, 2
je 0x46ff88
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c5f0
add esp, 4
mov byte [ebp - 4], 0x28
jmp 0x470023
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c5f0
add esp, 4
mov byte [ebp - 4], 0x29
jmp 0x470023
mov eax, dword [ebp - 0xb4]
test eax, 0x4000
je 0x46ffc2
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046c1e0
add esp, 4
mov byte [ebp - 4], 0x2a
jmp 0x470023
test al, al
jns 0x46ffdb
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c2b0
add esp, 4
mov byte [ebp - 4], 0x2b
jmp 0x470023
test al, 2
je 0x46fff4
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c6c0
add esp, 4
mov byte [ebp - 4], 0x2c
jmp 0x470023
test eax, 0x400
je 0x470010
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046e590
add esp, 4
mov byte [ebp - 4], 0x2d
jmp 0x470023
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046dca0
add esp, 4
mov byte [ebp - 4], 0x2e
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
cmp dword [ebp - 0x1c8], esi
jne 0x4701b3
cmp dword [ebp - 0x1c4], 1
jne 0x4700ec
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046edb0
add esp, 4
mov byte [ebp - 4], 0x2f
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
test dword [ebp - 0xb4], 0x200
je 0x4700ae
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ca00
add esp, 4
mov byte [ebp - 4], 0x30
jmp 0x4700c1
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046ce10
add esp, 4
mov byte [ebp - 4], 0x31
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
cmp dword [ebp - 0x1c8], esi
jne 0x4701b3
cmp dword [ebp - 0x1c4], 0
jne 0x4701b3
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046e730
add esp, 4
mov byte [ebp - 4], 0x32
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
cmp byte [ebp - 0xb2], 1
jne 0x470149
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ce10
add esp, 4
mov byte [ebp - 4], 0x33
jmp 0x470194
mov al, byte [ebp - 0xb4]
test al, al
jns 0x470168
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c520
add esp, 4
mov byte [ebp - 4], 0x34
jmp 0x470194
test al, 2
je 0x470181
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046bea0
add esp, 4
mov byte [ebp - 4], 0x35
jmp 0x470194
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046da40
add esp, 4
mov byte [ebp - 4], 0x36
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4701c0
sub eax, edx
sar eax, 1
je 0x4701f1
push 0x533c68
mov ecx, 0x589180
call fcn.004118e0
lea edx, [ebp - 0x1b8]
push edx
mov ecx, 0x589180
call fcn.004118e0
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046bf70
mov byte [ebp - 4], 0x37
mov ecx, dword [ebp - 0x1c0]
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0xb0]
push 0x50
push edx
call fcn.0046b150
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0x589180
call fcn.004118e0
cmp dword [ebp - 0x1c8], 6
jb 0x470304
mov eax, dword [ebp - 0x248]
cmp ax, 9
jne 0x470288
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046f020
add esp, 4
mov byte [ebp - 4], 0x38
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
jmp 0x470304
test ax, ax
jne 0x470304
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046ef50
add esp, 4
mov byte [ebp - 4], 0x39
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x589180
call fcn.0040f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.004064c0
jmp 0x470304
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046cd40
add esp, 4
mov byte [ebp - 4], 0x3a
push eax
mov ecx, 0x589180
call fcn.00411920
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x589180]
add eax, 0xfffffff0
push eax
call fcn.00406e60
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1d8], 1
mov byte [ebp - 4], 0
push 0x589168
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov byte [ebp - 0x1dc], 0
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.004eaf3b
mov esp, ebp
pop ebp
ret