Function at 0x42920b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f4
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
push esi
push edi
cmp dword [eax + 0x4006c], 0
mov esi, ecx
mov dword [ebp - 0x3e8], eax
je 0x42923b
xor eax, eax
jmp 0x4298bc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42923e
sub ecx, edx
inc ecx
call fcn.00412734
mov edi, eax
mov edx, edi
mov dword [ebp - 0x400], edi
sub edx, esi
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
test cl, cl
jne 0x429259
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x429268
lea eax, [ebp - 0x398]
mov word [ebp - 0x3e4], 0x2b
sub ebx, ecx
mov dl, 0x2b
push 0x64
push eax
mov ecx, edi
call fcn.004129df
xorps xmm0, xmm0
mov dword [ebp - 0x3fc], eax
pop ecx
xor esi, esi
movlpd qword [ebp - 0x3c8], xmm0
movlpd qword [ebp - 0x3e0], xmm0
pop ecx
test eax, eax
jle 0x4293e3
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 0x3c4]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp + esi*4 - 0x398]
call fcn.00414b5d
mov edi, eax
test edi, edi
je 0x429545
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x3f4], eax
add dword [ebp - 0x3d0], eax
push ecx
adc dword [ebp - 0x3cc], ecx
push ecx
mov dword [ebp + esi*8 - 0x7f0], eax
mov eax, dword [edi]
push ecx
mov dword [ebp + esi*8 - 0x7ec], ecx
mov ecx, edi
push 0x4854f0
call dword [eax + 0x28]
test eax, eax
setle cl
mov byte [ebp + esi - 0x468], cl
test eax, eax
jg 0x429352
mov eax, dword [ebp - 0x3f4]
add dword [ebp - 0x3d4], eax
adc dword [ebp - 0x3c4], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0
push str.MemoryBarrierDecompression_
call dword [eax + 0x28]
test eax, eax
setg cl
mov byte [ebp + esi - 0x4d0], cl
test eax, eax
jle 0x4293c7
and dword [ebp + esi*8 - 0x7f0], 0
xorps xmm0, xmm0
and dword [ebp + esi*8 - 0x7ec], 0
movlpd qword [ebp - 0x3c8], xmm0
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x3c8]
movlpd qword [ebp - 0x3e0], xmm0
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3d4], eax
push edi
call fcn.00436cda
inc esi
pop ecx
cmp esi, dword [ebp - 0x3fc]
jl 0x4292e1
mov edi, dword [ebp - 0x3c4]
jmp 0x42940d
mov eax, dword [ebp - 0x3c4]
mov edi, dword [ebp - 0x3dc]
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3e8]
push 3
pop esi
mov ecx, dword [eax + 0x40070]
mov dword [ebp - 0x3f8], ecx
test ecx, ecx
jne 0x4294ae
call fcn.004277b7
sub eax, 0x1e00000
mov dword [ebp - 0x3f4], eax
call fcn.00413187
mov ecx, eax
shrd ecx, edx, 2
push 3
shr edx, 2
mov eax, edx
mul esi
mov esi, eax
mov eax, ecx
pop ecx
mul ecx
add esi, edx
test esi, esi
ja 0x429498
jb 0x429465
cmp eax, dword [ebp - 0x3f4]
jae 0x429498
call fcn.00413187
mov ecx, eax
shrd ecx, edx, 2
push 3
shr edx, 2
mov eax, edx
pop esi
mul esi
mov dword [ebp - 0x3f0], eax
mov eax, ecx
mul esi
add dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0x3e8]
jmp 0x4294b5
call fcn.004277b7
sub eax, 0x1e00000
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0x3e8]
and dword [ebp - 0x3f0], 0
mov esi, dword [eax + 0x40070]
mov dword [ebp - 0x3f4], esi
test esi, esi
jne 0x429519
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x3b8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [ebp - 0x3e0]
call fcn.00427710
mov esi, dword [ebp - 0x3a4]
cmp dword [ebp - 0x3dc], esi
push 0x8000
cmovb esi, dword [ebp - 0x3dc]
push 0
push dword [ebp - 0x3e0]
sub esi, 0x500000
mov dword [ebp - 0x3f4], esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x3cc]
cmp ecx, dword [ebp - 0x3f0]
ja 0x429557
jb 0x429537
mov eax, dword [ebp - 0x3d0]
cmp eax, dword [ebp - 0x3f8]
ja 0x429557
test edi, edi
ja 0x429557
jb 0x429545
cmp dword [ebp - 0x3d4], esi
ja 0x429557
push dword [ebp - 0x400]
call fcn.00436cda
xor eax, eax
jmp 0x4298bb
lea ecx, [ebp - 0x3e4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429560
mov eax, dword [ebp - 0x3fc]
sub ecx, edx
add ecx, 8
inc ebx
dec eax
imul ecx, eax
add ecx, ebx
call fcn.00412734
mov edi, eax
xorps xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x3e8], edi
movlpd qword [ebp - 0x3e0], xmm0
movlpd qword [ebp - 0x3c8], xmm0
mov byte [edi], 0
cmp dword [ebp - 0x3fc], ebx
jle 0x4298a0
mov ecx, dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3d4], ecx
mov ecx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - 0x3c4], eax
cmp byte [ebp + ebx - 0x468], 0
je 0x4295ea
mov edi, esi
xor eax, eax
jmp 0x4295f6
mov edi, dword [ebp - 0x3f8]
mov eax, dword [ebp - 0x3f0]
mov cl, byte [ebp + ebx - 0x4d0]
mov byte [ebp - 0x3e9], cl
test cl, cl
jne 0x42966a
cmp dword [ebp + ebx*8 - 0x7ec], eax
jb 0x42966a
ja 0x42961b
cmp dword [ebp + ebx*8 - 0x7f0], edi
jbe 0x42966a
mov ecx, dword [ebp + ebx*4 - 0x398]
call fcn.00414b5d
mov esi, eax
test esi, esi
je 0x42964e
mov edx, dword [esi]
mov ecx, esi
push edi
call dword [edx + 0x1c]
mov edx, dword [esi]
lea eax, [ebp - 0x208]
push 0
push eax
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x2c]
lea ecx, [ebp - 0x208]
call fcn.0041485d
and dword [ebp + ebx*8 - 0x7ec], 0
mov dword [ebp + ebx*8 - 0x7f0], eax
jmp 0x429683
mov ecx, dword [ebp + ebx*4 - 0x398]
lea edx, [ebp - 0x208]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x429679
mov edi, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x3cc]
test edi, edi
jne 0x42969b
test eax, eax
je 0x429788
mov edx, dword [ebp + ebx*8 - 0x7ec]
mov ecx, dword [ebp + ebx*8 - 0x7f0]
test edx, edx
jne 0x4296b5
test ecx, ecx
je 0x429788
mov esi, ecx
add esi, eax
mov eax, edx
adc eax, edi
cmp eax, dword [ebp - 0x3f0]
ja 0x429700
jb 0x4296cf
cmp esi, dword [ebp - 0x3f8]
ja 0x429700
mov ah, byte [ebp + ebx - 0x468]
test ah, ah
je 0x42978f
add ecx, dword [ebp - 0x3c4]
adc edx, dword [ebp - 0x3d0]
test edx, edx
jb 0x42978f
ja 0x429700
cmp ecx, dword [ebp - 0x3f4]
jbe 0x42978f
mov ecx, dword [ebp - 0x3e8]
lea edi, [ecx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x429709
mov esi, str.tempfile
lea edx, [ebp - 0x3e4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x429721
sub edx, esi
lea edi, [ecx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42972d
mov ecx, edx
xorps xmm0, xmm0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 3
pop eax
movlpd qword [ebp - 0x3c8], xmm0
mov ecx, edx
and ecx, eax
movlpd qword [ebp - 0x3e0], xmm0
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x3dc]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x3c4]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3c4], eax
mov ah, byte [ebp + ebx - 0x468]
lea edx, [ebp - 0x208]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x429797
mov edi, dword [ebp - 0x3e8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4297a7
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x3e4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4297c5
mov edi, dword [ebp - 0x3e8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4297d5
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x3cc]
and ecx, 3
add edx, dword [ebp + ebx*8 - 0x7f0]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x3d4]
adc ecx, dword [ebp + ebx*8 - 0x7ec]
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x3d4], ecx
test ah, ah
je 0x42983b
mov ecx, dword [ebp - 0x3c4]
add ecx, dword [ebp + ebx*8 - 0x7f0]
mov eax, dword [ebp - 0x3d0]
adc eax, dword [ebp + ebx*8 - 0x7ec]
mov dword [ebp - 0x3c4], ecx
mov dword [ebp - 0x3d0], eax
cmp byte [ebp - 0x3e9], 0
je 0x429887
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c8], xmm0
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3c8]
movlpd qword [ebp - 0x3e0], xmm0
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3c4], eax
mov esi, dword [ebp - 0x3f4]
inc ebx
cmp ebx, dword [ebp - 0x3fc]
jl 0x4295da
mov edi, dword [ebp - 0x3e8]
push dword [ebp - 0x400]
call fcn.00436cda
pop ecx
push 0
push edi
call fcn.0042c1f0
pop ecx
mov byte [eax - 1], 0
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a75e
leave
ret