Function at 0x40d7f0
Capabilities:
Set uefi variable

Disassembly:
push 0xffffffffffffffff
push 0x44efdf
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.0040dba0
mov byte [esp + 0x12c], 9
call fcn.00439c27
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
inc esi
call fcn.00439c27
cdq
idiv esi
cmp edx, esi
jg 0x40d86b
mov eax, esi
cdq
idiv esi
cmp edx, ebx
je 0x40d870
call fcn.00406ed0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x13c]
push edx
lea ecx, [esp + 0x24]
call fcn.00402be0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x40]
call fcn.00402be0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
call esi
lea ecx, [esp + 0x14]
cmp eax, ecx
jle 0x40d8b3
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
jmp 0x40d8bf
push 0xe
call esi
lea edx, [esp + 0x14]
cmp eax, edx
jle 0x40d8c4
call fcn.0041ab40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 2
je 0x40d8d9
sub eax, 2
je 0x40d8d9
sub eax, 4
jne 0x40d8ed
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
call fcn.00406860
call fcn.00406e10
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x174]
lea ecx, [esp + 0x58]
call fcn.00402e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x190]
lea ecx, [esp + 0x74]
call fcn.00402e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1ac]
lea ecx, [esp + 0x90]
call fcn.00402e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0xac]
call fcn.00402e20
call fcn.004176e0
test eax, eax
je 0x40d952
call fcn.00431550
call fcn.00406ed0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1e4]
lea ecx, [esp + 0xc8]
call fcn.00402e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x200]
lea ecx, [esp + 0xe4]
call fcn.00402e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x100]
call fcn.00402e20
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], ecx
call fcn.0040f850
lea esi, [esp + 0x18]
call fcn.0040dc40
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x40d9e1
mov eax, dword [esp + 0x138]
push eax
call fcn.00439c49
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 0x40da14
mov ecx, dword [esp + 0x154]
push ecx
call fcn.00439c49
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 0x40da47
mov edx, dword [esp + 0x170]
push edx
call fcn.00439c49
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov word [esp + 0x170], ax
cmp dword [esp + 0x1a0], esi
jb 0x40da7d
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.00439c49
add esp, 4
xor edx, edx
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], dx
cmp dword [esp + 0x1bc], esi
jb 0x40daae
mov eax, dword [esp + 0x1a8]
push eax
call fcn.00439c49
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1b8], ebx
mov word [esp + 0x1a8], cx
cmp dword [esp + 0x1d8], esi
jb 0x40dadf
mov edx, dword [esp + 0x1c4]
push edx
call fcn.00439c49
add esp, 4
xor eax, eax
mov dword [esp + 0x1d8], edi
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], ax
cmp dword [esp + 0x1f4], esi
jb 0x40db10
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.00439c49
add esp, 4
xor edx, edx
mov dword [esp + 0x1f4], edi
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], dx
cmp dword [esp + 0x210], esi
jb 0x40db41
mov eax, dword [esp + 0x1fc]
push eax
call fcn.00439c49
add esp, 4
xor ecx, ecx
mov dword [esp + 0x210], edi
mov dword [esp + 0x20c], ebx
mov word [esp + 0x1fc], cx
cmp dword [esp + 0x22c], esi
jb 0x40db72
mov edx, dword [esp + 0x218]
push edx
call fcn.00439c49
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.00439641
add esp, 0x120
ret 0x104