Function at 0x476230
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 fcn.00473df0
mov eax, dword [eax]
test eax, eax
je 0x476301
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 0x476290
cmp byte [ecx], 0
je 0x476290
mov edi, dword [esp + 4]
dec bl
je 0x476290
mov edi, dword [esp + 4]
nop
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x476280
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x4762ba
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
push dword [esi + 0x2c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 0x2c], eax
test edi, edi
je 0x4762e3
mov dword [esi + 0x28], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
push ebx
call fcn.00473b50
add esp, 4
test al, al
mov ecx, dword [esp + 0xc]
jne 0x47631a
cmp dword [ebx], 0
je 0x47630b
mov eax, dword [esi + 0x2c]
mov byte [eax], 0
jmp 0x476313
mov eax, str.BIOS_section_is_not_found_in_SMBIOS_data
jmp 0x476501
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 0x476350
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x476350
mov edi, dword [esp + 4]
dec bl
je 0x476350
mov edi, dword [esp + 4]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x476340
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x47637a
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
test edi, edi
je 0x4763a3
mov dword [esi + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
push ebx
call fcn.00473b50
add esp, 4
test al, al
mov ecx, dword [esp + 0xc]
jne 0x4763d0
cmp dword [ebx], 0
je 0x4763c1
mov eax, dword [esi + 0x20]
mov byte [eax], 0
jmp 0x4763c9
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 0x476400
mov eax, dword [esp + 4]
cmp byte [eax], 0
je 0x476400
mov edi, eax
dec bl
je 0x476400
nop dword [eax]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
dec bl
jne 0x4763f0
cmp dword [esi], 0
je 0x476425
mov dword [esi + 4], 0
mov dword [esi], 0
push dword [esi + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
test edi, edi
je 0x47644d
mov dword [esi + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
mov dword [esi], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edi
push esi
call fcn.00473b50
add esp, 4
test al, al
mov edx, dword [esp + 0xc]
jne 0x47647a
cmp dword [esi], 0
je 0x47646b
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x476473
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
cmp byte [edx + 1], 0x13
jb 0x47649b
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 fcn.00472810
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push 0x20
push eax
push 0x5a
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x4764ff
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x4764ca
cmp eax, 1
jne 0x4764ff
mov edi, str.BIOS
cmp dword [esi + 0x30], 0
jne 0x4764d5
jmp 0x4764ee
mov edi, str.UEFI
cmp dword [esi + 0x30], 0
je 0x4764ee
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
push dword [esi + 0x38]
call sub.api_ms_win_crt_heap_l1_1_0.dll_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