Function at 0x530e60
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov dword [esp + 4], ecx
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x98], eax
movzx eax, byte [edx + 0xb]
test al, al
jns 0x530e8c
mov eax, dword [edx + 4]
mov esi, eax
mov dword [esp + 0xc], edx
call fcn.005312f0
mov dword [esp], eax
cmp byte [esp + 4], 0
je 0x530ea9
mov ecx, dword [esp]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor ebx, ebx
mov dword [esp + 8], esi
test esi, esi
sete bl
xor edi, edi
dec edi
lea esi, [esp + 0x48]
mov dword [esi + 4], edi
mov dword [esi], edi
push esi
call fcn.004b9100
add esp, 4
lea edx, [esp + 0x3c]
mov dword [edx], edi
mov dword [edx + 4], edi
mov dword [edx + 8], edi
movzx eax, byte [ebp + 0x14]
movzx ecx, byte [esp + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.00440d80
add esp, 0x1c
lea edi, [esp + 0x28]
push edi
call fcn.004b9100
add esp, 4
mov eax, dword [edi]
sub eax, dword [esi]
mov ecx, dword [edi + 4]
sbb ecx, dword [esi + 4]
lea edi, [esp + 0x50]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, edi
call fcn.004c8dd0
mov esi, eax
lea ebx, [esp + 0x38]
xor eax, eax
dec eax
mov dword [ebx], eax
push ebx
call fcn.00408180
add esp, 4
mov ebx, dword [ebx]
push esi
push edi
call fcn.00414740
add esp, 8
mov eax, dword [ebx]
mov ecx, ebx
push edi
push 0x1f
push str.CRASH_SERVICE_START_DURATION_MS
call dword [eax + 0xc]
cmp byte [edi + 0xb], 0
jns 0x530f5b
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
call fcn.004c6040
lea esi, [esp + 0x28]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [esp + 0xc]
call section..text
cmp dword [esp + 8], 0
jne 0x530f8f
lea ecx, [esp + 0x28]
push str.browser
call fcn.004b9520
mov ecx, dword [esp]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
movzx eax, byte [esp + 0x33]
test al, al
jns 0x530fa9
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, 0x18
mov ebx, 0x18
cmovb ebx, eax
push ebx
push esi
push 0x5c4344
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c4330
push ebx
call fcn.004c5ff0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
call fcn.004feef0
add esp, 8
movzx eax, byte [esp + 0x5b]
test al, al
jns 0x530fef
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp eax, 0xc
mov esi, 0xc
cmovb esi, eax
push esi
push edi
push 0x5c4370
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c435c
push esi
call fcn.004c5ff0
cmp byte [esp + 0x5b], 0
jns 0x531027
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
push 0x19
push str.YABROWSER_AUTOTESTS_AGENT
call dword [eax + 8]
test al, al
mov edi, 0xffffffff
je 0x531053
mov byte [0x5c4390], 0x31
mov ecx, 0x5c437c
push 1
call fcn.004c5ff0
lea esi, [esp + 0x1c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
call fcn.0041a390
push esi
push 7
call fcn.00428850
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x531081
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x50]
push eax
push esi
push edi
call fcn.00412900
add esp, 0xc
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5310a0
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov esi, 0x100
cmp eax, esi
cmovb esi, eax
push esi
push edi
push 0x5c43a8
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c4394
push esi
call fcn.004c5ff0
cmp byte [esp + 0x5b], 0
jns 0x5310d7
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
lea esi, [esp + 0x10]
lea ecx, [esp + 0x1c]
push esi
call fcn.004c95c0
push 0
push esi
call fcn.00531300
add esp, 8
lea esi, [esp + 0x50]
push eax
push esi
call fcn.00414740
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x53110e
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp eax, 0xc
mov edi, 0xc
cmovb edi, eax
push edi
push esi
push 0x5c44bc
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c44a8
push edi
call fcn.004c5ff0
cmp byte [esp + 0x5b], 0
jns 0x531146
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004c5e70
xorps xmm0, xmm0
lea esi, [esp + 0x50]
movaps xmmword [esi], xmm0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi], 0x40
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
shld edx, ecx, 0xc
test eax, eax
cmove edx, eax
push edx
push 0x579436
push esi
call fcn.004c8e30
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5311a0
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp eax, 0x10
mov edi, 0x10
cmovb edi, eax
push edi
push esi
push 0x5c44dc
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c44c8
push edi
call fcn.004c5ff0
cmp byte [esp + 0x5b], 0
jns 0x5311d8
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
lea esi, [esp + 0x50]
push esi
call fcn.005313b0
add esp, 4
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5311f5
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp eax, 0x18
mov edi, 0x18
cmovb edi, eax
push edi
push esi
push 0x5c4500
call fcn.004d4f00
add esp, 0xc
mov ecx, 0x5c44ec
push edi
call fcn.004c5ff0
cmp byte [esp + 0x5b], 0
jns 0x53122d
push dword [esp + 0x50]
call fcn.004cf0d6
add esp, 4
push 0x5317d0
call fcn.004418d0
add esp, 4
push 0x441950
call fcn.004418e0
add esp, 4
cmp byte [esp + 4], 0
jne 0x53129f
lea ecx, [esp + 0x1c]
call fcn.004c5e70
cmp byte [esp + 0x33], 0
jns 0x53126a
push dword [esp + 0x28]
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x531280
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0x3c]
call fcn.004c5e70
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004d25a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
call fcn.004cf0a6
add esp, 4
mov esi, eax
mov ecx, eax
lea edi, [esp + 0x3c]
push edi
call fcn.00407430
mov dword [0x5c74f4], esi
lea esi, [esp + 0x50]
push edi
push esi
call fcn.004418f0
add esp, 8
mov eax, dword [esi]
mov dword [0x5c74f0], eax
mov ecx, dword [esp]
mov eax, dword [ecx]
call dword [eax + 0x48]
movzx eax, al
push eax
call fcn.005028d0
add esp, 4
jmp 0x53124e