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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbbeb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x52de08]
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 [0x52f60c], al
jne 0x46ffa3
or dword [0x52f60c], eax
mov dword [ebp - 4], eax
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [0x52f608], eax
mov byte [ebp - 4], 1
push 0x4e5d30
call fcn.004ac3db
add esp, 4
mov byte [ebp - 4], 0
test byte [0x52f60c], 2
jne 0x470019
or dword [0x52f60c], 2
mov dword [ebp - 4], 3
xor eax, eax
push eax
push 0x52f5f0
mov dword [0x52f5f0], eax
mov dword [0x52f5f4], eax
mov dword [0x52f5f8], eax
mov dword [0x52f5fc], eax
mov dword [0x52f600], eax
mov dword [0x52f604], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x470008
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x470000
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jns 0x470008
push eax
call fcn.00406170
push 0x4e5d10
call fcn.004ac3db
add esp, 4
mov byte [ebp - 4], 0
push 0x52f5f0
mov dword [ebp - 0x1e0], 0x52f5f0
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 [0x52f608]
cmp dword [eax - 0xc], 0
jne 0x470b14
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.004aab30
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 0x47011c
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046d700
add esp, 4
mov byte [ebp - 4], 5
push eax
mov ecx, 0x52f608
call fcn.00412bf0
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 0x4700fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x52f608]
add eax, 0xfffffff0
push eax
call fcn.00406ee0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
jmp 0x470b2d
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x1bc], 2
jne 0x470ad1
cmp dword [ebp - 0x1c8], ebx
jbe 0x470ad1
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046d560
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406650
cmp dword [ebp - 0x1c8], 6
jne case.0x47029d.5
cmp dword [ebp - 0x1c4], 0
jne 0x4701da
cmp byte [ebp - 0xb2], 1
jne 0x4701a8
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046f6a0
add esp, 4
mov byte [ebp - 4], 9
jmp 0x4701bb
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046f430
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406650
cmp dword [ebp - 0x1c4], 1
jne 0x470233
cmp byte [ebp - 0xb2], 1
jne 0x470201
lea edx, [ebp - 0x1d4]
push edx
call fcn.0046f1c0
add esp, 4
mov byte [ebp - 4], 0xb
jmp 0x470214
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046f500
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00406650
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0046d630
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.00406650
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.0x47029d.5
movzx edx, byte [eax + 0x470bb8]
jmp dword [edx*4 + 0x470b6c]
lea eax, [ebp - 0x1d4]
push eax
call fcn.0046ee80
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
jmp 0x47061d
lea ecx, [ebp - 0x204]
push ecx
call fcn.0046d8a0
add esp, 4
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x204]
jmp 0x47061d
lea edx, [ebp - 0x218]
push edx
call fcn.0046d490
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x218]
jmp 0x47061d
lea eax, [ebp - 0x220]
push eax
call fcn.0046d2f0
add esp, 4
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
jmp 0x47061d
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046d080
add esp, 4
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x21c]
jmp 0x47061d
lea edx, [ebp - 0x20c]
push edx
call fcn.0046ca00
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20c]
jmp 0x47061d
lea eax, [ebp - 0x1f0]
push eax
call fcn.0046e800
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f0]
jmp 0x47061d
lea ecx, [ebp - 0x210]
push ecx
call fcn.0046cad0
add esp, 4
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x210]
jmp 0x47061d
lea edx, [ebp - 0x1f8]
push edx
call fcn.0046cc70
add esp, 4
mov byte [ebp - 4], 0x16
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f8]
jmp 0x47061d
lea eax, [ebp - 0x214]
push eax
call fcn.0046cd40
add esp, 4
mov byte [ebp - 4], 0x17
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x214]
jmp 0x47061d
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.0046d080
add esp, 4
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e4]
jmp 0x47061d
lea edx, [ebp - 0x224]
push edx
call fcn.0046d150
add esp, 4
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
jmp 0x47061d
lea eax, [ebp - 0x208]
push eax
call fcn.0046d220
add esp, 4
mov byte [ebp - 4], 0x1a
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x208]
jmp 0x47061d
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.0046e4c0
add esp, 4
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1e8]
jmp 0x47061d
lea edx, [ebp - 0x1ec]
push edx
call fcn.0046e590
add esp, 4
mov byte [ebp - 4], 0x1c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1ec]
jmp 0x47061d
lea eax, [ebp - 0x1f4]
push eax
call fcn.0046e660
add esp, 4
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1f4]
jmp 0x47061d
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0046e730
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1fc]
jmp 0x47061d
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046f020
add esp, 4
mov byte [ebp - 4], 0x1f
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
mov esi, 5
cmp dword [ebp - 0x1c8], esi
jne 0x4709c3
cmp dword [ebp - 0x1c4], 2
jne 0x47085e
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x470661
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046f360
add esp, 4
mov byte [ebp - 4], 0x20
jmp 0x4706da
mov eax, dword [ebp - 0xb4]
test eax, 0x2000
je 0x470683
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046f5d0
add esp, 4
mov byte [ebp - 4], 0x21
jmp 0x4706da
test eax, 0x8000
je 0x47069f
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046f290
add esp, 4
mov byte [ebp - 4], 0x22
jmp 0x4706da
cmp byte [ebp - 0xb2], 1
jne 0x4706c7
cmp word [ebp - 0x248], 9
jne 0x4706c7
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046f840
add esp, 4
mov byte [ebp - 4], 0x23
jmp 0x4706da
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046f360
add esp, 4
mov byte [ebp - 4], 0x24
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
cmp byte [ebp - 0xb2], 1
je 0x470852
mov eax, dword [ebp - 0x248]
cmp ax, 6
jne 0x470754
mov al, byte [ebp - 0xb4]
test al, al
jns 0x470734
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046ce10
add esp, 4
mov byte [ebp - 4], 0x25
jmp 0x470833
test al, 2
je 0x470852
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046ce10
add esp, 4
mov byte [ebp - 4], 0x26
jmp 0x470833
cmp ax, 9
jne 0x4707b0
mov al, byte [ebp - 0xb4]
test al, al
jns 0x47077c
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046cfb0
add esp, 4
mov byte [ebp - 4], 0x27
jmp 0x470833
test al, 2
je 0x470798
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046cfb0
add esp, 4
mov byte [ebp - 4], 0x28
jmp 0x470833
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046cfb0
add esp, 4
mov byte [ebp - 4], 0x29
jmp 0x470833
mov eax, dword [ebp - 0xb4]
test eax, 0x4000
je 0x4707d2
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046cba0
add esp, 4
mov byte [ebp - 4], 0x2a
jmp 0x470833
test al, al
jns 0x4707eb
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046cc70
add esp, 4
mov byte [ebp - 4], 0x2b
jmp 0x470833
test al, 2
je 0x470804
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046d080
add esp, 4
mov byte [ebp - 4], 0x2c
jmp 0x470833
test eax, 0x400
je 0x470820
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046ef50
add esp, 4
mov byte [ebp - 4], 0x2d
jmp 0x470833
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046e660
add esp, 4
mov byte [ebp - 4], 0x2e
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
cmp dword [ebp - 0x1c8], esi
jne 0x4709c3
cmp dword [ebp - 0x1c4], 1
jne 0x4708fc
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046f770
add esp, 4
mov byte [ebp - 4], 0x2f
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
test dword [ebp - 0xb4], 0x200
je 0x4708be
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046d3c0
add esp, 4
mov byte [ebp - 4], 0x30
jmp 0x4708d1
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046d7d0
add esp, 4
mov byte [ebp - 4], 0x31
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
cmp dword [ebp - 0x1c8], esi
jne 0x4709c3
cmp dword [ebp - 0x1c4], 0
jne 0x4709c3
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046f0f0
add esp, 4
mov byte [ebp - 4], 0x32
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
cmp byte [ebp - 0xb2], 1
jne 0x470959
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046d7d0
add esp, 4
mov byte [ebp - 4], 0x33
jmp 0x4709a4
mov al, byte [ebp - 0xb4]
test al, al
jns 0x470978
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046cee0
add esp, 4
mov byte [ebp - 4], 0x34
jmp 0x4709a4
test al, 2
je 0x470991
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c860
add esp, 4
mov byte [ebp - 4], 0x35
jmp 0x4709a4
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046e400
add esp, 4
mov byte [ebp - 4], 0x36
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4709d0
sub eax, edx
sar eax, 1
je 0x470a01
push 0x4e9e00
mov ecx, 0x52f608
call fcn.00412bb0
lea edx, [ebp - 0x1b8]
push edx
mov ecx, 0x52f608
call fcn.00412bb0
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046c930
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.0046c590
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0x52f608
call fcn.00412bb0
cmp dword [ebp - 0x1c8], 6
jb 0x470b14
mov eax, dword [ebp - 0x248]
cmp ax, 9
jne 0x470a98
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0046f9e0
add esp, 4
mov byte [ebp - 4], 0x38
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
jmp 0x470b14
test ax, ax
jne 0x470b14
lea edx, [ebp - 0x1d0]
push edx
call fcn.0046f910
add esp, 4
mov byte [ebp - 4], 0x39
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x52f608
call fcn.004104a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d0]
call fcn.00406650
jmp 0x470b14
lea eax, [ebp - 0x1d0]
push eax
call fcn.0046d700
add esp, 4
mov byte [ebp - 4], 0x3a
push eax
mov ecx, 0x52f608
call fcn.00412bf0
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 0x470b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x52f608]
add eax, 0xfffffff0
push eax
call fcn.00406ee0
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 0x52f5f0
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.004aaa9b
mov esp, ebp
pop ebp
ret