Function at 0x498de0
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
push esi
push edi
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 4], ecx
call ebx
mov edi, eax
push edi
call fcn.004a7933
push edi
mov esi, eax
push 0
push esi
call fcn.004af8a0
add esp, 0x10
push edi
push esi
push 0
push 0x52534d42
call ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 1
sub esp, 8
mov ecx, ebx
call fcn.004992d0
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x498ff9
mov esi, dword [ebp + 8]
push 0x34
push 0
push esi
call fcn.004af8a0
add esp, 0xc
cmp byte [ebx], 2
jb 0x498ec1
cmp byte [ebx + 1], 0
jbe 0x498e88
mov al, byte [edi]
mov byte [esi], al
mov al, byte [edi + 1]
mov byte [esi + 1], al
mov ax, word [edi + 2]
mov word [esi + 2], ax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov al, byte [edi + 7]
add edi, 8
mov byte [esi + 7], al
cmp byte [ebx], 2
jb 0x498ec1
cmp byte [ebx + 1], 1
jbe 0x498ea8
xor ecx, ecx
mov al, byte [edi]
inc edi
mov byte [esi + ecx + 8], al
inc ecx
cmp ecx, 0x10
jl 0x498e95
mov al, byte [edi]
inc edi
mov byte [esi + 0x18], al
cmp byte [ebx], 2
jb 0x498ec1
cmp byte [ebx + 1], 4
jbe 0x498ec1
mov al, byte [edi]
mov byte [esi + 0x19], al
mov al, byte [edi + 1]
add edi, 2
mov byte [esi + 0x1a], al
movzx eax, byte [esi + 1]
mov ecx, dword [ebp - 4]
add ecx, eax
mov ah, byte [esi + 4]
mov dword [ebp - 4], ecx
test ah, ah
je 0x498efe
mov edx, ecx
xor bl, bl
mov ecx, edx
mov dword [ebp - 8], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498ee0
sub ecx, esi
inc edx
inc bl
add edx, ecx
cmp bl, ah
jb 0x498ed8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
mov ah, byte [esi + 5]
test ah, ah
je 0x498f33
mov edx, ecx
xor bl, bl
lea esp, [esp]
mov ecx, edx
mov dword [ebp - 8], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498f18
sub ecx, esi
inc edx
inc bl
add edx, ecx
cmp bl, ah
jb 0x498f10
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov ah, byte [esi + 6]
test ah, ah
je 0x498f63
mov edx, dword [ebp - 4]
xor bl, bl
nop
mov ecx, edx
mov dword [ebp - 8], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498f48
sub ecx, esi
inc edx
inc bl
add edx, ecx
cmp bl, ah
jb 0x498f40
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
mov ah, byte [esi + 7]
test ah, ah
je 0x498f93
mov edx, dword [ebp - 4]
xor bl, bl
nop
mov ecx, edx
mov dword [ebp - 8], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498f78
sub ecx, esi
inc edx
inc bl
add edx, ecx
cmp bl, ah
jb 0x498f70
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x28], eax
mov ah, byte [esi + 0x19]
test ah, ah
je 0x498fc3
mov edx, dword [ebp - 4]
xor bl, bl
nop
mov ecx, edx
mov dword [ebp - 8], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498fa8
sub ecx, esi
inc edx
inc bl
add edx, ecx
cmp bl, ah
jb 0x498fa0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
mov bl, byte [esi + 0x1a]
test bl, bl
je 0x498ff9
mov eax, dword [ebp - 4]
xor dl, dl
nop
mov ecx, eax
mov dword [ebp - 8], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498fd8
mov eax, dword [ebp - 4]
sub ecx, esi
inc eax
inc dl
add eax, ecx
mov dword [ebp - 4], eax
cmp dl, bl
jb 0x498fd0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x30], eax
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4