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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4d4
call fcn.0048d3b0
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push esi
lea eax, [esp + 0x100]
push edi
push eax
mov dword [esp + 0x108], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x4e8c14
call esi
mov ebp, eax
push 0x4e8c04
mov dword [esp + 0x1c], ebp
call esi
push 0x4e8bf8
mov edi, eax
call esi
push 0x4e8be8
mov dword [esp + 0x20], eax
call esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x473bb9
push 0x4e8bd4
push ebx
call esi
push 0x4e8bc0
push ebx
mov ebp, eax
call esi
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x473bae
test eax, eax
je 0x473bae
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4e8b9c
push 0
call ebp
test eax, eax
jne 0x473b7a
mov edx, dword [esp + 0x10]
push 0x40468000
push eax
push 0xd8
push edx
call fcn.004681d0
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 0x4e8b80
push 0
call ebp
test eax, eax
jne 0x473bae
mov edx, dword [esp + 0x10]
push 0x40310000
push eax
push 0x44
push edx
call fcn.004681d0
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 0x473cb5
push 0x4e8b68
push ebp
call esi
push 0x4e8b58
push ebp
mov ebx, eax
call esi
push 0x4e8b44
push ebp
mov dword [esp + 0x18], eax
call esi
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x473cae
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x473cae
test eax, eax
je 0x473cae
push 0xf0000000
push 1
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call ebx
test eax, eax
je 0x473c55
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc4]
push edx
push pe_nt_image_headers32
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x473c4a
push 0
push 0
lea ecx, [esp + 0xcc]
push pe_nt_image_headers32
push ecx
call fcn.004681d0
add esp, 0x10
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [esp + 0x1c]
push 0
push 0x16
push 0x4e8ae8
lea eax, [esp + 0x2c]
push 0
push eax
call ebx
test eax, eax
je 0x473cae
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc4]
push ecx
push pe_nt_image_headers32
push edx
call dword [esp + 0x1c]
test eax, eax
je 0x473ca3
push 0x40500000
push 0
lea eax, [esp + 0xcc]
push pe_nt_image_headers32
push eax
call fcn.004681d0
add esp, 0x10
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [esp + 0x1c]
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x473d78
push 0x4e8ad4
push ebp
call esi
push 0x4e8ac4
push ebp
mov ebx, eax
call esi
push 0x4e8ab4
push ebp
mov dword [esp + 0x20], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x473d00
call ebx
push 0
push 0
lea edx, [esp + 0x60]
push 4
push edx
mov dword [esp + 0x68], eax
call fcn.004681d0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x473d48
cmp dword [esp + 0x114], 2
jne 0x473d1c
cmp dword [esp + 0x108], 5
jb 0x473d48
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x14
push ecx
call eax
test eax, eax
je 0x473d48
mov edx, dword [esp + 0x44]
push 0x40000000
push 0
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.004681d0
add esp, 0x10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x473d71
push 0xbf
call eax
push 0x3ff00000
push 0
lea ecx, [esp + 0x34]
push 4
push ecx
mov dword [esp + 0x3c], eax
call fcn.004681d0
add esp, 0x10
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
test edi, edi
je 0x4740b2
push 0x4e8a98
push edi
xor ebp, ebp
call esi
push 0x4e8a80
push edi
mov ebx, eax
call esi
push 0x4e8a74
push edi
mov dword [esp + 0x30], eax
call esi
push 0x4e8a68
push edi
mov dword [esp + 0x18], eax
call esi
push 0x4e8a58
push edi
mov dword [esp + 0x48], eax
call esi
push 0x4e8a48
push edi
mov dword [esp + 0x1c], eax
call esi
push 0x4e8a38
push edi
mov dword [esp + 0x3c], eax
call esi
push 0x4e8a28
push edi
mov dword [esp + 0x44], eax
call esi
push 0x4e8a18
push edi
mov dword [esp + 0x38], eax
call esi
push 0x4e8a08
push edi
mov dword [esp + 0x40], eax
call esi
push 0x4e89f8
push edi
mov dword [esp + 0x24], eax
call esi
push 0x4e89e8
push edi
mov dword [esp + 0x20], eax
call esi
test ebx, ebx
mov dword [esp + 0x5c], eax
je 0x4740a3
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4740a3
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4740a3
test eax, eax
je 0x4740a3
push ebp
push 0xf
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4740a3
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
test eax, eax
mov dword [esp + 0x44], 0x10
je 0x473ebc
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x1c]
test eax, eax
je 0x473f63
mov eax, dword [esp + 0x44]
push 0x40080000
push 0
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004681d0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
add esp, 0x10
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x24
push edx
push eax
push ecx
call dword [esp + 0x1c]
test eax, eax
je 0x473f4b
mov ebx, 0x50
mov edx, dword [esp + 0x80]
push 0x40140000
push 0
lea eax, [esp + 0x88]
push edx
push eax
call fcn.004681d0
add esp, 0x10
lea ecx, [esp + 0x80]
push ecx
call dword [esp + 0x44]
test eax, eax
je 0x473f45
dec ebx
test ebx, ebx
jg 0x473f11
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
lea edx, [esp + 0x44]
push edx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x473f63
call ebx
cmp eax, ebp
jb 0x473ece
mov eax, dword [esp + 0x24]
mov dword [esp + 0x198], 0x128
test eax, eax
je 0x473f80
call ebx
mov ebp, eax
add ebp, 0x3e8
lea eax, [esp + 0x198]
push eax
push esi
call dword [esp + 0x44]
test eax, eax
je 0x473fc7
mov ecx, dword [esp + 0x198]
push 0x40220000
push 0
lea edx, [esp + 0x1a0]
push ecx
push edx
call fcn.004681d0
add esp, 0x10
lea eax, [esp + 0x198]
push eax
push esi
call dword [esp + 0x38]
test eax, eax
je 0x473fc7
call ebx
cmp eax, ebp
jb 0x473f91
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], 0x1c
test eax, eax
je 0x473fe1
call ebx
mov ebp, eax
add ebp, 0x3e8
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [esp + pe_nt_image_headers32]
test eax, eax
je 0x47401c
mov edx, dword [esp + 0x64]
push 0x40180000
push 0
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.004681d0
add esp, 0x10
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x47401c
call ebx
cmp eax, ebp
jb 0x473fef
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c0], 0x224
test eax, eax
je 0x474039
call ebx
mov ebp, eax
add ebp, 0x3e8
lea edx, [esp + 0x2c0]
push edx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x474080
mov eax, dword [esp + 0x2c0]
push 0x40220000
push 0
lea ecx, [esp + 0x2c8]
push eax
push ecx
call fcn.004681d0
add esp, 0x10
lea edx, [esp + 0x2c0]
push edx
push esi
call dword [esp + 0x64]
test eax, eax
je 0x474080
call ebx
cmp eax, ebp
jb 0x47404a
mov eax, dword [esp + 0x28]
push esi
test eax, eax
je 0x474094
call eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x4740b8
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x4740b8
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x4740b8
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
mov eax, dword [0x533b90]
test eax, eax
je 0x4740f3
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4740d7
mov dword [0x533b90], eax
jmp 0x4740f3
push 0
push 0
lea ecx, [esp + 0x64]
push 8
push ecx
call fcn.004681d0
mov eax, dword [0x533b90]
add esp, 0x10
test eax, eax
jne 0x47410c
call ebx
push 0
push 0
lea edx, [esp + 0x30]
push 4
push edx
mov dword [esp + 0x38], eax
call fcn.004681d0
add esp, 0x10
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
push 0x3ff00000
push 0
lea ecx, [esp + 0xac]
push 0x20
push ecx
call fcn.004681d0
add esp, 0x10
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push 0x3ff00000
push 0
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x3c], eax
call fcn.004681d0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret