Function at 0x10051730
Capabilities:
Check for time delay via gettickcount
Check os version
Get memory capacity
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x390]
mov eax, 0x390
call fcn.100e4860
push 0xfffffffffffffffe
push 0x10145b90
push 0x100e3710
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x8c
call fcn.100e4860
mov eax, dword [0x1014c240]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], esi
push str.ADVAPI32.DLL
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov dword [ebp - 0x2c], eax
push 0x1011e69c
call ebx
mov edi, eax
push str.NETAPI32.DLL
call ebx
mov ebx, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
cmp ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x100517e0
push str.NetStatisticsGet
push ebx
call esi
mov dword [ebp - 0x28], eax
push str.NetApiBufferFree
push ebx
call esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1005186c
cmp dword [ebp - 0x34], 0
je 0x1005186c
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call eax
test eax, eax
jne 0x1005182e
mov eax, 8
call fcn.100e4860
fld qword [0x1011e638]
fstp qword [esp]
push 0xd8
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1002ae80
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push str.LanmanServer
push 0
call dword [ebp - 0x28]
test eax, eax
jne 0x1005186c
mov eax, 8
call fcn.100e4860
fld qword [0x1011e610]
fstp qword [esp]
push 0x44
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1002ae80
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x34]
test ebx, ebx
je 0x10051877
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1005189f
push str.CryptAcquireContextW
push ebx
call esi
mov dword [ebp - 0x24], eax
push str.CryptGenRandom
push ebx
call esi
mov dword [ebp - 0x30], eax
push str.CryptReleaseContext
push ebx
call esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10051975
cmp dword [ebp - 0x30], 0
je 0x10051975
cmp dword [ebp - 0x38], 0
je 0x10051975
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call eax
test eax, eax
je 0x10051917
lea edx, [ebp + 0x34c]
push edx
push 0x40
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x30]
test eax, eax
je 0x1005190e
mov eax, 8
call fcn.100e4860
fldz
fstp qword [esp]
push 0x40
lea ecx, [ebp + 0x34c]
push ecx
call fcn.1002ae80
add esp, 0x10
mov dword [ebp - 0x20], 1
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x38]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x10051975
lea ecx, [ebp + 0x34c]
push ecx
push 0x40
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x30]
test eax, eax
je 0x1005196c
mov eax, 8
call fcn.100e4860
fld qword [0x1011e570]
fstp qword [esp]
push 0x40
lea eax, [ebp + 0x34c]
push eax
call fcn.1002ae80
add esp, 0x10
mov dword [ebp - 0x20], 1
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x38]
test ebx, ebx
je 0x10051980
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005199a
call fcn.100294a0
test eax, eax
jne 0x10051a87
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10051a87
push str.GetForegroundWindow
push ebx
call esi
mov dword [ebp - 0x2c], eax
push str.GetCursorInfo
push ebx
call esi
mov dword [ebp - 0x24], eax
push 0x1011e530
push ebx
call esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100519f9
call eax
mov dword [ebp - 0x2c], eax
mov eax, 8
call fcn.100e4860
fldz
fstp qword [esp]
push 4
lea edx, [ebp - 0x2c]
push edx
call fcn.1002ae80
add esp, 0x10
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10051a52
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10051a17
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x10051a52
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10051a52
mov dword [ebp - 0x68], 0x14
lea ecx, [ebp - 0x68]
push ecx
call eax
test eax, eax
je 0x10051a52
mov eax, 8
call fcn.100e4860
fld qword [0x1011e528]
fstp qword [esp]
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.1002ae80
add esp, 0x10
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10051a80
push 0xbf
call eax
mov dword [ebp - 0x40], eax
mov eax, 8
call fcn.100e4860
fld1
fstp qword [esp]
push 4
lea ecx, [ebp - 0x40]
push ecx
call fcn.1002ae80
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10051d0d
mov dword [ebp - 0x1c], 0
push str.CreateToolhelp32Snapshot
push edi
call esi
mov ebx, eax
push str.CloseToolhelp32Snapshot
push edi
call esi
mov dword [ebp - 0x50], eax
push str.Heap32First
push edi
call esi
mov dword [ebp - 0x2c], eax
push str.Heap32Next
push edi
call esi
mov dword [ebp - 0x44], eax
push str.Heap32ListFirst
push edi
call esi
mov dword [ebp - 0x54], eax
push str.Heap32ListNext
push edi
call esi
mov dword [ebp - 0x4c], eax
push str.Process32First
push edi
call esi
mov dword [ebp - 0x24], eax
push str.Process32Next
push edi
call esi
mov dword [ebp - 0x28], eax
push str.Thread32First
push edi
call esi
mov dword [ebp - 0x38], eax
push str.Thread32Next
push edi
call esi
mov dword [ebp - 0x30], eax
push str.Module32First
push edi
call esi
mov dword [ebp - 0x34], eax
push 0x1011e458
push edi
call esi
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x10051d06
cmp dword [ebp - 0x2c], 0
je 0x10051d06
cmp dword [ebp - 0x44], 0
je 0x10051d06
cmp dword [ebp - 0x54], 0
je 0x10051d06
cmp dword [ebp - 0x4c], 0
je 0x10051d06
cmp dword [ebp - 0x24], 0
je 0x10051d06
cmp dword [ebp - 0x28], 0
je 0x10051d06
cmp dword [ebp - 0x38], 0
je 0x10051d06
cmp dword [ebp - 0x30], 0
je 0x10051d06
cmp dword [ebp - 0x34], 0
je 0x10051d06
test eax, eax
je 0x10051d06
push 0
push 0xf
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10051d06
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x20], eax
je 0x10051bb9
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x224], 0x128
cmp dword [ebp - 0x20], 0
je 0x10051bce
call esi
mov dword [ebp - 0x1c], eax
lea edx, [ebp + 0x224]
push edx
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x10051c27
mov eax, 8
call fcn.100e4860
fld qword [0x1011e450]
fstp qword [esp]
mov eax, dword [ebp + 0x224]
push eax
lea ecx, [ebp + 0x224]
push ecx
call fcn.1002ae80
add esp, 0x10
lea edx, [ebp + 0x224]
push edx
push ebx
call dword [ebp - 0x28]
test eax, eax
je 0x10051c27
cmp dword [ebp - 0x20], 0
je 0x10051bdd
call esi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x3e8
jb 0x10051bdd
mov dword [ebp - 0x84], 0x1c
cmp dword [ebp - 0x20], 0
je 0x10051c3c
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [ebp - 0x38]
test eax, eax
je 0x10051c95
mov eax, 8
call fcn.100e4860
fld qword [0x1011e448]
fstp qword [esp]
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.1002ae80
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [ebp - 0x30]
test eax, eax
je 0x10051c95
cmp dword [ebp - 0x20], 0
je 0x10051c4b
call esi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x3e8
jb 0x10051c4b
mov dword [ebp], 0x224
cmp dword [ebp - 0x20], 0
je 0x10051ca7
call esi
mov dword [ebp - 0x1c], eax
lea ecx, [ebp]
push ecx
push ebx
call dword [ebp - 0x34]
test eax, eax
je 0x10051cf4
mov eax, 8
call fcn.100e4860
fld qword [0x1011e450]
fstp qword [esp]
mov edx, dword [ebp]
push edx
lea eax, [ebp]
push eax
call fcn.1002ae80
add esp, 0x10
lea ecx, [ebp]
push ecx
push ebx
call dword [ebp - 0x48]
test eax, eax
je 0x10051cf4
cmp dword [ebp - 0x20], 0
je 0x10051cb3
call esi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x3e8
jb 0x10051cb3
mov eax, dword [ebp - 0x50]
push ebx
test eax, eax
je 0x10051d00
call eax
jmp 0x10051d06
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.100516b0
lea edx, [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.100e4860
fld1
fstp qword [esp]
push 0x20
lea eax, [ebp - 0xa4]
push eax
call fcn.1002ae80
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x40], eax
mov eax, 8
call fcn.100e4860
fld1
fstp qword [esp]
push 4
lea ecx, [ebp - 0x40]
push ecx
call fcn.1002ae80
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.100e200a
add ebp, 0x390
mov esp, ebp
pop ebp
ret