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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10016018]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
mov dword [esp + 0x2c], 0
push 0x41435049
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x31], 0x495043
mov byte [esp + 0x30], 0x41
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100014cb
mov edi, eax
shr edi, 2
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000e2f3
xor ecx, ecx
add esp, 4
mov esi, eax
mov dword [esp + 0xc], ecx
test edi, edi
je 0x10001426
lea esp, [esp]
push dword [esp + 0x18]
push esi
push 0x41435049
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
cmp dword [esp + 0x18], eax
je 0x10001329
lea eax, [esp + 0x24]
push eax
push str.Failed_Enumerating__s_firmware_tables.
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x1000136a
mov edx, ecx
sub edx, eax
add eax, edx
mov dword [esp + 0xc], eax
mov edi, edi
mov eax, 1
cmp edi, eax
jbe 0x10001363
lea esp, [esp]
mov ecx, dword [esi]
cmp ecx, dword [esi + eax*4]
jne 0x1000135e
test ecx, ecx
je 0x1000135e
mov byte [ebx], 1
inc eax
cmp eax, edi
jb 0x10001350
dec edx
jne 0x10001340
mov eax, dword [esp + 0xc]
xor ebx, ebx
push ebx
push ebx
push dword [esi + eax*4]
push 0x41435049
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100013f8
push eax
call fcn.1000e2f3
mov ecx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esi + ecx*4]
push dword [esp + 0x10]
mov ebx, eax
push ebx
push ecx
mov dword [esp + 0x38], 0
push 0x41435049
mov byte [esp + 0x40], 0
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
je 0x100013d8
push str.Failed_reading__s_table__s_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 0xc
jmp 0x100013f8
push str.Successfully_read__s_table__s_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 0xc
push dword [esp + 0x1c]
push dword [esp + 0x14]
push ebx
call fcn.100014f0
cmp al, 1
je 0x10001418
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x10]
inc eax
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
jae 0x10001426
mov ebx, dword [esp + 0x20]
jmp 0x10001300
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov bl, 1
jmp 0x1000142a
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x10001438
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
jne 0x100014b5
lea edx, [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0xc], 0
call section..text
test al, al
je 0x100014cb
push dword [esp + 0xc]
call fcn.1000e2f3
mov esi, eax
add esp, 4
lea edx, [esp + 0xc]
mov ecx, esi
call section..text
test al, al
jne 0x10001490
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1000e3b2
mov esp, ebp
pop ebp
ret 4
push dword [esp + 0x1c]
push dword [esp + 0x10]
push esi
call fcn.100014f0
mov ecx, 1
movzx ebx, bl
cmp al, cl
push esi
cmove ebx, ecx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1000e3b2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.1000e3b2
mov esp, ebp
pop ebp
ret 4