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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52587b
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 0x46f5b3
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 0x52fae0
call fcn.004ecaab
add esp, 4
mov byte [ebp - 4], 0
test byte [0x589184], 2
jne 0x46f629
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 0x46f618
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46f610
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jns 0x46f618
push eax
call fcn.00406170
push 0x52fac0
call fcn.004ecaab
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 0x470124
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.004eb200
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 0x46f72c
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046cb60
add esp, 4
mov byte [ebp - 4], 5
push eax
mov ecx, 0x589180
call fcn.00411c00
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 0x46f70e
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.00406d80
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
jmp 0x47013d
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x1bc], 2
jne 0x4700e1
cmp dword [ebp - 0x1c8], ebx
jbe 0x4700e1
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046c9c0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406ef0
cmp dword [ebp - 0x1c8], 6
jne case.0x46f8ad.5
cmp dword [ebp - 0x1c4], 0
jne 0x46f7ea
cmp byte [ebp - 0xb2], 1
jne 0x46f7b8
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046eb00
add esp, 4
mov byte [ebp - 4], 9
jmp 0x46f7cb
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046e890
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406ef0
cmp dword [ebp - 0x1c4], 1
jne 0x46f843
cmp byte [ebp - 0xb2], 1
jne 0x46f811
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046e620
add esp, 4
mov byte [ebp - 4], 0xb
jmp 0x46f824
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046e960
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406ef0
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046ca90
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.00406ef0
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.0x46f8ad.5
movzx edx, byte [eax + 0x4701c8]
jmp dword [edx*4 + 0x47017c]
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046e2e0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
jmp 0x46fc2d
lea ecx, [ebp - 0x204]
push ecx
call fcn.0046cd00
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x204]
jmp 0x46fc2d
lea edx, [ebp - 0x218]
push edx
call fcn.0046c8f0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x218]
jmp 0x46fc2d
lea eax, [ebp - 0x220]
push eax
call fcn.0046c750
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
jmp 0x46fc2d
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046c4e0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x21c]
jmp 0x46fc2d
lea edx, [ebp - 0x20c]
push edx
call fcn.0046be60
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20c]
jmp 0x46fc2d
lea eax, [ebp - 0x1f0]
push eax
call fcn.0046dc60
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f0]
jmp 0x46fc2d
lea ecx, [ebp - 0x210]
push ecx
call fcn.0046bf30
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x210]
jmp 0x46fc2d
lea edx, [ebp - 0x1f8]
push edx
call fcn.0046c0d0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f8]
jmp 0x46fc2d
lea eax, [ebp - 0x214]
push eax
call fcn.0046c1a0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x214]
jmp 0x46fc2d
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.0046c4e0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e4]
jmp 0x46fc2d
lea edx, [ebp - 0x224]
push edx
call fcn.0046c5b0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
jmp 0x46fc2d
lea eax, [ebp - 0x208]
push eax
call fcn.0046c680
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x208]
jmp 0x46fc2d
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.0046d920
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e8]
jmp 0x46fc2d
lea edx, [ebp - 0x1ec]
push edx
call fcn.0046d9f0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1ec]
jmp 0x46fc2d
lea eax, [ebp - 0x1f4]
push eax
call fcn.0046dac0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f4]
jmp 0x46fc2d
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0046db90
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1fc]
jmp 0x46fc2d
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046e480
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
mov esi, 5
cmp dword [ebp - 0x1c8], esi
jne 0x46ffd3
cmp dword [ebp - 0x1c4], 2
jne 0x46fe6e
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x46fc71
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046e7c0
add esp, 4
mov byte [ebp - 4], 0x20
jmp 0x46fcea
mov eax, dword [ebp - 0xb4]
test eax, 0x2000
je 0x46fc93
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ea30
add esp, 4
mov byte [ebp - 4], 0x21
jmp 0x46fcea
test eax, 0x8000
je 0x46fcaf
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046e6f0
add esp, 4
mov byte [ebp - 4], 0x22
jmp 0x46fcea
cmp byte [ebp - 0xb2], 1
jne 0x46fcd7
cmp word [ebp - 0x248], 9
jne 0x46fcd7
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046eca0
add esp, 4
mov byte [ebp - 4], 0x23
jmp 0x46fcea
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046e7c0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
cmp byte [ebp - 0xb2], 1
je 0x46fe62
mov eax, dword [ebp - 0x248]
cmp ax, 6
jne 0x46fd64
mov al, byte [ebp - 0xb4]
test al, al
jns 0x46fd44
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c270
add esp, 4
mov byte [ebp - 4], 0x25
jmp 0x46fe43
test al, 2
je 0x46fe62
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c270
add esp, 4
mov byte [ebp - 4], 0x26
jmp 0x46fe43
cmp ax, 9
jne 0x46fdc0
mov al, byte [ebp - 0xb4]
test al, al
jns 0x46fd8c
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046c410
add esp, 4
mov byte [ebp - 4], 0x27
jmp 0x46fe43
test al, 2
je 0x46fda8
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c410
add esp, 4
mov byte [ebp - 4], 0x28
jmp 0x46fe43
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c410
add esp, 4
mov byte [ebp - 4], 0x29
jmp 0x46fe43
mov eax, dword [ebp - 0xb4]
test eax, 0x4000
je 0x46fde2
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046c000
add esp, 4
mov byte [ebp - 4], 0x2a
jmp 0x46fe43
test al, al
jns 0x46fdfb
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c0d0
add esp, 4
mov byte [ebp - 4], 0x2b
jmp 0x46fe43
test al, 2
je 0x46fe14
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c4e0
add esp, 4
mov byte [ebp - 4], 0x2c
jmp 0x46fe43
test eax, 0x400
je 0x46fe30
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046e3b0
add esp, 4
mov byte [ebp - 4], 0x2d
jmp 0x46fe43
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046dac0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
cmp dword [ebp - 0x1c8], esi
jne 0x46ffd3
cmp dword [ebp - 0x1c4], 1
jne 0x46ff0c
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046ebd0
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
test dword [ebp - 0xb4], 0x200
je 0x46fece
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046c820
add esp, 4
mov byte [ebp - 4], 0x30
jmp 0x46fee1
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046cc30
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
cmp dword [ebp - 0x1c8], esi
jne 0x46ffd3
cmp dword [ebp - 0x1c4], 0
jne 0x46ffd3
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046e550
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
cmp byte [ebp - 0xb2], 1
jne 0x46ff69
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046cc30
add esp, 4
mov byte [ebp - 4], 0x33
jmp 0x46ffb4
mov al, byte [ebp - 0xb4]
test al, al
jns 0x46ff88
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046c340
add esp, 4
mov byte [ebp - 4], 0x34
jmp 0x46ffb4
test al, 2
je 0x46ffa1
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046bcc0
add esp, 4
mov byte [ebp - 4], 0x35
jmp 0x46ffb4
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046d860
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ffe0
sub eax, edx
sar eax, 1
je 0x470011
push 0x533c68
mov ecx, 0x589180
call fcn.00411bc0
lea edx, [ebp - 0x1b8]
push edx
mov ecx, 0x589180
call fcn.00411bc0
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046bd90
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.0046b130
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0x589180
call fcn.00411bc0
cmp dword [ebp - 0x1c8], 6
jb 0x470124
mov eax, dword [ebp - 0x248]
cmp ax, 9
jne 0x4700a8
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ee40
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
jmp 0x470124
test ax, ax
jne 0x470124
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046ed70
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.0040f910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406ef0
jmp 0x470124
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046cb60
add esp, 4
mov byte [ebp - 4], 0x3a
push eax
mov ecx, 0x589180
call fcn.00411c00
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 0x470124
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.00406d80
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.004eb16b
mov esp, ebp
pop ebp
ret