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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c8
push ebx
push ebp
push esi
lea eax, [esp + 0xf4]
push edi
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xfc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.DLL
call esi
mov ebp, eax
push 0x4750e4
mov dword [esp + 0x20], ebp
call esi
push str.USER32.DLL
mov edi, eax
call esi
push str.NETAPI32.DLL
mov dword [esp + 0x24], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x414163
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 0x414158
test eax, eax
je 0x414158
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call ebp
test eax, eax
jne 0x414124
mov edx, dword [esp + 0x10]
push 0x40468000
push eax
push 0xd8
push edx
call fcn.00408d50
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 0x414158
mov edx, dword [esp + 0x10]
push 0x40310000
push eax
push 0x44
push edx
call fcn.00408d50
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 + 0x1c]
test ebp, ebp
je 0x414252
push str.CryptAcquireContextA
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 0x41424b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41424b
test eax, eax
je 0x41424b
push 0xf0000000
push 1
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call ebx
test eax, eax
je 0x4141fa
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb8]
push edx
push 0x40
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x4141ef
push 0x40500000
push 0
lea ecx, [esp + 0xc0]
push 0x40
push ecx
call fcn.00408d50
add esp, 0x10
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [esp + 0x1c]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
lea eax, [esp + 0x24]
push 0
push eax
call ebx
test eax, eax
je 0x41424b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
push ecx
push 0x40
push edx
call dword [esp + 0x1c]
test eax, eax
je 0x414240
push 0x40500000
push 0
lea eax, [esp + 0xc0]
push 0x40
push eax
call fcn.00408d50
add esp, 0x10
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00414620
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x3ff00000
push 0
lea eax, [esp + 0xa0]
push 0x20
push eax
call fcn.00408d50
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x3ff00000
push 0
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.00408d50
mov ebp, dword [esp + 0x30]
add esp, 0x10
test ebp, ebp
je 0x414361
push str.GetForegroundWindow
push ebp
call esi
push str.GetCursorInfo
push ebp
mov ebx, eax
call esi
push str.GetQueueStatus
push ebp
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x4142e9
call ebx
push 0
push 0
lea edx, [esp + 0x54]
push 4
push edx
mov dword [esp + 0x5c], eax
call fcn.00408d50
add esp, 0x10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x414331
cmp dword [esp + 0x108], 2
jne 0x414305
cmp dword [esp + 0xfc], 5
jb 0x414331
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x14
push ecx
call eax
test eax, eax
je 0x414331
mov edx, dword [esp + 0x38]
push 0x40000000
push 0
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00408d50
add esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41435a
push 0xbf
call eax
push 0x3ff00000
push 0
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.00408d50
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x41460a
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.CloseToolhelp32Snapshot
push edi
mov ebx, eax
call esi
push str.Heap32First
push edi
mov dword [esp + 0x5c], eax
call esi
push str.Heap32Next
push edi
mov dword [esp + 0x1c], eax
call esi
push str.Heap32ListFirst
push edi
mov dword [esp + 0x18], eax
call esi
push str.Heap32ListNext
push edi
mov ebp, eax
call esi
push str.Process32First
push edi
mov dword [esp + 0x34], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x30], eax
call esi
push str.Thread32First
push edi
mov dword [esp + 0x38], eax
call esi
push str.Thread32Next
push edi
mov dword [esp + 0x3c], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x28], eax
call esi
push str.Module32Next
push edi
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x414603
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x414603
test ebp, ebp
je 0x414603
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x414603
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x414603
test eax, eax
je 0x414603
push 0
push 0xf
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x414603
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0x10
push edx
push esi
call ebp
test eax, eax
je 0x414509
mov ebp, 0x24
mov eax, dword [esp + 0x38]
push 0x40080000
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00408d50
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
add esp, 0x10
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], ebp
push edx
push eax
push ecx
call dword [esp + 0x20]
test eax, eax
je 0x4144fb
mov ebx, 0x50
mov edx, dword [esp + 0x74]
push 0x40140000
push 0
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00408d50
add esp, 0x10
lea ecx, [esp + 0x74]
push ecx
call dword [esp + 0x14]
test eax, eax
je 0x4144fb
dec ebx
test ebx, ebx
jg 0x4144d0
lea edx, [esp + 0x38]
push edx
push esi
call dword [esp + 0x34]
test eax, eax
jne 0x414497
lea eax, [esp + 0x18c]
mov dword [esp + 0x18c], 0x128
push eax
push esi
call dword [esp + 0x30]
test eax, eax
je 0x414555
mov ecx, dword [esp + 0x18c]
push 0x40220000
push 0
lea edx, [esp + 0x194]
push ecx
push edx
call fcn.00408d50
add esp, 0x10
lea eax, [esp + 0x18c]
push eax
push esi
call dword [esp + 0x38]
test eax, eax
jne 0x414525
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x1c
push ecx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x414592
mov edx, dword [esp + 0x58]
push 0x40180000
push 0
lea eax, [esp + 0x60]
push edx
push eax
call fcn.00408d50
add esp, 0x10
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [esp + 0x28]
test eax, eax
jne 0x41456b
lea edx, [esp + 0x2b4]
mov dword [esp + 0x2b4], 0x224
push edx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x4145de
mov eax, dword [esp + 0x2b4]
push 0x40220000
push 0
lea ecx, [esp + 0x2bc]
push eax
push ecx
call fcn.00408d50
add esp, 0x10
lea edx, [esp + 0x2b4]
push edx
push esi
call dword [esp + 0x58]
test eax, eax
jne 0x4145ae
mov eax, dword [esp + 0x54]
push esi
test eax, eax
je 0x4145fd
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret