Function at 0x41d580
Capabilities:
Set uefi variable

Disassembly:
sub esp, 0x10
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x398], ebx
call fcn.00430df0
test eax, eax
je 0x41d5ac
call fcn.00406ed0
lea edi, [ebp + 0x180]
mov dword [ebp + 0x17c], ebx
call fcn.0042b2c0
lea edi, [ebp + 0x19c]
call fcn.0042b2c0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
call esi
lea ecx, [esp + 0x14]
cmp eax, ecx
jle 0x41d5e2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x41d5e6
push 0xe
call esi
lea edi, [ebp + 0x1b8]
call fcn.0042b2c0
call fcn.00430df0
test eax, eax
je 0x41d5ff
call fcn.0041a8a0
mov dword [ebp + 0x1d4], ebx
call fcn.00439c27
cdq
mov ecx, 0x14
idiv ecx
mov esi, edx
inc esi
call fcn.00439c27
cdq
idiv esi
cmp edx, esi
jle 0x41d628
mov edx, 1
jmp 0x41d62d
mov eax, esi
cdq
idiv esi
mov eax, edx
sub eax, 1
jne 0x41d63e
call fcn.004182d0
call fcn.004183a0
lea edi, [ebp + 0x1d8]
mov dword [ebp + 0x1f4], ebx
call fcn.0042b2c0
lea edi, [ebp + 0x1f8]
call fcn.0042b2c0
mov edi, dword [ebp + 0x224]
cmp dword [ebp + 0x220], edi
lea esi, [ebp + 0x214]
jbe 0x41d673
call fcn.00439b40
mov ebx, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x14], edx
cmp ebx, dword [esi + 0x10]
jbe 0x41d686
call fcn.00439b40
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push edi
push ecx
push ebx
push eax
lea ebx, [esp + 0x24]
call fcn.00404fe0
mov edi, dword [ebp + 0x23c]
cmp dword [ebp + 0x238], edi
lea esi, [ebp + 0x22c]
jbe 0x41d6b2
call fcn.00439b40
mov ebx, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x14], edx
cmp ebx, dword [esi + 0x10]
jbe 0x41d6c5
call fcn.00439b40
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push edi
push ecx
push ebx
push eax
lea ebx, [esp + 0x24]
call fcn.00404fe0
lea edi, [ebp + 0x244]
call fcn.0042b2c0
lea edi, [ebp + 0x260]
call fcn.0042b2c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 2
je 0x41d703
sub eax, 2
je 0x41d703
sub eax, 4
jne 0x41d710
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00406e10
xor edi, edi
mov dword [ebp + 0x280], edi
mov dword [ebp + 0x284], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
shr esi, 0x18
call fcn.0043af41
imul eax, eax, 0x63
add esp, 4
cmp esi, eax
jbe 0x41d749
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.00431550
lea edi, [ebp + 0x288]
call fcn.0042b2c0
call fcn.00430df0
sub eax, 1
jne 0x41d768
call fcn.00418410
call fcn.0041a8f0
lea edi, [ebp + 0x2a4]
call fcn.0042b2c0
mov ebx, dword [ebp + 0x2d0]
cmp dword [ebp + 0x2cc], ebx
lea edi, [ebp + 0x2c0]
jbe 0x41d78c
call fcn.00439b40
mov esi, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x14], edx
cmp esi, dword [edi + 0x10]
jbe 0x41d79f
call fcn.00439b40
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push ebx
push ecx
push esi
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0042c4c0
call fcn.00417970
test eax, eax
je 0x41d7c6
call fcn.004184e0
call fcn.004185b0
mov ebx, dword [ebp + 0x2e8]
cmp dword [ebp + 0x2e4], ebx
lea edi, [ebp + 0x2d8]
jbe 0x41d7df
call fcn.00439b40
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
cmp esi, dword [edi + 0x10]
jbe 0x41d7f2
call fcn.00439b40
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push ebx
push ecx
push esi
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0042c680
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, 2
je 0x41d81d
sub eax, 2
je 0x41d81d
sub eax, 4
jne 0x41d837
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call dword [sym.imp.USER32.dll_GetActiveWindow]
call dword [sym.imp.USER32.dll_GetCapture]
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp + 0x308], 0
call esi
sub eax, 2
mov ebx, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
je 0x41d85c
sub eax, 2
je 0x41d85c
sub eax, 4
je 0x41d85c
xor eax, eax
jmp 0x41d86b
push 0
push 0
push 0
push 0
call ebx
mov eax, 1
sub eax, 1
jne 0x41d87a
call fcn.0041a8a0
call fcn.00406e10
lea edi, [ebp + 0x30c]
call fcn.0042b2c0
lea edi, [ebp + 0x328]
call fcn.0042b2c0
lea edi, [ebp + 0x344]
call fcn.0042b2c0
call esi
sub eax, 2
je 0x41d8ac
sub eax, 2
je 0x41d8ac
sub eax, 4
jne 0x41d8bb
push 0
push 0
push 0
push 0
call ebx
call fcn.00418660
lea edi, [ebp + 0x360]
call fcn.0042b2c0
lea edi, [ebp + 0x37c]
call fcn.0042b2c0
push 0
call fcn.0043af41
add esp, 4
mov dword [ebp + 0x39c], 1
call fcn.00430ea0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebp + 0x3a0], 0
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00439641
add esp, 0x10
ret 4