Function at 0x57b800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x6670f4]
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]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push str.ntdll.dll
mov dword [ebp - 4], eax
xor ebx, ebx
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x57b8b9
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x57b8a6
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x168]
push ecx
call eax
movzx eax, word [ebp - 0x160]
mov ebx, 1
mov dword [ebp - 0x160], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x57b8b9
mov eax, dword [ebp - 0x168]
jmp 0x57b909
push 0x118
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.0058c8f0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x15c]
add esp, 0xc
mov dword [ebp - 0x15c], 0x11c
push eax
call esi
test eax, eax
jne 0x57b903
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call esi
test eax, eax
je 0x57b90e
mov eax, dword [ebp - 0x158]
cmp eax, 6
jae 0x57b93e
mov ecx, edi
mov ebx, SysReAllocString
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57b920
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00449bc0
jmp 0x57ba0e
mov ecx, edi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57b957
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00449bc0
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 1
push eax
call fcn.0057cae0
add esp, 4
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 2
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57b990
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00449bc0
mov edx, dword [ebp - 0x164]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x57b9cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
setne bl
lea ebx, [ebx*2 - 0x7fffffff]
test eax, eax
je 0x57b9ef
push 1
push 0x64528c
lea ecx, [ebp - 0x28]
call fcn.0044ed80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0044ed80
lea ecx, [ebp - 0x40]
call fcn.00449860
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x16c]
mov edx, 0x2001f
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp + 0xc], 0
push eax
mov eax, 0x20019
cmovne eax, edx
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x14]
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0x16c]
cmp edx, 8
jb 0x57ba7d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x57ba73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57ba9b
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov eax, esi
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.0050ed5c
mov esp, ebp
pop ebp
ret
call fcn.005978c6
int3