Function at 0x403d70
Capabilities:
Get uefi variable
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.WindSLIC]
mov ecx, dword [0x4194ac]
mov edx, dword [0x4194b0]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x4194b4]
mov dword [ebp - 0x14], ecx
mov cx, word [0x4194b8]
push edi
push 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], cx
call fcn.00404a46
mov esi, eax
xor eax, eax
mov dword [esi], eax
push 0x30
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x48]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], 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 - 0x4c], ebx
mov word [ebx], ax
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x403e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x403f96
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 - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, dword [ebp - 0x4c]
test eax, eax
je 0x403e16
test edi, edi
je 0x403f96
dec edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], edi
jmp 0x403e80
push esi
mov edi, 0x10
call fcn.004058e7
push edi
call fcn.00404a46
mov edx, dword [ebp - 0x50]
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 - 0x48]
push str.Boot_04d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x50]
movzx eax, word [ebx + edx*2]
add esp, 0x14
push edi
push esi
push 0x41d400
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x403f21
jmp 0x403ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x403f21
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 - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x403ee0
cmp ebx, 0x12
jb 0x403f83
xor edi, edi
add ebx, 0xffffffed
mov dword [ebp - 0x5c], ebx
je 0x403f83
mov eax, 0x11
lea ecx, [ebp - 0x18]
lea edx, [edi + esi]
jmp 0x403f40
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x403f7d
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x403f40
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403f7d
push 0
push 0
push 0x41d400
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
movzx edx, word [ebp - 0x58]
push edx
call fcn.00403a20
add esp, 4
inc dword [ebp - 0x54]
inc edi
cmp edi, dword [ebp - 0x5c]
jb 0x403f30
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x60]
jbe 0x403e80
push ebx
call fcn.004058e7
push esi
call fcn.004058e7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405675
mov esp, ebp
pop ebp
ret