Function at 0x47a900
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0xec8980]
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 - 0x484], eax
jne 0x47ad3a
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a930
sub ecx, edx
inc ecx
call fcn.004783a0
mov edi, eax
mov edx, edi
mov dword [ebp - 0x494], edi
sub edx, esi
nop dword [eax + eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x47a950
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x47a962
lea eax, [ebp - 0x398]
mov word [ebp - 0x470], 0x2b
sub ebx, ecx
mov dl, 0x2b
push 0x64
push eax
mov ecx, edi
call fcn.0045cc40
xorps xmm0, xmm0
mov dword [ebp - 0x490], eax
add esp, 8
movlpd qword [ebp - 0x480], xmm0
mov edi, dword [ebp - 0x47c]
xor esi, esi
movlpd qword [ebp - 0x460], xmm0
test eax, eax
jle 0x47aaf6
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x468], ecx
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x464], eax
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x398]
call fcn.0045eea0
mov edi, eax
test edi, edi
je 0x47ad2c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
add dword [ebp - 0x46c], eax
mov ecx, edi
push 0
adc dword [ebp - 0x468], 0
push 0
mov dword [ebp - 0x474], eax
mov dword [ebp + esi*8 - 0x888], eax
mov eax, dword [edi]
push 0
push str.SparseDecompression_
mov dword [ebp + esi*8 - 0x884], 0
call dword [eax + 0x28]
test eax, eax
setle cl
mov byte [ebp + esi - 0x500], cl
test eax, eax
jg 0x47aa57
mov eax, dword [ebp - 0x474]
add dword [ebp - 0x464], eax
adc dword [ebp - 0x45c], 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 - 0x568], cl
test eax, eax
jle 0x47aad2
xorps xmm0, xmm0
mov dword [ebp + esi*8 - 0x888], 0
movlpd qword [ebp - 0x460], xmm0
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x460]
movlpd qword [ebp - 0x480], xmm0
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp + esi*8 - 0x884], 0
mov dword [ebp - 0x464], eax
push edi
call fcn.0048e4e1
inc esi
add esp, 4
cmp esi, dword [ebp - 0x490]
jl 0x47a9e0
mov edi, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x464]
jmp 0x47ab14
mov eax, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x480]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax + 0x40070]
mov dword [ebp - 0x474], ecx
test ecx, ecx
jne 0x47ac90
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [ebp - 0x418], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47ab74
lea ecx, [ebp - 0x418]
push ecx
call eax
test eax, eax
je 0x47ab74
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x40c]
jmp 0x47ab99
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3d8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x464], eax
xor eax, eax
mov dword [ebp - 0x45c], eax
call fcn.004782e0
mov ecx, dword [ebp - 0x45c]
sub eax, 0x1e00000
mov edx, dword [ebp - 0x464]
shrd edx, ecx, 2
mov dword [ebp - 0x474], eax
shr ecx, 2
mov eax, edx
mov dword [ebp - 0x45c], ecx
shld ecx, eax, 1
add eax, eax
add edx, eax
mov eax, dword [ebp - 0x45c]
adc eax, ecx
test eax, eax
ja 0x47ac7a
jb 0x47abf0
cmp edx, dword [ebp - 0x474]
jae 0x47ac7a
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [ebp - 0x458], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47ac30
lea ecx, [ebp - 0x458]
push ecx
call eax
test eax, eax
je 0x47ac30
mov edx, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x44c]
jmp 0x47ac4f
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x3b8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x3b0]
xor ecx, ecx
shrd edx, ecx, 2
shr ecx, 2
mov eax, edx
mov dword [ebp - 0x488], ecx
shld ecx, eax, 1
add eax, eax
add edx, eax
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x474], edx
adc dword [ebp - 0x488], ecx
jmp 0x47ac9a
call fcn.004782e0
sub eax, 0x1e00000
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x488], 0
mov eax, dword [eax + 0x40070]
mov dword [ebp - 0x48c], eax
test eax, eax
jne 0x47acfe
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x3b8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [ebp - 0x480]
call fcn.004781e0
mov ecx, dword [ebp - 0x3a4]
cmp dword [ebp - 0x47c], ecx
push 0x8000
cmovb ecx, dword [ebp - 0x47c]
push 0
push dword [ebp - 0x480]
sub ecx, 0x500000
mov dword [ebp - 0x48c], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x468]
cmp ecx, dword [ebp - 0x488]
ja 0x47ad4d
jb 0x47ad1c
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x474]
ja 0x47ad4d
test edi, edi
ja 0x47ad4d
jb 0x47ad2c
mov edi, dword [ebp - 0x48c]
cmp esi, edi
ja 0x47ad53
push dword [ebp - 0x494]
call fcn.0048e4e1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x48c]
lea ecx, [ebp - 0x470]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ad60
mov eax, dword [ebp - 0x490]
sub ecx, edx
add ecx, 8
dec eax
imul ecx, eax
inc ebx
add ecx, ebx
call fcn.004783a0
mov esi, eax
xorps xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x484], esi
movlpd qword [ebp - 0x480], xmm0
movlpd qword [ebp - 0x460], xmm0
mov byte [esi], 0
cmp dword [ebp - 0x490], ebx
jle 0x47b0e4
mov eax, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x460]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x45c], eax
nop word [eax + eax]
cmp byte [ebp + ebx - 0x500], 0
je 0x47adee
xor eax, eax
jmp 0x47adfa
mov edi, dword [ebp - 0x474]
mov eax, dword [ebp - 0x488]
cmp byte [ebp + ebx - 0x568], 0
jne 0x47aeb3
cmp dword [ebp + ebx*8 - 0x884], eax
jb 0x47aeb3
ja 0x47ae24
cmp dword [ebp + ebx*8 - 0x888], edi
jbe 0x47aeb3
mov ecx, dword [ebp + ebx*4 - 0x398]
call fcn.0045eea0
mov esi, eax
test esi, esi
je 0x47ae57
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.0045eea0
mov esi, eax
test esi, esi
je 0x47ae94
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx + 0x2c]
mov esi, dword [ebp - 0x468]
mov dword [ebp + ebx*8 - 0x888], edi
mov dword [ebp + ebx*8 - 0x884], 0
jmp 0x47aecf
mov esi, dword [ebp - 0x468]
mov edi, 0xfffffffe
mov dword [ebp + ebx*8 - 0x888], edi
mov dword [ebp + ebx*8 - 0x884], 0
jmp 0x47aecf
mov ecx, dword [ebp + ebx*4 - 0x398]
lea edx, [ebp - 0x208]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x47aec2
mov edi, dword [ebp - 0x46c]
test edi, edi
jne 0x47aee1
test esi, esi
je 0x47afe9
mov edx, dword [ebp + ebx*8 - 0x884]
mov ecx, dword [ebp + ebx*8 - 0x888]
test edx, edx
jne 0x47aefb
test ecx, ecx
je 0x47afe9
mov esi, ecx
mov eax, edx
add esi, dword [ebp - 0x468]
adc eax, edi
cmp eax, dword [ebp - 0x488]
ja 0x47af49
jb 0x47af19
cmp esi, dword [ebp - 0x474]
ja 0x47af49
cmp byte [ebp + ebx - 0x500], 0
je 0x47afe9
add ecx, dword [ebp - 0x45c]
adc edx, dword [ebp - 0x464]
test edx, edx
jb 0x47afe9
ja 0x47af49
cmp ecx, dword [ebp - 0x48c]
jbe 0x47afe9
mov edi, dword [ebp - 0x484]
lea ecx, [edi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x47af52
mov eax, dword [str.tempfile]
lea edx, [ebp - 0x470]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0xea1318]
mov dword [ecx + 4], eax
mov al, byte [0xea131c]
mov byte [ecx + 8], al
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x47af80
sub edx, esi
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47af90
mov ecx, edx
xorps xmm0, xmm0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movlpd qword [ebp - 0x460], xmm0
mov ecx, edx
mov eax, dword [ebp - 0x45c]
and ecx, 3
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x460]
movlpd qword [ebp - 0x480], xmm0
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x480]
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x45c], eax
lea edx, [ebp - 0x208]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x47aff1
mov edi, dword [ebp - 0x484]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47b001
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x470]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x47b020
mov edi, dword [ebp - 0x484]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47b030
mov ecx, edx
mov eax, dword [ebp + ebx*8 - 0x888]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x468]
mov ecx, dword [ebp + ebx*8 - 0x884]
add esi, eax
mov dword [ebp - 0x468], esi
adc dword [ebp - 0x46c], ecx
cmp byte [ebp + ebx - 0x500], 0
je 0x47b07e
add dword [ebp - 0x45c], eax
adc dword [ebp - 0x464], ecx
cmp byte [ebp + ebx - 0x568], 0
je 0x47b0cb
xorps xmm0, xmm0
movlpd qword [ebp - 0x480], xmm0
mov eax, dword [ebp - 0x47c]
movlpd qword [ebp - 0x460], xmm0
mov ecx, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x45c], eax
mov edi, dword [ebp - 0x48c]
inc ebx
cmp ebx, dword [ebp - 0x490]
jl 0x47ade0
mov esi, dword [ebp - 0x484]
push dword [ebp - 0x494]
call fcn.0048e4e1
add esp, 4
push 0
push esi
call fcn.0048ad50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov byte [eax - 1], 0
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.00488f09
mov esp, ebp
pop ebp
ret