Function at 0x459460
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx + 0x7c]
push esi
push edi
mov dword [ebp - 0x54], ebx
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45974a
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004a5940
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4594ba
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x4594d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4594f6
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
test esi, esi
jne 0x4594dc
cmp edx, 0x6000000
jbe 0x4594f3
test ecx, ecx
jne 0x4594e7
cmp eax, 0x4000000
jbe 0x4594f3
add dword [ebx + 0x14], 0x1000000
jmp 0x45974a
mov esi, dword [ebp - 0x50]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
push 0x51b7e0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048bd26
mov ecx, eax
add esp, 8
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x459535
lea eax, [ecx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [ebx], edi
je 0x45956c
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
jbe 0x45973f
xor edx, edx
mov eax, dword [ebx]
add eax, edx
cmp dword [eax], 0
je 0x459561
mov esi, dword [ebp - 0x4c]
mov dword [esi + edi*4], eax
inc edi
cmp edi, dword [ebp - 0x50]
je 0x4595de
inc ecx
add edx, 0xc
cmp ecx, dword [ebx + 0xc]
jb 0x459548
jmp 0x4595de
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45973f
mov ecx, dword [ecx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45973f
mov ebx, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 0
lea edx, [eax + 0x18]
je 0x459597
mov dword [ebx + edi*4], edx
inc edi
cmp edi, esi
je 0x4595db
cmp byte [eax + 0xd], 0
jne 0x4595d7
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x4595bc
mov eax, edx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x4595d7
mov eax, edx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
je 0x4595b0
jmp 0x4595d7
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x4595d5
cmp eax, dword [edx + 8]
jne 0x4595d5
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x4595c5
mov eax, edx
cmp eax, ecx
jne 0x459586
mov ebx, dword [ebp - 0x54]
cmp edi, 1
jbe 0x45973f
mov eax, dword [ebx]
test eax, eax
je 0x45960a
cmp dword [eax], 0
je 0x4595f6
add dword [eax + 8], 2
mov eax, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
cmp dword [eax + ecx*4 - 0xc], 0
je 0x45960a
add dword [eax + ecx*4 - 4], 2
push 0x459420
push 4
push edi
push dword [ebp - 0x4c]
call fcn.004b9560
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
je 0x459640
cmp dword [eax], 0
je 0x45962c
add dword [eax + 8], 0xfffffffe
mov eax, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
cmp dword [eax + ecx*4 - 0xc], 0
je 0x459640
add dword [eax + ecx*4 - 4], 0xfffffffe
mov eax, dword [ebp - 0x4c]
mov edx, edi
mov ecx, dword [ebx + 0x18]
xor esi, esi
shr edx, 2
mov dword [ebp - 0x50], edx
mov eax, dword [eax + edi*4 - 4]
mov dword [ebp - 0x58], ecx
cmp dword [eax + 4], ecx
jbe 0x459682
lea esi, [edi - 1]
test esi, esi
je 0x459682
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
add ecx, 0xfffffffc
lea ecx, [ecx + esi*4]
nop
mov eax, dword [ecx]
cmp dword [eax + 4], ebx
jbe 0x45967f
sub ecx, 4
sub esi, 1
jne 0x459670
mov ebx, dword [ebp - 0x54]
test edx, edx
je 0x4596cb
cmp esi, edi
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax + esi*4]
mov eax, dword [ebx]
test eax, eax
je 0x4596c0
push eax
call fcn.0048bd21
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [ebx], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov ebx, dword [ebp - 0x54]
dec dword [ebx + 0x10]
jmp 0x4596c3
mov ebx, dword [ebp - 0x54]
sub edx, 1
mov dword [ebp - 0x50], edx
jne 0x459686
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45973f
mov ecx, dword [ecx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45973f
nop word [eax + eax]
cmp dword [eax + 0x18], 0
je 0x459729
cmp byte [eax + 0xd], 0
jne 0x459738
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x45970c
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x459738
nop
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x459700
jmp 0x459738
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x459725
cmp eax, dword [ecx + 8]
jne 0x459725
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x459715
mov eax, ecx
jmp 0x459738
mov ecx, dword [ebx + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00451000
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
cmp eax, dword [ecx]
jne 0x4596e0
push dword [ebp - 0x4c]
call fcn.0048bd21
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret 8