Function at 0x403b30
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, str.EFIMicrosoftBoot_bootmgfw.efi
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push 0x10
movsw word es:[edi], word [esi]
call fcn.00404a46
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x30
push eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040bcf0
xor ecx, ecx
mov edi, 1
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a46
add esp, 0x14
mov ebx, eax
push 2
push ebx
xor eax, eax
push 0x41d400
push 0x4193c8
mov dword [ebp - 0x7c], ebx
mov word [ebx], ax
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x403c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x403d3f
push ebx
inc edi
call fcn.004058e7
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a46
add esp, 8
lea ecx, [edi + edi]
push ecx
push eax
push 0x41d400
push 0x4193c8
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, dword [ebp - 0x7c]
test eax, eax
je 0x403bc0
test edi, edi
je 0x403d3f
dec edi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], edi
jmp 0x403c30
push esi
mov edi, 0x10
call fcn.004058e7
push edi
call fcn.00404a46
mov edx, dword [ebp - 0x80]
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
movzx eax, word [ebx + edx*2]
push eax
lea ecx, [ebp - 0x34]
push str.Boot_04d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x80]
movzx eax, word [ebx + edx*2]
add esp, 0x14
push edi
push esi
push 0x41d400
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x403cd1
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x403cd1
push esi
add edi, 0x10
call fcn.004058e7
push edi
call fcn.00404a46
push edi
mov esi, eax
push 0
push esi
call fcn.0040bcf0
add esp, 0x14
push edi
push esi
push 0x41d400
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x403c90
cmp ebx, 0x42
jb 0x403d29
xor edi, edi
add ebx, 0xffffffbd
mov dword [ebp - 0x8c], ebx
je 0x403d29
mov eax, 0x41
lea ecx, [ebp - 0x78]
lea edx, [edi + esi]
mov edi, edi
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x403d20
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x403cf0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403d20
movzx ecx, word [ebp - 0x88]
push ecx
call fcn.00403910
add esp, 4
mov dword [ebp - 0x84], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jb 0x403ce3
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp - 0x90]
jbe 0x403c30
push ebx
call fcn.004058e7
push esi
call fcn.004058e7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405675
mov esp, ebp
pop ebp
ret