Function at 0x46a9a0
Capabilities:
Get memory capacity
Read .ini file

Disassembly:
sub esp, 0x45c
mov eax, dword [0x58f080]
xor eax, esp
mov dword [esp + 0x458], eax
push ebp
xor ebp, ebp
push esi
mov esi, ecx
cmp dword [0x5c25ec], ebp
jne 0x46ad3e
push 0x318
push esi
call fcn.00479960
add esp, 8
mov dword [esi + 0x318], ebp
lea eax, [esi + 0x31c]
push 0x5506e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0x41c]
push 0x240
push eax
call fcn.00479960
lea eax, [esi + 0x65c]
push 0x400
push eax
call fcn.00479960
mov eax, dword [esp + 0x47c]
add esp, 0x10
mov dword [esi + 0xa6c], eax
mov ecx, esi
mov dword [esi + 0xa70], ebp
mov dword [esi + 0xa74], ebp
push eax
mov dword [esi + 0xa78], ebp
mov dword [esi + 0xa7c], ebp
call fcn.0046be40
test eax, eax
je 0x46aa65
cmp dword [esi + 0xa6c], 2
jne 0x46aa65
mov ecx, esi
call fcn.0046b9c0
mov ebp, eax
test ebp, ebp
je 0x46aa65
push 0x4fc470
call fcn.0046c180
add esp, 4
push ebx
mov ebx, dword [esp + 0x46c]
push edi
test bl, 1
je 0x46aa7a
mov ecx, esi
call fcn.0046ba80
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
test bl, 2
je 0x46ab19
test ebp, ebp
jne 0x46ab19
lea eax, [esp + 0x58]
push 0x200
push eax
call fcn.00479960
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00469860
add esp, 0x14
test eax, eax
jns 0x46aacc
xor ecx, ecx
mov dword [esi + 0x318], ebp
mov word [esi + 0x31c], cx
jmp 0x46ab19
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x18]
lea eax, [esi + 0x31c]
push dword [esp + 0x18]
push str._d._d_s
push eax
call edi
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov edx, dword [esp + 0x58]
shl ecx, 8
or ecx, dword [esp + 0x14]
shl ecx, 8
lea eax, [edx - 0x61]
mov dword [esi + 0x318], ecx
cmp ax, 0x19
ja 0x46ab19
movzx eax, dx
sub eax, 0x60
or eax, ecx
mov dword [esi + 0x318], eax
test bl, 8
je 0x46ab32
test ebp, ebp
jne 0x46ab32
mov eax, ebx
mov ecx, esi
shr eax, 4
and eax, 1
push eax
call fcn.0046b7c0
test bl, 4
je 0x46abca
lea eax, [esp + 0x18]
mov dword [esi + 0xa5c], 0
push eax
mov dword [esi + 0xa60], 0
mov dword [esi + 0xa64], 0
mov dword [esi + 0xa68], 0
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [esp + 0x24]
mov dword [esi + 0xa5c], ecx
mov ecx, dword [esp + 0x20]
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xa60], ecx
mov ecx, dword [esp + 0x38]
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [esp + 0x34]
mov dword [esi + 0xa64], ecx
mov ecx, dword [esp + 0x30]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi + 0xa68], ecx
test bl, 0x20
je 0x46ad36
lea eax, [esp + 0x260]
push eax
push 7
call fcn.0047a550
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x64]
push str._sOeminfo.ini
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x6c]
add esp, 0x14
lea ebp, [esi + 0x65c]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Manufacturer
push str.General
call ebx
test eax, eax
jne 0x46ac8f
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x5c]
push str._s_systemOeminfo.ini
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Manufacturer
push str.General
call ebx
test eax, eax
jne 0x46ac8f
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x5c]
push str._s_system32Oeminfo.ini
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Manufacturer
push str.General
call ebx
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x5c]
push str._sOeminfo.ini
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x58]
lea ebp, [esi + 0x85c]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Model
push str.General
call ebx
test eax, eax
jne 0x46ad36
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x5c]
push str._s_systemOeminfo.ini
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Model
push str.General
call ebx
test eax, eax
jne 0x46ad36
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x5c]
push str._s_system32Oeminfo.ini
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x100
push ebp
push 0x5506e8
push str.Model
push str.General
call ebx
pop edi
mov dword [0x5c25ec], esi
pop ebx
mov ecx, dword [esp + 0x460]
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0049493f
add esp, 0x45c
ret 8