Function at 0x476380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
call dbg.ffGetSmbiosHeaderTable
mov eax, dword [eax]
test eax, eax
je 0x476451
mov esi, dword [ebp + 8]
movzx ecx, byte [eax + 1]
add ecx, eax
lea edx, [esi + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
movzx ebx, byte [eax + 5]
xor edi, edi
test bl, bl
mov dword [esp + 4], ecx
je 0x4763e0
cmp byte [ecx], 0
je 0x4763e0
mov edi, dword [esp + 4]
dec bl
je 0x4763e0
mov edi, dword [esp + 4]
nop
push edi
call sym._strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x4763d0
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x47640a
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
push dword [esi + 0x2c]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 0x2c], eax
test edi, edi
je 0x476433
mov dword [esi + 0x28], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], 0
push edi
call sym._strlen
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
push ebx
call dbg.ffIsSmbiosValueSet
add esp, 4
test al, al
mov ecx, dword [esp + 0xc]
jne 0x47646a
cmp dword [ebx], 0
je 0x47645b
mov eax, dword [esi + 0x2c]
mov byte [eax], 0
jmp 0x476463
mov eax, str.BIOS_section_is_not_found_in_SMBIOS_data
jmp 0x476651
mov eax, dword [0x5052b0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], 0
lea eax, [esi + 0x18]
mov dword [esp + 8], eax
movzx ebx, byte [ecx + 4]
xor edi, edi
test bl, bl
je 0x4764a0
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x4764a0
mov edi, dword [esp + 4]
dec bl
je 0x4764a0
mov edi, dword [esp + 4]
push edi
call sym._strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x476490
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x4764ca
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
push dword [esi + 0x20]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
test edi, edi
je 0x4764f3
mov dword [esi + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 0
push edi
call sym._strlen
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
push ebx
call dbg.ffIsSmbiosValueSet
add esp, 4
test al, al
mov ecx, dword [esp + 0xc]
jne 0x476520
cmp dword [ebx], 0
je 0x476511
mov eax, dword [esi + 0x20]
mov byte [eax], 0
jmp 0x476519
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 0
movzx ebx, byte [ecx + 8]
xor edi, edi
test bl, bl
je 0x476550
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x476550
mov edi, eax
dec bl
je 0x476550
nop dword [eax]
push edi
call sym._strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x476540
cmp dword [esi], 0
je 0x476575
mov dword [esi + 4], 0
mov dword [esi], 0
push dword [esi + 8]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
test edi, edi
je 0x47659d
mov dword [esi + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
mov dword [esi], 0
push edi
call sym._strlen
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edi
push esi
call dbg.ffIsSmbiosValueSet
add esp, 4
test al, al
mov edx, dword [esp + 0xc]
jne 0x4765ca
cmp dword [esi], 0
je 0x4765bb
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x4765c3
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
cmp byte [edx + 1], 0x13
jb 0x4765eb
lea eax, [esi + 0xc]
movzx ecx, byte [edx + 0x12]
movzx edx, byte [edx + 0x13]
push edx
push ecx
push str._u._u
push eax
call dbg.ffStrbufSetF
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push 0x20
push eax
push 0x5a
call sym._NtQuerySystemInformation_16
test eax, eax
js 0x47664f
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x47661a
cmp eax, 1
jne 0x47664f
mov edi, str.BIOS
cmp dword [esi + 0x30], 0
jne 0x476625
jmp 0x47663e
mov edi, str.UEFI
cmp dword [esi + 0x30], 0
je 0x47663e
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
push dword [esi + 0x38]
call sym._free
add esp, 4
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 4
mov dword [esi + 0x38], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret