Function at 0x40a5d0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x45e208
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x738], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e074]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
push 0x94
xor ebx, ebx
lea eax, [esp + 0x208]
push ebx
push eax
call fcn.004481d0
add esp, 0xc
lea ecx, [esp + 0x204]
push ecx
mov dword [esp + 0x208], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a683
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40a683
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a683
lea edx, [esp + 0x210]
push edx
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0x210]
push edx
call eax
xor eax, eax
mov word [esp + 0x212], ax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call esi
push 1
mov dword [esp + 0x60], eax
call esi
mov dword [esp + 0x60], eax
mov esi, 0xf
mov eax, vtable.Share::String::_tstringA.0
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], ebx
mov byte [esp + 0x184], bl
mov dword [esp + 0x17c], eax
mov dword [esp + 0x758], ebx
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
mov dword [esp + 0x124], eax
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x104], eax
push 0x409f60
push 0x409f00
push 4
push 0x20
lea eax, [esp + 0x2ac]
push eax
mov byte [esp + 0x76c], 2
call fcn.004478ca
mov dword [esp + 0x1b4], esi
mov dword [esp + 0x1b0], ebx
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1cc], ebx
mov byte [esp + 0x1bc], bl
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], ebx
mov byte [esp + 0x1d8], bl
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x180]
push edx
mov byte [esp + 0x760], 4
call fcn.00402520
lea eax, [esp + 0x180]
push eax
mov edi, 0x461370
lea esi, [esp + 0x20]
call fcn.00401b70
add esp, 4
lea ecx, [esp + 0x128]
push ecx
push eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x760], 5
call fcn.00401ac0
push eax
mov edi, 0x461370
lea esi, [esp + 0x8c]
mov byte [esp + 0x764], 6
call fcn.00401b70
add esp, 0xc
mov ebp, 0x10
mov byte [esp + 0x758], 7
cmp dword [eax + 0x18], ebp
jb 0x40a80a
mov eax, dword [eax + 4]
jmp 0x40a80d
add eax, 4
cmp eax, ebx
je 0x40a82d
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40a816
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x110]
call fcn.004017b0
cmp dword [esp + 0x98], ebp
jb 0x40a846
mov edx, dword [esp + 0x84]
push edx
call fcn.00445523
add esp, 4
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x7c], ebp
jb 0x40a873
mov eax, dword [esp + 0x68]
push eax
call fcn.00445523
add esp, 4
mov byte [esp + 0x758], 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], ebp
jb 0x40a89a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00445523
add esp, 4
mov edx, dword [esp + 0x208]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040a010
mov byte [esp + 0x758], 8
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40a8c2
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a8c7
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov dword [esp + 0x1c], vtable.Share::String::_tstringA.0
cmp dword [esp + 0x38], ebp
jb 0x40a901
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00445523
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov edi, 0x461a24
call fcn.00409f90
mov byte [esp + 0x758], 9
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40a926
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
jmp 0x40a930
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a930
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov edi, vtable.Share::String::_tstringA.0
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40a96b
mov eax, dword [esp + 0x24]
push eax
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0x20c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040a010
mov byte [esp + 0x758], 0xa
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40a993
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a998
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40a9ce
mov eax, dword [esp + 0x24]
push eax
call fcn.00445523
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
mov edi, 0x461a24
call fcn.00409f90
mov byte [esp + 0x758], 0xb
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40a9f3
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a9f8
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov edi, vtable.Share::String::_tstringA.0
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40aa33
mov edx, dword [esp + 0x24]
push edx
call fcn.00445523
add esp, 4
mov eax, dword [esp + 0x210]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040a010
mov byte [esp + 0x758], 0xc
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40aa5b
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40aa60
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40aa96
mov edx, dword [esp + 0x24]
push edx
call fcn.00445523
add esp, 4
lea edi, [esp + 0x180]
call fcn.004094e0
lea edi, [esp + 0x128]
call fcn.004094e0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x1a8]
call fcn.004016d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x180]
push edx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x12c]
call fcn.00402f80
lea eax, [esp + 0x180]
push eax
mov edi, 0x461370
lea esi, [esp + 0x20]
call fcn.00401b70
add esp, 4
lea ecx, [esp + 0x128]
push ecx
push eax
lea edi, [esp + 0x88]
mov byte [esp + 0x760], 0xd
call fcn.00401ac0
push eax
mov edi, str._core_num_
lea esi, [esp + 0x70]
mov byte [esp + 0x764], 0xe
call fcn.00401b70
add esp, 0xc
mov byte [esp + 0x758], 0xf
cmp dword [eax + 0x18], ebp
jb 0x40ab44
mov edx, dword [eax + 4]
jmp 0x40ab47
lea edx, [eax + 4]
cmp edx, ebx
je 0x40ab67
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ab50
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x110]
call fcn.004017b0
cmp dword [esp + 0x7c], ebp
jb 0x40ab7a
mov edx, dword [esp + 0x68]
push edx
call fcn.00445523
add esp, 4
mov esi, 0xf
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x98], ebp
jb 0x40aba4
mov eax, dword [esp + 0x84]
push eax
call fcn.00445523
add esp, 4
mov byte [esp + 0x758], 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x34], ebp
jb 0x40abd4
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00445523
add esp, 4
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040a010
mov byte [esp + 0x758], 0x10
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40abf9
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ac00
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov dword [esp + 0x1c], vtable.Share::String::_tstringA.0
cmp dword [esp + 0x38], ebp
jb 0x40ac3a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00445523
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov edi, str._clock_speek_
call fcn.00409f90
mov byte [esp + 0x758], 0x11
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40ac5f
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ac64
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov edi, vtable.Share::String::_tstringA.0
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40ac9f
mov eax, dword [esp + 0x24]
push eax
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040a010
mov byte [esp + 0x758], 0x12
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x40acc4
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40acd0
sub eax, esi
push eax
push edx
lea eax, [esp + 0x110]
call fcn.00401d30
mov byte [esp + 0x758], 4
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x38], ebp
jb 0x40ad06
mov eax, dword [esp + 0x24]
push eax
call fcn.00445523
add esp, 4
lea edi, [esp + 0x180]
call fcn.004094e0
lea edi, [esp + 0x128]
call fcn.004094e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x20], ebx
call fcn.004016d0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2a0]
call fcn.00403200
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], ebx
jbe 0x40adcd
lea ebp, [esp + 0x2a0]
jmp 0x40ad60
cmp dword [esp + 0x18], 4
jge 0x40adc8
lea eax, [ebp - 4]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov edi, 0x461cb0
lea esi, [esp + 0x20]
call fcn.00401b70
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x764], 0x13
call fcn.004016d0
mov byte [esp + 0x758], 4
cmp dword [esp + 0x34], 0x10
jb 0x40adb6
mov eax, dword [esp + 0x20]
push eax
call fcn.00445523
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
add ebp, 0x20
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x40ad60
mov ebp, 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov cx, word [esp + 0x5c]
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x19c]
mov word [esp + 0x1fc], cx
mov dword [esp + 0x1f4], edx
mov dx, word [esp + 0x60]
push eax
lea ecx, [esp + 0x148]
push ecx
mov word [esp + 0x206], dx
call fcn.0040a3e0
push 0xa
lea edx, [esp + 0x338]
mov byte [esp + 0x764], 0x14
mov eax, dword [0x470604]
push edx
push eax
call fcn.0045a6c2
mov edx, dword [esp + 0x780]
add esp, 0x14
push 0xa
lea ecx, [esp + 0x320]
push ecx
push edx
mov byte [esp + 0x328], bl
mov dword [esp + 0x329], ebx
mov dword [esp + 0x32d], ebx
mov dword [esp + 0x331], ebx
mov word [esp + 0x335], bx
mov byte [esp + 0x337], bl
call fcn.0045a6c2
add esp, 0xc
push 6
push str._Host
lea eax, [esp + 0x14c]
call fcn.00401d30
lea eax, [esp + 0x32c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40aea7
sub eax, esi
push eax
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x14c]
call fcn.00401d30
push 9
push str._DurTime
lea eax, [esp + 0x14c]
call fcn.00401d30
lea eax, [esp + 0x31c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40aee2
sub eax, edx
push eax
lea ecx, [esp + 0x320]
push ecx
lea eax, [esp + 0x14c]
call fcn.00401d30
push 0xa
push str._u_d_d
lea ecx, [esp + 0x168]
mov dword [esp + 0x180], 0xf
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
call fcn.004017b0
mov byte [esp + 0x758], 0x15
mov eax, dword [esp + 0x164]
cmp dword [esp + 0x178], ebp
jae 0x40af4b
lea eax, [esp + 0x164]
mov edx, dword [esp + 0x768]
mov ecx, dword [esp + 0x764]
push edx
mov edx, dword [esp + 0x764]
push ecx
push edx
push eax
lea eax, [esp + 0x35c]
push 0x400
push eax
call fcn.00445a86
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x368]
lea edi, [esp + 0x38]
call fcn.0040c730
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x150]
mov byte [esp + 0x764], 0x16
call fcn.004016d0
mov byte [esp + 0x758], 0x15
cmp dword [esp + 0x34], ebp
jb 0x40afc4
mov edx, dword [esp + 0x20]
push edx
call fcn.00445523
add esp, 4
lea esi, [esp + 0x144]
call fcn.0040a360
cmp dword [esp + 0x178], ebp
jb 0x40afe9
mov eax, dword [esp + 0x164]
push eax
call fcn.00445523
add esp, 4
mov esi, 0xf
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], bl
cmp dword [esp + 0x15c], ebp
jb 0x40b01c
mov ecx, dword [esp + 0x148]
push ecx
call fcn.00445523
add esp, 4
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], bl
cmp dword [esp + 0x1ec], ebp
jb 0x40b04a
mov edx, dword [esp + 0x1d8]
push edx
call fcn.00445523
add esp, 4
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], ebx
mov byte [esp + 0x1d8], bl
cmp dword [esp + 0x1d0], ebp
jb 0x40b078
mov eax, dword [esp + 0x1bc]
push eax
call fcn.00445523
add esp, 4
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1cc], ebx
mov byte [esp + 0x1bc], bl
cmp dword [esp + 0x1b4], ebp
jb 0x40b0a6
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.00445523
add esp, 4
push 0x409f60
push 4
push 0x20
lea edx, [esp + 0x2a8]
push edx
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov byte [esp + 0x1b0], bl
mov byte [esp + 0x768], 2
call fcn.00447867
mov edi, vtable.Share::String::_tstringA.0
mov dword [esp + 0x104], edi
cmp dword [esp + 0x120], ebp
jb 0x40b0fe
mov eax, dword [esp + 0x10c]
push eax
call fcn.00445523
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x124], edi
cmp dword [esp + 0x140], ebp
jb 0x40b133
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00445523
add esp, 4
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
mov dword [esp + 0x17c], edi
cmp dword [esp + 0x198], ebp
jb 0x40b168
mov edx, dword [esp + 0x184]
push edx
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x738]
xor ecx, esp
call fcn.004453f2
add esp, 0x748
ret