Function at 0x42d830
Capabilities:
Check for peb ntglobalflag flag
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc4e1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5265f0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
mov edi, ecx
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x4e32e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42d8aa
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d8a3
lea ecx, [esp + 0x30]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [esp + 0x30], 6
je 0x42dd8d
push 0x400
push 0
mov ecx, edi
call fcn.0042d460
test eax, eax
jne 0x42d8e1
push 0x20000
push 0xe0000
mov ecx, edi
call fcn.0042d460
test eax, eax
je 0x42dd8d
push 0x68
call fcn.004b3e57
add esp, 4
mov dword [edi + 0xc], eax
call fcn.00423c10
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x18]
push edx
mov edx, dword [ecx + 0x10]
push 0x68
push edx
push 0
mov ecx, eax
call fcn.004a1480
test eax, eax
je 0x42dd8d
mov eax, dword [edi + 0xc]
cmp byte [eax], 0x52
jne 0x42dd8d
cmp byte [eax + 1], 0x53
jne 0x42dd8d
cmp byte [eax + 2], 0x44
jne 0x42dd8d
cmp byte [eax + 3], 0x54
jne 0x42dd8d
mov eax, dword [eax + 4]
sub eax, 0x24
shr eax, 2
test eax, eax
jle 0x42dd86
mov esi, 0x24
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
call fcn.00423c10
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esi + edx]
push 0x24
push ecx
push 0
mov ecx, eax
call fcn.004a1480
test eax, eax
je 0x42dd74
mov eax, dword [esp + 0x58]
cmp eax, 0x1000
ja 0x42dd74
test eax, eax
je 0x42dd74
add eax, 4
push eax
call fcn.004b3e82
add esp, 4
mov ebx, eax
call fcn.00423c10
mov edx, dword [esp + 0x58]
mov ecx, dword [edi + 0xc]
mov eax, dword [eax + 0x18]
push ebx
push edx
mov edx, dword [esi + ecx]
push edx
xor esi, esi
push esi
mov ecx, eax
call fcn.004a1480
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.APIC
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.BOOT
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.DBGP
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.DSDT
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.ECDT
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.ETDT
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.FACP
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
jne 0x42daf4
cmp byte [esp + 0x5c], 3
jb 0x42daa4
cmp dword [esp + 0x58], 0x130
jae 0x42dd67
cmp dword [ebx + 0x4c], esi
jbe 0x42dd67
push 0x28
call fcn.004b3e57
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov dword [esp + 0x88], esi
je 0x42dad3
mov ecx, dword [ebx + 0x4c]
push ecx
mov ecx, eax
call fcn.004452d0
mov esi, eax
mov dword [esp + 0x88], 0xffffffff
mov dword [edi + 0x10], esi
call fcn.00423c10
mov ecx, dword [eax + 0x2c]
push esi
call fcn.00422950
jmp 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.FACS
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 3
lea eax, [esp + 0x58]
push 0x4e3d08
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.PSDT
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.SBST
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.SLIT
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.SPCR
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.SRAT
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.SSDT
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.SPMI
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea edx, [esp + 0x58]
push str.XSDT
push edx
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea eax, [esp + 0x58]
push str.MCFG
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
je 0x42dd67
push 4
lea ecx, [esp + 0x58]
push str.TAMG
push ecx
call fcn.004c50e5
add esp, 0xc
test eax, eax
jne 0x42dc77
mov edx, dword [esp + 0x58]
push str.ESDT
push edx
push ebx
mov ecx, edi
call fcn.0042d560
mov esi, eax
test esi, esi
je 0x42dd67
push 0x30
call fcn.004b3e57
mov dword [edi + 0x30], eax
mov ecx, 0xc
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x42dd63
push 4
lea eax, [esp + 0x58]
push 0x4e3ca8
push eax
call fcn.004c50e5
add esp, 0xc
test eax, eax
jne 0x42dd67
mov esi, dword [ebx + 0x2c]
test esi, esi
mov edi, dword [ebx + 0x30]
jbe 0x42dd63
test byte [ebx + 0x28], 1
jne 0x42dd63
push 0x14
call fcn.004b3e57
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x88], 1
je 0x42dcd7
push 0xffffffffffffffff
push esi
push edi
mov ecx, eax
call fcn.004334c0
mov esi, eax
jmp 0x42dcd9
xor esi, esi
push 0x28
mov dword [esp + 0x8c], 0xffffffff
call fcn.004b3e57
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x88], 2
je 0x42dd0d
push esi
mov ecx, eax
call fcn.00445050
mov edi, eax
jmp 0x42dd0f
xor edi, edi
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x24]
push eax
push 0
mov ecx, esi
mov dword [esp + 0x90], 0xffffffff
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x28]
push ecx
push 4
mov ecx, esi
call edx
fild dword [esp + 0x28]
fdivr qword [0x4e3ca0]
fstp qword [edi + 0x10]
call fcn.00423c10
mov ecx, dword [eax + 0x2c]
push edi
call fcn.00422950
call fcn.00423c10
mov ecx, dword [eax + 0x1c]
push esi
call fcn.00425980
mov edi, dword [esp + 0x14]
push ebx
call fcn.004b3e87
mov esi, dword [esp + 0x24]
add esp, 4
add esi, 4
sub dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
jne 0x42d95c
mov eax, 1
jmp 0x42dd8f
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004c2fd1
mov esp, ebp
pop ebp
ret