Function at 0x442740
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47d566
push eax
mov al, byte [0x4bf8e4]
mov dword fs:[0], esp
sub esp, 0x104
test al, al
push esi
mov esi, ecx
je 0x44277f
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
push edi
mov ecx, esi
call fcn.00442200
lea eax, [esp + 0x78]
xor edi, edi
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x7c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x7c], 5
je 0x4427cf
pop edi
mov byte [0x4bf8e4], 1
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x4427df
cmp eax, 1
jne 0x4427af
mov dword [0x4bf8e0], eax
mov byte [esi], 0
call fcn.00441c80
test eax, eax
je 0x442b69
lea ecx, [esp + 8]
push ecx
call fcn.00441dd0
add esp, 4
test al, al
je 0x442b69
push ebx
mov ebx, dword [esp + 0xc]
cmp dword [ebx], edi
push ebp
jle 0x4429ac
lea ebp, [ebx + 0x20]
lea ebx, [ebx]
mov eax, ebp
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442840
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.004015a0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x124], 0
call fcn.00442130
add esp, 8
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x11c], 2
jb 0x44288d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004694c8
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jae 0x4428b1
lea eax, [esp + 0x28]
push str.ntoskrnl.exe
push eax
call fcn.0045f1e4
add esp, 8
test eax, eax
je 0x44292f
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x4428d2
lea eax, [esp + 0x28]
push str.ntkrnlpa.exe
push eax
call fcn.0045f1e4
add esp, 8
test eax, eax
je 0x442969
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x11c], 0xffffffff
jb 0x442907
mov edx, dword [esp + 0x28]
push edx
call fcn.004694c8
add esp, 4
mov eax, dword [ebx]
inc edi
add ebp, 0x11c
cmp edi, eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jl 0x442820
jmp 0x4429ac
push 0xc
push str.ntoskrnl.exe
lea ecx, [esi + 0x30]
call fcn.004015a0
imul edi, edi, 0x11c
mov eax, dword [edi + ebx + 0xc]
sub eax, 0x80000000
mov dword [esi + 0x4c], eax
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x11c], 0xffffffff
jb 0x4429ac
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x4429a4
push 0xc
push str.ntkrnlpa.exe
lea ecx, [esi + 0x30]
call fcn.004015a0
imul edi, edi, 0x11c
mov edx, dword [edi + ebx + 0xc]
mov eax, dword [esp + 0x3c]
sub edx, 0x80000000
cmp eax, 0x10
mov dword [esi + 0x4c], edx
mov dword [esp + 0x11c], 0xffffffff
jb 0x4429ac
mov eax, dword [esp + 0x28]
push eax
call fcn.004694c8
add esp, 4
push ebx
call fcn.0044e5dd
mov eax, dword [esi + 0x44]
add esp, 4
test eax, eax
je 0x442b67
cmp dword [esi + 0x48], 0x10
jb 0x4429cb
mov eax, dword [esi + 0x34]
jmp 0x4429ce
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x40], ebx
je 0x442b67
push str.KeServiceDescriptorTable
push ebx
call fcn.00441af0
add esp, 8
test eax, eax
je 0x442b60
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp word [ecx + 0x18], 0x10b
jne 0x442b60
mov ebp, dword [ecx + 0x34]
test ebp, ebp
je 0x442b60
mov ecx, dword [esi + 0x4c]
add eax, ecx
mov edx, ecx
mov dword [esp + 0x10], eax
mov edi, eax
push str.devicephysicalmemory
lea eax, [esp + 0x7c]
sub edx, ebp
push eax
mov dword [esi + 0x2c], edx
mov dword [esp + 0x20], 0x2000
mov dword [esp + 0x28], 0xffffffff
call dword [0x4bf8d4]
xor eax, eax
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
push 4
lea eax, [esp + 0x28]
lea ecx, [esp + 0x80]
push eax
mov dword [esp + 0x6c], 0x18
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x74], ecx
call dword [0x4bf8cc]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x442b60
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00441d60
add esp, 0x14
test eax, eax
je 0x442b60
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub edi, eax
mov ecx, edi
sub edx, ecx
cmp edx, 0xc
jb 0x442b60
mov eax, dword [esp + 0x14]
mov edi, dword [ecx + eax]
mov ecx, dword [ecx + eax + 8]
push eax
push 0xffffffffffffffff
mov dword [esi + 0x24], ecx
call dword [0x4bf8c4]
mov eax, dword [esi + 0x24]
cmp eax, 0x12c
mov dword [esp + 0x14], 0
jae 0x442b60
lea edx, [esi + 4]
push edx
push eax
push ebx
call fcn.004423b0
add esp, 0xc
test al, al
je 0x442b60
lea eax, [edi - 0x80000000]
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
sub eax, edi
sub eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add eax, ebx
mov edi, eax
push 4
push edi
call ebp
test eax, eax
jne 0x442b60
mov eax, dword [esi + 0x24]
push 4
lea ecx, [edi + eax*4 - 4]
push ecx
call ebp
test eax, eax
jne 0x442b60
mov eax, dword [esi + 0x24]
xor ebp, ebp
test eax, eax
jle 0x442b5d
lea ebx, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.004421b0
mov eax, dword [esi + 0x24]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x442b46
mov ebx, dword [esp + 0x40]
mov byte [esi], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x442b7a
push eax
push 0xffffffffffffffff
call dword [0x4bf8c4]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x442b8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret