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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4d8
call fcn.100a1060
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x100]
xor esi, esi
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x104], 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 str.KERNEL32.DLL
mov dword [esp + 0x20], 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 0x1004db70
push str.NetStatisticsGet
push ebx
call esi
push str.NetApiBufferFree
push ebx
mov ebp, eax
call esi
test ebp, ebp
mov dword [esp + 0x18], eax
je 0x1004db65
test eax, eax
je 0x1004db65
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call ebp
test eax, eax
jne 0x1004db24
fld qword [0x100b3390]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov edx, dword [esp + 0x1c]
push 0xd8
push edx
call sym.LIBEAY32.dll_RAND_add
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.LanmanServer
push 0
call ebp
test eax, eax
jne 0x1004db65
fld qword [0x100b3368]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov edx, dword [esp + 0x1c]
push 0x44
push edx
call sym.LIBEAY32.dll_RAND_add
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1004dc87
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 + 0x1c], eax
call esi
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x1004dc80
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004dc80
test eax, eax
je 0x1004dc80
push 0xf0000000
push 1
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
call ebx
test eax, eax
je 0x1004dc1b
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc0]
push edx
push 0x40
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1004dc10
fld qword [0x100a28c8]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea ecx, [esp + 0xc8]
push 0x40
push ecx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [esp + 0x20]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x34]
push eax
call ebx
test eax, eax
je 0x1004dc80
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
push ecx
push 0x40
push edx
call dword [esp + 0x20]
test eax, eax
je 0x1004dc75
fld qword [0x100b32c8]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea eax, [esp + 0xc8]
push 0x40
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x24]
push 0
push ecx
call dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x110], 2
jne 0x1004dc9e
call fcn.100018d0
test eax, eax
jne 0x1004dd91
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1004dd91
push str.GetForegroundWindow
push ebx
call esi
push str.GetCursorInfo
push ebx
mov ebp, eax
call esi
push 0x100b3288
push ebx
mov dword [esp + 0x30], eax
call esi
test ebp, ebp
mov dword [esp + 0x2c], eax
je 0x1004dd01
call ebp
fld qword [0x100a28c8]
mov dword [esp + 0x1c], eax
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea edx, [esp + 0x24]
push 4
push edx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004dd55
cmp dword [esp + 0x110], 2
jne 0x1004dd1d
cmp dword [esp + 0x104], 5
jb 0x1004dd55
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0x14
call eax
test eax, eax
je 0x1004dd55
fld qword [0x100b3280]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov edx, dword [esp + 0x4c]
push edx
lea eax, [esp + 0x50]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004dd8a
push 0xbf
call eax
fld qword [0x100b2bb8]
mov dword [esp + 0x30], eax
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea ecx, [esp + 0x38]
push 4
push ecx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1004e10c
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 + 0x60], eax
call esi
push str.Heap32Next
push edi
mov dword [esp + 0x1c], eax
call esi
push str.Heap32ListFirst
push edi
mov dword [esp + 0x48], eax
call esi
push str.Heap32ListNext
push edi
mov dword [esp + 0x20], eax
call esi
push str.Process32First
push edi
mov dword [esp + 0x44], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x3c], eax
call esi
push str.Thread32First
push edi
mov dword [esp + 0x40], eax
call esi
push str.Thread32Next
push edi
mov dword [esp + 0x34], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x30], eax
call esi
push 0x100b31b0
push edi
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x5c], eax
je 0x1004e105
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1004e105
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1004e105
test eax, eax
je 0x1004e105
push ebp
push 0xf
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1004e105
mov eax, dword [esp + 0x20]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x44], 0x10
je 0x1004ded5
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x1004df9b
jmp 0x1004def0
fld qword [0x100b31a8]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x50]
push ecx
call sym.LIBEAY32.dll_RAND_add
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
add esp, 0x10
push edx
push eax
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x88], 0x24
call dword [esp + 0x20]
test eax, eax
je 0x1004df83
mov ebx, 0x50
nop
fld qword [0x100b31a0]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x88]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea ecx, [esp + 0x7c]
push ecx
call dword [esp + 0x44]
test eax, eax
je 0x1004df7d
dec ebx
test ebx, ebx
jg 0x1004df40
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x44]
test eax, eax
je 0x1004df9b
call ebx
cmp eax, ebp
jb 0x1004def0
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x198], 0x128
je 0x1004dfb8
call ebx
mov ebp, eax
add ebp, 0x3e8
lea eax, [esp + 0x198]
push eax
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x1004e012
lea esp, [esp]
fld qword [0x100b3198]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov ecx, dword [esp + 0x1a0]
push ecx
lea edx, [esp + 0x1a4]
push edx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea eax, [esp + 0x198]
push eax
push esi
call dword [esp + 0x40]
test eax, eax
je 0x1004e012
call ebx
cmp eax, ebp
jb 0x1004dfd0
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x60], 0x1c
je 0x1004e02c
call ebx
mov ebp, eax
add ebp, 0x3e8
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [esp + 0x34]
test eax, eax
je 0x1004e079
lea ebx, [ebx]
fld qword [0x100b3190]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov edx, dword [esp + 0x68]
push edx
lea eax, [esp + 0x6c]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [esp + 0x30]
test eax, eax
je 0x1004e079
call ebx
cmp eax, ebp
jb 0x1004e040
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x2c0], 0x224
je 0x1004e096
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x2c0]
push edx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x1004e0f2
jmp 0x1004e0b0
fld qword [0x100b3198]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
mov eax, dword [esp + 0x2c8]
push eax
lea ecx, [esp + 0x2cc]
push ecx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea edx, [esp + 0x2c0]
push edx
push esi
call dword [esp + 0x64]
test eax, eax
je 0x1004e0f2
call ebx
cmp eax, ebp
jb 0x1004e0b0
mov eax, dword [esp + 0x58]
test eax, eax
push esi
je 0x1004e0ff
call eax
jmp 0x1004e105
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1004d840
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fld qword [0x100b2bb8]
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea ecx, [esp + 0xa8]
push 0x20
push ecx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
fld qword [0x100b2bb8]
mov dword [esp + 0x30], eax
mov eax, 8
call fcn.100a1060
fstp qword [esp]
lea edx, [esp + 0x38]
push 4
push edx
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret