Function at 0x42d550
Capabilities:
Check os version
Get memory capacity
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x4f0
call fcn.00489cc0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x118]
xor esi, esi
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x11c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.DLL
call ebx
mov ebp, eax
push 0x4fae34
mov dword [esp + 0x38], ebp
call ebx
push str.NETAPI32.DLL
mov edi, eax
call ebx
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x42d670
push str.NetStatisticsGet
push ebx
call esi
push str.NetApiBufferFree
push ebx
mov ebp, eax
call esi
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x42d665
test eax, eax
je 0x42d665
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call ebp
test eax, eax
jne 0x42d624
mov eax, 8
call fcn.00489cc0
fld qword [0x4fadd0]
mov edx, dword [esp + 0x34]
fstp qword [esp]
push 0xd8
push edx
call fcn.0040c2c0
mov eax, dword [esp + 0x3c]
add esp, 0x10
push eax
call dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push str.LanmanServer
push 0
call ebp
test eax, eax
jne 0x42d665
mov eax, 8
call fcn.00489cc0
fld qword [0x4fada8]
mov edx, dword [esp + 0x34]
fstp qword [esp]
push 0x44
push edx
call fcn.0040c2c0
mov eax, dword [esp + 0x3c]
add esp, 0x10
push eax
call dword [esp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x42d782
push str.CryptAcquireContextW
push ebp
call esi
push str.CryptGenRandom
push ebp
mov ebx, eax
call esi
push str.CryptReleaseContext
push ebp
mov dword [esp + 0x34], eax
call esi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x42d77b
cmp dword [esp + 0x2c], 0
je 0x42d77b
test eax, eax
je 0x42d77b
push 0xf0000000
push 1
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
je 0x42d716
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0xd8]
push edx
push 0x40
push eax
call dword [esp + 0x38]
test eax, eax
je 0x42d70b
mov eax, 8
call fcn.00489cc0
fldz
fstp qword [esp]
lea ecx, [esp + 0xe0]
push 0x40
push ecx
call fcn.0040c2c0
add esp, 0x10
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x3c]
push 0
push edx
call dword [esp + 0x38]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x4c]
push eax
call ebx
test eax, eax
je 0x42d77b
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xd8]
push ecx
push 0x40
push edx
call dword [esp + 0x38]
test eax, eax
je 0x42d770
mov eax, 8
call fcn.00489cc0
fld qword [0x4fad08]
fstp qword [esp]
lea eax, [esp + 0xe0]
push 0x40
push eax
call fcn.0040c2c0
add esp, 0x10
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x3c]
push 0
push ecx
call dword [esp + 0x38]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x128], 2
jne 0x42d799
call fcn.00404f60
test eax, eax
jne 0x42d884
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x42d884
push str.GetForegroundWindow
push ebx
call esi
push str.GetCursorInfo
push ebx
mov ebp, eax
call esi
push 0x4facc8
push ebx
mov dword [esp + 0x48], eax
call esi
mov dword [esp + 0x44], eax
test ebp, ebp
je 0x42d7f8
call ebp
mov dword [esp + 0x34], eax
mov eax, 8
call fcn.00489cc0
fldz
fstp qword [esp]
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.0040c2c0
add esp, 0x10
mov eax, dword [esp + 0x40]
test eax, eax
je 0x42d84c
cmp dword [esp + 0x128], 2
jne 0x42d814
cmp dword [esp + 0x11c], 5
jb 0x42d84c
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0x14
call eax
test eax, eax
je 0x42d84c
mov eax, 8
call fcn.00489cc0
fld qword [0x4facc0]
mov edx, dword [esp + 0x64]
fstp qword [esp]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.0040c2c0
add esp, 0x10
mov eax, dword [esp + 0x44]
test eax, eax
je 0x42d87d
push 0xbf
call eax
mov dword [esp + 0x48], eax
mov eax, 8
call fcn.00489cc0
fld1
fstp qword [esp]
lea ecx, [esp + 0x50]
push 4
push ecx
call fcn.0040c2c0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x42dbd1
push str.CreateToolhelp32Snapshot
push edi
xor ebp, ebp
call esi
push str.CloseToolhelp32Snapshot
push edi
mov ebx, eax
call esi
push str.Heap32First
push edi
mov dword [esp + 0x78], eax
call esi
push str.Heap32Next
push edi
mov dword [esp + 0x34], eax
call esi
push str.Heap32ListFirst
push edi
mov dword [esp + 0x60], eax
call esi
push str.Heap32ListNext
push edi
mov dword [esp + 0x38], eax
call esi
push str.Process32First
push edi
mov dword [esp + 0x5c], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x54], eax
call esi
push str.Thread32First
push edi
mov dword [esp + 0x58], eax
call esi
push str.Thread32Next
push edi
mov dword [esp + 0x4c], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x48], eax
call esi
push 0x4fabf0
push edi
mov dword [esp + 0x3c], eax
call esi
mov dword [esp + 0x74], eax
test ebx, ebx
je 0x42dbca
cmp dword [esp + 0x2c], ebp
je 0x42dbca
cmp dword [esp + 0x58], ebp
je 0x42dbca
cmp dword [esp + 0x30], ebp
je 0x42dbca
cmp dword [esp + 0x54], ebp
je 0x42dbca
cmp dword [esp + 0x4c], ebp
je 0x42dbca
cmp dword [esp + 0x50], ebp
je 0x42dbca
cmp dword [esp + 0x44], ebp
je 0x42dbca
cmp dword [esp + 0x40], ebp
je 0x42dbca
cmp dword [esp + 0x34], ebp
je 0x42dbca
test eax, eax
je 0x42dbca
push ebp
push 0xf
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42dbca
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x5c], 0x10
cmp dword [esp + 0x38], ebp
je 0x42d9b4
call esi
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [esp + 0x38]
test eax, eax
je 0x42da73
mov eax, 8
call fcn.00489cc0
fld qword [0x4fabe8]
mov eax, dword [esp + 0x64]
fstp qword [esp]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c2c0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
add esp, 0x10
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], 0x24
call dword [esp + 0x38]
test eax, eax
je 0x42da5b
mov esi, 0x50
mov eax, 8
call fcn.00489cc0
fld qword [0x4fabe0]
mov edx, dword [esp + 0x9c]
fstp qword [esp]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.0040c2c0
add esp, 0x10
lea ecx, [esp + 0x94]
push ecx
call dword [esp + 0x5c]
test eax, eax
je 0x42da55
dec esi
test esi, esi
jg 0x42da15
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [esp + 0x5c]
test eax, eax
je 0x42da73
call esi
cmp eax, ebp
jb 0x42d9c6
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1b0], pe_nt_image_headers32
je 0x42da8f
call esi
mov ebp, eax
add ebp, 0x3e8
lea eax, [esp + 0x1b0]
push eax
push ebx
call dword [esp + 0x54]
test eax, eax
je 0x42dae2
mov eax, 8
call fcn.00489cc0
fld qword [0x4fabd8]
mov ecx, dword [esp + 0x1b8]
fstp qword [esp]
push ecx
lea edx, [esp + 0x1bc]
push edx
call fcn.0040c2c0
add esp, 0x10
lea eax, [esp + 0x1b0]
push eax
push ebx
call dword [esp + 0x58]
test eax, eax
je 0x42dae2
call esi
cmp eax, ebp
jb 0x42daa0
cmp dword [esp + 0x38], 0
mov dword [esp + 0x78], 0x1c
je 0x42dafb
call esi
mov ebp, eax
add ebp, 0x3e8
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [esp + 0x4c]
test eax, eax
je 0x42db48
mov eax, 8
call fcn.00489cc0
fld qword [0x4fabd0]
mov edx, dword [esp + 0x80]
fstp qword [esp]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0040c2c0
add esp, 0x10
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [esp + 0x48]
test eax, eax
je 0x42db48
call esi
cmp eax, ebp
jb 0x42db09
cmp dword [esp + 0x38], 0
mov dword [esp + 0x2d8], 0x224
je 0x42db64
call esi
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x2d8]
push edx
push ebx
call dword [esp + 0x3c]
test eax, eax
je 0x42dbb7
mov eax, 8
call fcn.00489cc0
fld qword [0x4fabd8]
mov eax, dword [esp + 0x2e0]
fstp qword [esp]
push eax
lea ecx, [esp + 0x2e4]
push ecx
call fcn.0040c2c0
add esp, 0x10
lea edx, [esp + 0x2d8]
push edx
push ebx
call dword [esp + 0x7c]
test eax, eax
je 0x42dbb7
call esi
cmp eax, ebp
jb 0x42db75
mov eax, dword [esp + 0x70]
push ebx
test eax, eax
je 0x42dbc4
call eax
jmp 0x42dbca
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0042d350
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.00489cc0
fld1
fstp qword [esp]
lea ecx, [esp + 0xc0]
push 0x20
push ecx
call fcn.0040c2c0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x48], eax
mov eax, 8
call fcn.00489cc0
fld1
fstp qword [esp]
lea edx, [esp + 0x50]
push 4
push edx
call fcn.0040c2c0
add esp, 0x10
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret