Function at 0x42f9c0
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497206
push eax
mov eax, 0x24c4
mov dword fs:[0], esp
call fcn.0043da10
push ebx
mov ebx, dword [esp + 0x24d8]
push esi
push edi
mov eax, dword [ebx + 8]
mov edi, ecx
mov ecx, dword [ebx + 4]
push ecx
push eax
push eax
call fcn.00431820
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push esi
call fcn.00431070
lea eax, [esp + 0x38]
mov dword [ebx + 8], esi
push eax
mov dword [esp + 0x3c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42faae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xd0]
push str.Could_not_get_OS_version.__err_lx_
push ecx
call fcn.0043da3f
mov dl, byte [esp + 0x1b]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
push 0
call fcn.00431020
lea edi, [esp + 0xcc]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00431140
test al, al
je 0x42fa9f
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0xcc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00431120
lea ecx, [esp + 0x14]
push 0x4a7550
push ecx
call fcn.0043e2f7
cmp dword [esp + 0x3c], 5
jae 0x42facf
mov eax, dword [esp + 0x48]
push ebx
cmp eax, 2
mov ecx, edi
jne 0x42fac8
call fcn.00430350
jmp 0x42fad7
call fcn.00430610
jmp 0x42fad7
push ebx
mov ecx, edi
call fcn.0042fdb0
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp esi, eax
mov dword [esp + 0x10], esi
je 0x42fd82
push ebp
mov eax, dword [esp + 0x24e8]
mov ecx, 0x801
lea edi, [esp + 0x4d0]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x42fb6b
push 0
push 0
push 3
push 0
push 0
lea edx, [esp + 0x4e4]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x42fb64
mov edx, dword [esp + 0x14]
mov ebp, dword [ebx + 8]
lea eax, [edx + 0x2004]
cmp eax, ebp
je 0x42fb50
mov esi, eax
mov edi, edx
add eax, 0x2004
mov ecx, 0x801
add edx, 0x2004
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x42fb36
mov eax, dword [ebx + 8]
add eax, 0xffffdffc
mov dword [esp + 0x38], eax
mov dword [ebx + 8], eax
jmp 0x42fd68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x14d0]
test al, al
jne 0x42fba1
lea edi, [esp + 0xcd0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x1cd0]
test al, al
jne 0x42fd68
lea edi, [esp + 0x14d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x17]
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00431020
lea edi, [esp + 0x1cd0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00431140
test al, al
je 0x42fc36
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x1cd0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00431120
mov edi, 0x4aea48
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24dc], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x4aea48
lea ecx, [esp + 0x24]
call fcn.00430f90
push 1
lea ecx, [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x24e0], 0xffffffff
call fcn.00431020
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call fcn.00431020
lea edi, [esp + 0x1cd0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00431140
test al, al
je 0x42fcd5
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x1cd0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
mov edi, 0x4aea44
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24dc], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x4aea44
lea ecx, [esp + 0x34]
call fcn.00430f90
mov esi, eax
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x24dc], 0xffffffff
cmp eax, edi
je 0x42fd33
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42fd2a
cmp al, 0xff
je 0x42fd2a
dec al
mov byte [ecx], al
jmp 0x42fd33
push ecx
call fcn.0046b2eb
add esp, 4
cmp ebx, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
jle 0x42fd61
lea edi, [esp + 0x1cd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp esi, ecx
jne 0x42fd61
mov byte [esp + ebx + 0x1cd0], al
mov ebx, dword [esp + 0x24e4]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 8]
add esi, 0x2004
cmp esi, eax
mov dword [esp + 0x14], esi
jne 0x42faea
pop ebp
mov ecx, dword [esp + 0x24d0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24d0
ret 8