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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4d0
call fcn.100b1990
push ebx
push ebp
push esi
lea eax, [esp + 0xfc]
push edi
xor esi, esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 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 + 0x1c], 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 0x10054ebe
push str.NetStatisticsGet
push ebx
call esi
push str.NetApiBufferFree
push ebx
mov ebp, eax
call esi
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x10054eb3
test eax, eax
je 0x10054eb3
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call ebp
test eax, eax
jne 0x10054e7f
mov edx, dword [esp + 0x10]
push 0x40468000
push eax
push pe_nt_image_headers32
push edx
call sym.LIBEAY32_smt.dll_RAND_add
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.LanmanServer
push 0
call ebp
test eax, eax
jne 0x10054eb3
mov edx, dword [esp + 0x10]
push 0x40310000
push eax
push 0x44
push edx
call sym.LIBEAY32_smt.dll_RAND_add
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x10054fba
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 + 0x18], eax
call esi
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x10054fb3
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10054fb3
test eax, eax
je 0x10054fb3
push 0xf0000000
push 1
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call ebx
test eax, eax
je 0x10054f5a
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc0]
push edx
push 0x40
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x10054f4f
push 0
push 0
lea ecx, [esp + 0xc8]
push 0x40
push ecx
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [esp + 0x1c]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
lea eax, [esp + 0x2c]
push 0
push eax
call ebx
test eax, eax
je 0x10054fb3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc0]
push ecx
push 0x40
push edx
call dword [esp + 0x1c]
test eax, eax
je 0x10054fa8
push 0x40500000
push 0
lea eax, [esp + 0xc8]
push 0x40
push eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x110], 2
jne 0x10054fd1
call fcn.10001d30
test eax, eax
jne 0x1005509d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1005509d
push str.GetForegroundWindow
push ebx
call esi
push str.GetCursorInfo
push ebx
mov ebp, eax
call esi
push str.GetQueueStatus
push ebx
mov dword [esp + 0x2c], eax
call esi
test ebp, ebp
mov dword [esp + 0x28], eax
je 0x10055025
call ebp
push 0
push 0
lea edx, [esp + 0x20]
push 4
push edx
mov dword [esp + 0x28], eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1005506d
cmp dword [esp + 0x110], 2
jne 0x10055041
cmp dword [esp + 0x104], 5
jb 0x1005506d
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x14
push ecx
call eax
test eax, eax
je 0x1005506d
mov edx, dword [esp + 0x44]
push 0x40000000
push 0
lea eax, [esp + 0x4c]
push edx
push eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10055096
push 0xbf
call eax
push 0x3ff00000
push 0
lea ecx, [esp + 0x38]
push 4
push ecx
mov dword [esp + 0x40], eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x100553cb
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 + 0x34], eax
call esi
push str.Heap32Next
push edi
mov dword [esp + 0x18], eax
call esi
push str.Heap32ListFirst
push edi
mov dword [esp + 0x40], eax
call esi
push str.Heap32ListNext
push edi
mov dword [esp + 0x1c], eax
call esi
push str.Process32First
push edi
mov dword [esp + 0x48], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x44], eax
call esi
push str.Thread32First
push edi
mov dword [esp + 0x3c], eax
call esi
push str.Thread32Next
push edi
mov dword [esp + 0x30], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x2c], eax
call esi
push str.Module32Next
push edi
mov dword [esp + 0x20], eax
call esi
test ebx, ebx
mov dword [esp + 0x58], eax
je 0x100553bc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x100553bc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100553bc
test eax, eax
je 0x100553bc
push ebp
push 0xf
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100553bc
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
mov dword [esp + 0x44], 0x10
je 0x100551e1
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x1c]
test eax, eax
je 0x1005527c
mov eax, dword [esp + 0x44]
push 0x40080000
push 0
lea ecx, [esp + 0x4c]
push eax
push ecx
call sym.LIBEAY32_smt.dll_RAND_add
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
add esp, 0x10
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x24
push edx
push eax
push ecx
call dword [esp + 0x1c]
test eax, eax
je 0x10055264
mov ebx, 0x50
mov edx, dword [esp + 0x7c]
push 0x40140000
push 0
lea eax, [esp + 0x84]
push edx
push eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
lea ecx, [esp + 0x7c]
push ecx
call dword [esp + 0x3c]
test eax, eax
je 0x1005525e
dec ebx
test ebx, ebx
jg 0x10055230
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x48]
test eax, eax
je 0x1005527c
call ebx
cmp eax, ebp
jb 0x100551f3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x194], 0x128
test eax, eax
je 0x10055299
call ebx
mov ebp, eax
add ebp, 0x3e8
lea eax, [esp + 0x194]
push eax
push esi
call dword [esp + 0x44]
test eax, eax
je 0x100552e0
mov ecx, dword [esp + 0x194]
push 0x40220000
push 0
lea edx, [esp + 0x19c]
push ecx
push edx
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
lea eax, [esp + 0x194]
push eax
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x100552e0
call ebx
cmp eax, ebp
jb 0x100552aa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 0x1c
test eax, eax
je 0x100552fa
call ebx
mov ebp, eax
add ebp, 0x3e8
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [esp + 0x30]
test eax, eax
je 0x10055335
mov edx, dword [esp + 0x60]
push 0x40180000
push 0
lea eax, [esp + 0x68]
push edx
push eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [esp + 0x2c]
test eax, eax
je 0x10055335
call ebx
cmp eax, ebp
jb 0x10055308
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2bc], 0x224
test eax, eax
je 0x10055352
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x2bc]
push edx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x10055399
mov eax, dword [esp + 0x2bc]
push 0x40220000
push 0
lea ecx, [esp + 0x2c4]
push eax
push ecx
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
lea edx, [esp + 0x2bc]
push edx
push esi
call dword [esp + 0x60]
test eax, eax
je 0x10055399
call ebx
cmp eax, ebp
jb 0x10055363
mov eax, dword [esp + 0x2c]
push esi
test eax, eax
je 0x100553ad
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100553d1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100553d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100553d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [0x100f3a98]
test eax, eax
je 0x1005540c
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x100553f0
mov dword [0x100f3a98], eax
jmp 0x1005540c
push 0
push 0
lea ecx, [esp + 0x60]
push 8
push ecx
call sym.LIBEAY32_smt.dll_RAND_add
mov eax, dword [0x100f3a98]
add esp, 0x10
test eax, eax
jne 0x10055425
call ebx
push 0
push 0
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x3c], eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x3ff00000
push 0
lea ecx, [esp + 0xa8]
push 0x20
push ecx
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x3ff00000
push 0
lea edx, [esp + 0x38]
push 4
push edx
mov dword [esp + 0x40], eax
call sym.LIBEAY32_smt.dll_RAND_add
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret