Function at 0x403391
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push 0
push 0x80000004
push 0
push str.RSMBV
push 2
mov ebx, 0x144
call fcn.004106a0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x9f8
call fcn.004106e0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x80000004
push 0
push 0x419365
push 2
mov ebx, 0x144
call fcn.004106a0
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0xc8
call fcn.004106f0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x9f8
call fcn.004106e0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x80000004
push 0
push 0x419367
push 2
mov ebx, 0x144
call fcn.004106a0
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0xc8
call fcn.004106f0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x9f8
call fcn.004106e0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x80000004
push 0
push 0x419369
push 2
mov ebx, 0x144
call fcn.004106a0
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0xc8
call fcn.004106f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403581
push 0x18f
push 0x401a62d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.00410710
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4035b7
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403350
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
push dword [ebp - 0x18]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4035fe
push 0x234
push 0x401a62d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jg 0x403796
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x419353]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040109c
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
mov ecx, 9
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x403793
mov ebx, dword [ebp - 0xc]
call fcn.00401342
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x403667
push 0x2ec
push 0x401a62d
push 4
call fcn.0040f725
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x403684
push 0x2ec
push 0x401a62d
push 1
call fcn.0040f725
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0
push 0
push 0
push 0x80000004
push 0
push 0x41936b
push 2
mov ebx, 0x144
call fcn.004106a0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
mov al, byte [ebx]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
jne 0x40378a
push 0xa0000301
push 0
lea eax, [ebp - 0x14]
push eax
push 0x80000301
push 0
push 0xa
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4036f3
mov eax, 0x419247
push eax
push 3
mov ebx, 0x19c
call fcn.00410840
add esp, 0x28
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
push 0x80000004
push 0
push 0x41936d
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x80000004
je 0x40373d
push 0x34d
push 0x401a62d
push 5
call fcn.0040f725
add esp, 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x403750
mov eax, 0x419218
push eax
push 2
mov ebx, 0xb0
call fcn.004109e0
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403776
push ebx
call fcn.0040f71f
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x40378a
mov eax, 1
jmp 0x4037a0
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x403633
add esp, 0xc
mov eax, 0
jmp 0x4037a0
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4037b1
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret