Function at 0x418b50
Capabilities:
Copy file
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x54], 0x15015
mov dword [ebp - 0x58], 0x74f7
mov dword [ebp - 0x38], 0x784a
mov dword [ebp - 0x3c], 0xc92b
mov dword [ebp - 0x74], 0x111c2
mov dword [ebp - 8], 0xdb4e
mov dword [ebp - 0x78], 0x13896
mov dword [ebp - 0x30], 0xd94
mov dword [ebp - 0x64], 0x147b3
mov dword [ebp - 0x70], 0x1027d
mov dword [ebp - 0x60], 0x12e5b
mov dword [ebp - 0x14], 0x6249
mov dword [ebp - 4], 0x8e50
mov dword [ebp - 0x5c], 0x16054
mov dword [ebp - 0x24], 0x12ac7
mov dword [ebp - 0x10], 0xef44
mov dword [ebp - 0x34], 0x18035
mov dword [ebp - 0x7c], 0xae6a
mov dword [ebp - 0x4c], 0x1180d
mov dword [ebp - 0x50], 0x9f53
mov dword [ebp - 0x6c], 0x15ed
mov dword [ebp - 0x68], 0xe778
mov dword [ebp - 0x40], 0x3b41
mov eax, dword [ebp + 0x2c]
sub eax, 1
mov dword [ebp + 0x2c], eax
mov dword [ebp - 0xc], 0
jmp 0x418c12
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x50]
sub edx, 0x9f52
cmp dword [ebp - 0xc], edx
jge 0x418df3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
jge 0x418c35
mov dword [ebp - 0x1c], 1
jmp 0x418c3c
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x30]
jge 0x418c4d
mov dword [ebp - 0x20], 1
jmp 0x418c54
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x20]
or eax, ecx
je 0x418dee
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x58]
jne 0x418dee
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
jne 0x418dee
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x34]
jne 0x418dee
push 0x8ef4
push 0x138b6
push 0xe22f
call dword [sym.imp.KERNEL32.dll_LocalLock]
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x20]
jge 0x418cc1
mov dword [ebp - 0x28], 1
jmp 0x418cc8
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0x18]
jge 0x418cd9
mov dword [ebp - 0x2c], 1
jmp 0x418ce0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp + 0x2c]
xor ecx, dword [ebp + 0x28]
and ecx, dword [ebp - 0x28]
and ecx, dword [ebp - 0x2c]
je 0x418dee
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 8]
jne 0x418dee
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x3c]
jne 0x418dee
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x10]
jne 0x418dee
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x40]
jne 0x418dee
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x4c]
jne 0x418dee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jge 0x418dc7
mov edx, dword [ebp - 0x34]
imul edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x3c]
jge 0x418d4f
mov dword [ebp - 0x44], 1
jmp 0x418d56
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp + 0x28]
jge 0x418d67
mov dword [ebp - 0x48], 1
jmp 0x418d6e
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
or ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 8]
xor edx, dword [ebp - 8]
or ecx, edx
je 0x418dc7
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x4c]
jne 0x418dc7
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x68]
jne 0x418dc7
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp + 0x10]
jne 0x418dc7
mov eax, dword [ebp + 0x2c]
cmp eax, dword [ebp + 0x20]
jne 0x418dc7
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp + 0xc]
jne 0x418dc7
mov edx, dword [ebp + 0x14]
add edx, 1
mov dword [ebp + 0x14], edx
push 0x7cf1
push 0x4d7c
push 0x5155
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
add esp, 0xc
push 0x13552
push 0x1376c
push 0x1bc
push 0x15848
push 0xdce5
push 0x166da
call dword [sym.imp.KERNEL32.dll_CopyFileTransactedW]
add esp, 0x18
jmp 0x418c09
mov dword [ebp - 0x18], 0
jmp 0x418e05
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x70]
sub ecx, 0x1027c
cmp dword [ebp - 0x18], ecx
jge 0x418e1e
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jmp 0x418dfc
mov esp, ebp
pop ebp
ret