Function at 0x414360
Capabilities:
Get memory capacity
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5b54
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2c
lea eax, [ebp - 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x90], 0x40
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
call fcn.004e4720
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
movsd qword [ebp - 0xb0], xmm0
call fcn.004e4720
movaps xmm2, xmm0
movsd xmm0, qword [ebp - 0xb0]
comisd xmm0, xmmword [0x4f5ea8]
movaps xmm1, xmm2
movsd qword [ebp - 0xd4], xmm2
subsd xmm1, xmm0
jbe 0x414420
movaps xmm0, xmm1
divsd xmm0, xmm2
mulsd xmm0, qword [0x4f5f40]
jmp 0x414428
movsd xmm0, qword [0x4f5f40]
mulsd xmm1, qword [0x4f5ee8]
movsd qword [ebp - 0xb0], xmm0
movaps xmm0, xmm1
call fcn.004e4670
movsd xmm0, qword [ebp - 0xd4]
mulsd xmm0, qword [0x4f5ee8]
mov dword [ebp - 0xcc], eax
call fcn.004e4670
push 0x34
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x414523
push edi
push esi
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp eax, edi
je 0x414599
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x100]
mov eax, dword [ebp - 0xd8]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0xe0]
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], eax
call fcn.00417a10
push dword [ebp - 0x38]
call fcn.004e3288
push dword [ebp - 0x40]
call fcn.004e3288
push dword [ebp - 0x48]
call fcn.004e3288
push dword [ebp - 0x50]
call fcn.004e3288
mov eax, esi
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3214
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 1]
movzx eax, byte [esi + 2]
shl ecx, 8
add ecx, eax
mov dword [ebp - method.std::_Func_impl_no_alloc_class__public:_bool___thiscall_xmrig::DmiReader::read_void_::_2::_lambda_1___void___.virtual_0], vtable.std::_Func_impl_no_alloc_class__public:_bool___thiscall_xmrig::DmiReader::read_void_::_2::_lambda_1___void___.0
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, eax
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x12c], eax
lea eax, [esi + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.00422950
mov ecx, dword [ebp - 0x12c]
mov byte [ebp - 0x95], al
test ecx, ecx
jne 0x4145fa
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x41462a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x150]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x12c], 0
cmp byte [ebp - 0x95], 0
je 0x414523
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], ecx
xor edx, edx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0xa0], eax
cmp esi, eax
je 0x41481b
lea edx, [esi + 8]
mov esi, eax
mov dword [ebp - 0x94], edx
cmp dword [edx + 0x14], 0
je 0x4147fe
mov eax, dword [edx]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x104], 0
test eax, eax
jne 0x4146b3
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x128], eax
mov eax, dword [edx + 0x28]
shrd eax, ecx, 0x1e
shr ecx, 0x1e
mov dword [ebp - 0x11c], ecx
mov cl, byte [edx + 0x3a]
mov dword [ebp - 0x120], eax
mov al, cl
dec al
cmp al, 0x22
ja 0x4146e9
movzx eax, cl
mov eax, dword [eax*4 + vtable.std::_Root_node.0]
jmp 0x4146ee
mov eax, dword [str.Unknown]
mov ecx, dword [edx + 0x30]
mov edi, 0x431bde82
mov dword [ebp - 0x118], eax
mov edx, 0xd7b634db
mov eax, ecx
mul edx
mov dword [ebp - 0xa8], eax
mov esi, edx
mov eax, ecx
mov ecx, 0xd7b634db
mul edi
mov edi, eax
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x34]
mul ecx
mov ecx, eax
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0x94]
mov edx, 0x431bde82
mov eax, dword [eax + 0x34]
mul edx
add ecx, esi
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp - 0xb4]
adc edx, 0
mov dword [ebp - 0xc8], eax
add edi, ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], edi
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xc8]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xa4]
adc edx, eax
shrd ecx, edx, 0x12
shr edx, 0x12
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x110], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x14]
je 0x4147d9
movups xmm0, xmmword [ebp - 0x128]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x118]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x108]
movq qword [eax + 0x20], xmm0
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
mov dword [ebp - 0x18], ecx
jmp 0x4147f2
lea ecx, [ebp - 0x128]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041abe0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x94]
mov esi, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], ecx
add edx, 0x48
mov dword [ebp - 0x94], edx
lea eax, [edx - 8]
cmp eax, esi
jne 0x414682
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], edx
sub ecx, edx
mov eax, 0x66666667
imul ecx
mov ecx, dword [0x4feb4c]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
test ecx, ecx
jne 0x41486b
push 0x7c
call fcn.004e3258
mov esi, eax
mov dword [ebp - 0xa4], esi
push 0x7c
push 0
push esi
mov byte [ebp - 4], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.0040e6b0
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [0x4feb4c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov edx, dword [ebp - 0x50]
mov cl, al
mov eax, dword [ebp - 0x3c]
test cl, cl
xorps xmm0, xmm0
cmovne edx, dword [ebp - 0x40]
cmove eax, dword [ebp - 0x4c]
mov dword [ebp - 0x9c], edx
movlpd qword [ebp - 0xa8], xmm0
test eax, eax
je 0x4148b1
mov eax, dword [ebp - 0x34]
test cl, cl
cmove eax, dword [ebp - 0x44]
test eax, eax
je 0x4148b1
mov eax, dword [ebp - 0x38]
test cl, cl
cmove eax, dword [ebp - 0x48]
jmp 0x4148c3
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa8]
mov esi, dword [0x4feb4c]
mov dword [ebp - 0xa0], eax
movups xmmword [ebp - 0xc0], xmm0
test esi, esi
jne 0x41490d
push 0x7c
call fcn.004e3258
mov esi, eax
mov dword [ebp - 0xa4], esi
push 0x7c
push 0
push esi
mov byte [ebp - 4], 4
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.0040e6b0
mov esi, eax
mov byte [ebp - 4], 2
mov dword [0x4feb4c], esi
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
mov dword [ebp - 0xbc], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call eax
mov dword [ebp - 0xb8], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xcc]
movups xmm1, xmmword [ebp - 0xc0]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xd0]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf0], edi
mov edi, dword [ebp + 8]
cvttsd2si eax, qword [ebp - 0xb0]
movups xmmword [ebp - 0xe4], xmm1
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xe8], eax
psrldq xmm1, 0xc
movups xmm0, xmmword [ebp - 0x100]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [ebp - 0xe0]
movq qword [edi + 0x20], xmm0
movd dword [edi + 0x28], xmm1
test esi, esi
je 0x414a29
mov ecx, dword [ebp - 0x14]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x414a0a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x414a0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004e3227
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x30]
call fcn.00417a10
push dword [ebp - 0x38]
call fcn.004e3288
push dword [ebp - 0x40]
call fcn.004e3288
push dword [ebp - 0x48]
call fcn.004e3288
push dword [ebp - 0x50]
call fcn.004e3288
mov eax, edi
jmp 0x41457b