Function at 0x41dee0
Capabilities:
Get uefi variable

Disassembly:
sub esp, 0x450
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x454]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [eax], ebp
call fcn.0041de10
test eax, eax
jne 0x41df27
pop ebp
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00524d83
add esp, 0x450
ret
cmp dword [0x5c5dd8], ebp
je 0x41df34
call fcn.0041dea0
push esi
push 0x400
lea eax, [esp + 0x58]
push eax
push 0x554500
push 0x5544f4
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
mov esi, eax
cmp esi, ebp
jne 0x41df74
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00524d83
add esp, 0x450
ret
lea ecx, [esi + 0x10]
push ecx
push 1
call fcn.00525178
add esp, 8
mov dword [0x5c5dd8], eax
cmp eax, ebp
je 0x41df5b
push ebx
mov edx, esi
push edi
shr edx, 1
mov dword [eax], edx
mov ecx, dword [0x5c5dd8]
push esi
lea eax, [esp + 0x60]
push eax
add ecx, 0xc
push ecx
call fcn.005257e0
mov eax, dword [0x5c5dd8]
lea edx, [eax + 0xc]
mov dword [eax + 4], edx
mov eax, dword [0x5c5dd8]
add esp, 0xc
mov dword [esp + 0x14], ebp
cmp dword [eax], ebp
jbe 0x41e0ee
mov eax, dword [eax + 4]
movzx ecx, word [eax + ebp*2]
push ecx
push str.Boot_04X
lea edx, [esp + 0x24]
push 0x20
push edx
call fcn.00526008
add esp, 0x10
push 0x400
lea eax, [esp + 0x60]
push eax
push str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x41e112
lea edx, [edi + 0x40]
push edx
push 1
call fcn.00525178
mov esi, eax
add esp, 8
test esi, esi
je 0x41e11f
lea eax, [esp + 0x1c]
push eax
push 0xc
push esi
call fcn.005267e8
push edi
lea ecx, [esp + 0x6c]
push ecx
lea ebx, [esi + 0x3a]
push ebx
call fcn.005257e0
mov word [esi + 0x38], di
mov edx, dword [0x5c5dd8]
mov eax, dword [edx + 4]
mov cx, word [eax + ebp*2]
mov edx, dword [ebx]
mov word [esi + 0x18], cx
mov dword [esi + 0x1c], edx
movzx edx, word [esi + 0x3e]
lea ecx, [esi + 0x40]
mov eax, ecx
add esp, 0x18
mov word [esi + 0x20], dx
mov dword [esi + 0x24], ecx
lea ebp, [eax + 2]
jmp 0x41e070
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x41e070
sub eax, ebp
sar eax, 1
lea eax, [ecx + eax*2 + 2]
movzx ecx, dx
movzx edx, di
mov dword [esi + 0x28], eax
add eax, ecx
lea ecx, [edx + esi + 0x3a]
mov dword [esi + 0x2c], eax
cmp eax, ecx
jb 0x41e0a8
xor edx, edx
mov dword [esi + 0x2c], 0
mov word [esi + 0x30], dx
jmp 0x41e0ba
mov ax, si
sub ax, word [esi + 0x2c]
add ax, di
add ax, 0x3a
mov word [esi + 0x30], ax
mov eax, dword [0x5c5dd8]
cmp dword [eax + 8], 0
jne 0x41e0ca
mov dword [eax + 8], esi
jmp 0x41e0d1
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x34], esi
mov eax, dword [esp + 0x14]
inc eax
movzx ebp, ax
mov dword [esp + 0x14], eax
mov eax, dword [0x5c5dd8]
mov dword [esp + 0x10], esi
cmp ebp, dword [eax]
jb 0x41dfc7
mov edx, dword [esp + 0x18]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [esp + 0x45c]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.00524d83
add esp, 0x450
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x5c5dd8]
jmp 0x41e0ee
xor eax, eax
jmp 0x41e0f9