Function at 0x6d58b0
Capabilities:
Enumerate system firmware tables
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71c4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
push 0
push 0
push 0x41435049
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov ebx, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x6d5ab9
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
cmp ebx, 4
jb 0x6d59cd
mov edi, ebx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x6d5994
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x6d5acf
push eax
call fcn.006dd216
add esp, 4
test eax, eax
je 0x6d5ad4
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x6d59a7
test edi, edi
je 0x6d59a5
push edi
call fcn.006dd216
add esp, 4
mov esi, eax
jmp 0x6d59a7
xor esi, esi
push edi
lea eax, [edi + esi]
mov dword [ebp - 0x28], esi
push 0
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
call fcn.006f4190
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, eax
mov dword [ebp - 0x24], esi
push ebx
push esi
push 0x41435049
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov ebx, dword [ebp - 0x24]
sub edi, ebx
sar edi, 2
test edi, edi
je 0x6d5a2b
mov ecx, dword [ebp - 0x20]
mov edi, 1
sub ecx, esi
sar ecx, 2
mov dword [ebp - 0x24], ecx
nop dword [eax]
mov edx, dword [ebx]
cmp edx, 0xffffffff
je 0x6d5a21
mov eax, edi
cmp edi, ecx
jae 0x6d5a21
nop dword [eax]
cmp dword [esi + eax*4], edx
jne 0x6d5a1c
mov dword [esi + eax*4], 0xffffffff
inc eax
cmp eax, ecx
jb 0x6d5a10
add ebx, 4
inc edi
sub dword [ebp - 0x24], 1
jne 0x6d5a00
mov edi, esi
xor ebx, ebx
cmp edi, dword [ebp - 0x20]
je 0x6d5a5a
mov esi, dword [ebp - 0x20]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x6d5a50
push 0
push 0
push eax
push 0x41435049
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
add ebx, eax
add edi, 4
cmp edi, esi
jne 0x6d5a37
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, edi
push ebx
call fcn.005debc0
mov ebx, dword [edi]
mov edi, dword [edi + 4]
sub edi, ebx
cmp esi, dword [ebp - 0x20]
je 0x6d5a92
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x6d5a8a
push edi
push ebx
push eax
push 0x41435049
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
add ebx, eax
sub edi, eax
add esi, 4
cmp esi, dword [ebp - 0x20]
jne 0x6d5a71
lea ecx, [ebp - 0x1c]
call fcn.00593320
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.006d5720
push 0x762770
lea eax, [ebp - 0x1c]
push eax
call fcn.006f37e7
call fcn.0059a070
call fcn.0060e3b4
int3