Function at 0x40d4f0
Capabilities:
Set uefi variable

Disassembly:
push 0xffffffffffffffff
push 0x44e5df
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x12c], ebx
lea eax, [esp + 0x18]
call fcn.0040d870
mov byte [esp + 0x12c], 9
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
call esi
lea ecx, [esp + 0x14]
cmp eax, ecx
jle 0x40d564
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
jmp 0x40d570
push 0xe
call esi
lea edx, [esp + 0x14]
cmp eax, edx
jle 0x40d57a
call fcn.00419f30
call fcn.00418100
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x24]
call fcn.00402d80
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x40]
call fcn.00402d80
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x174]
lea ecx, [esp + 0x58]
call fcn.00402f90
push ebx
call fcn.0043a6c4
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x190]
lea ecx, [esp + 0x74]
call fcn.00402f90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1ac]
lea ecx, [esp + 0x90]
call fcn.00402f90
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d5f2
sub eax, edx
je 0x40d607
call fcn.00418100
call fcn.00418100
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0xac]
call fcn.00402f90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1e4]
lea ecx, [esp + 0xc8]
call fcn.00402f90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x200]
lea ecx, [esp + 0xe4]
call fcn.00402f90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x100]
call fcn.00402f90
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x234]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], eax
call fcn.0040f410
lea esi, [esp + 0x18]
call fcn.0040d910
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x40d6ac
mov edx, dword [esp + 0x138]
push edx
call fcn.004393c9
add esp, 4
mov edi, 0xf
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
cmp dword [esp + 0x168], esi
jb 0x40d6df
mov eax, dword [esp + 0x154]
push eax
call fcn.004393c9
add esp, 4
mov esi, 8
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], bl
cmp dword [esp + 0x184], esi
jb 0x40d712
mov ecx, dword [esp + 0x170]
push ecx
call fcn.004393c9
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov word [esp + 0x170], dx
cmp dword [esp + 0x1a0], esi
jb 0x40d748
mov eax, dword [esp + 0x18c]
push eax
call fcn.004393c9
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], cx
cmp dword [esp + 0x1bc], esi
jb 0x40d779
mov edx, dword [esp + 0x1a8]
push edx
call fcn.004393c9
add esp, 4
xor eax, eax
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1b8], ebx
mov word [esp + 0x1a8], ax
cmp dword [esp + 0x1d8], esi
jb 0x40d7aa
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.004393c9
add esp, 4
xor edx, edx
mov dword [esp + 0x1d8], edi
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], dx
cmp dword [esp + 0x1f4], esi
jb 0x40d7db
mov eax, dword [esp + 0x1e0]
push eax
call fcn.004393c9
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1f4], edi
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], cx
cmp dword [esp + 0x210], esi
jb 0x40d80c
mov edx, dword [esp + 0x1fc]
push edx
call fcn.004393c9
add esp, 4
xor eax, eax
mov dword [esp + 0x210], edi
mov dword [esp + 0x20c], ebx
mov word [esp + 0x1fc], ax
cmp dword [esp + 0x22c], esi
jb 0x40d83d
mov ecx, dword [esp + 0x218]
push ecx
call fcn.004393c9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00438dc1
add esp, 0x120
ret 0x104