Function at 0x4102b3
Capabilities:
Read file on windows
Set uefi variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4405cd
mov eax, dword fs:[0]
push eax
mov eax, 0x1548
call fcn.00438db0
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2b8]
xor ebx, ebx
mov dword [ebp - 0x1424], eax
cmp ecx, ebx
je 0x41088d
cmp dword [eax + 0x1b0], ebx
je 0x41088d
add eax, 0x2a4
push eax
lea eax, [ebp - 0x144c]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x141c], esp
push 2
push 0x448b70
call fcn.004081ed
lea edi, [ebp - 0x14f8]
call fcn.00427366
mov dword [ebp - 4], 2
call fcn.00427546
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x410354
mov eax, dword [eax + 4]
jmp 0x410357
add eax, 4
mov edi, dword [ebp - 0x1424]
push eax
lea eax, [edi + 0x19c]
push eax
lea eax, [ebp - 0x1484]
push eax
call fcn.00419f21
add esp, 0xc
push eax
lea eax, [ebp - 0x1468]
push eax
mov byte [ebp - 4], 4
call fcn.00419fdb
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x288]
push eax
mov byte [ebp - 4], 5
call fcn.004034e3
push ebx
push 1
lea ecx, [ebp - 0x1468]
call fcn.004035bd
push ebx
push 1
lea ecx, [ebp - 0x1484]
call fcn.004035bd
push ebx
push 1
lea ecx, [ebp - 0x144c]
call fcn.004035bd
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14f8]
call fcn.00404654
lea eax, [ebp - 0x1415]
mov byte [ebp - 0x1415], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4103e3
sub eax, esi
je 0x4103f3
call fcn.0040a2fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
shr esi, 0x18
call fcn.0042a8e7
imul eax, eax, 0x63
pop ecx
cmp esi, eax
jbe 0x410417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call fcn.0040a39a
lea eax, [ebp - 0x1415]
mov byte [ebp - 0x1415], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410426
sub eax, edx
push 0
pop eax
setne al
dec eax
jne 0x410442
call fcn.0040c095
call fcn.00401bb5
lea eax, [edi + 0x288]
cmp dword [eax + 0x18], 0x10
jb 0x410453
mov eax, dword [eax + 4]
jmp 0x410456
add eax, 4
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4105bf
push ebx
call fcn.0042a8e7
lea eax, [ebp - 0x1415]
pop ecx
mov byte [ebp - 0x1415], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41048d
sub eax, edx
je 0x41049d
call fcn.0040a420
push ebx
call fcn.0042a8e7
xor eax, eax
pop ecx
mov dword [ebp - 0x1430], ebx
lea edi, [ebp - 0x142c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1430]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x141c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
shr edi, 0x18
call fcn.0042a8e7
imul eax, eax, 0x63
pop ecx
cmp edi, eax
jbe 0x4104ec
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x141c], ebx
je 0x4105b9
mov ecx, dword [ebp - 0x142c]
mov eax, dword [ebp - 0x1430]
push ebx
push 0x989680
push ecx
push eax
call fcn.00433e80
mov edi, dword [ebp - 0x1424]
sub eax, 0xb6109100
push 0xfff
mov dword [edi + 0x280], eax
lea eax, [ebp - 0x1413]
sbb edx, 2
push ebx
push eax
mov dword [edi + 0x284], edx
mov byte [ebp - 0x1414], bl
call fcn.00431920
add esp, 0xc
call fcn.004295cd
call fcn.004295cd
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 0x1420]
push eax
push 0xa
lea eax, [ebp - 0x1414]
push eax
push esi
mov dword [ebp - 0x1420], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x410582
cmp dword [ebp - 0x1420], ebx
je 0x4105bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1414]
push eax
lea ecx, [edi + 0x1f8]
call fcn.00403575
push ebx
lea eax, [ebp - 0x1414]
push ebx
push eax
call fcn.0042b418
add esp, 0xc
mov dword [edi + 0x1f4], eax
xor eax, eax
jmp 0x410907
mov edi, dword [ebp - 0x1424]
cmp esi, ebx
je 0x4105dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040965a
dec eax
jne 0x4105dc
call fcn.0040a467
call fcn.0040a4fb
call fcn.004295cd
cdq
mov esi, 0xff
mov ecx, esi
idiv ecx
mov dword [ebp - 0x1420], edx
shl dword [ebp - 0x1420], 8
call fcn.004295cd
cdq
mov ecx, esi
idiv ecx
add edx, dword [ebp - 0x1420]
shl edx, 8
mov dword [ebp - 0x141c], edx
call fcn.004295cd
cdq
mov ecx, esi
idiv ecx
add edx, dword [ebp - 0x141c]
shl edx, 8
mov dword [ebp - 0x141c], edx
call fcn.004295cd
cdq
idiv esi
mov eax, dword [ebp - 0x141c]
push 0x3ff
push ebx
mov byte [ebp - 0x414], bl
lea esi, [edx + eax]
lea eax, [ebp - 0x413]
push eax
mov dword [edi + 0x1f4], esi
call fcn.00431920
add esp, 0xc
push 0xa
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0042b0d2
add esp, 0x10
lea eax, [ebp - 0x414]
lea esi, [edi + 0x1f8]
push eax
mov ecx, esi
call fcn.00403575
lea eax, [edi + 0x288]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x141c], eax
jb 0x41069e
mov eax, dword [eax + 4]
jmp 0x4106a1
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1420], eax
cmp eax, 0xffffffff
jne 0x410767
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x141c]
push eax
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
lea eax, [ebp - 0x144c]
push eax
sub esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov esi, esp
mov dword [ebp - 0x141c], esp
push 0x26
push 0x448c24
call fcn.004081ed
lea edi, [ebp - 0x14f8]
call fcn.00427366
push eax
mov dword [ebp - 4], 0xa
call fcn.00427738
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x410722
mov eax, dword [eax + 4]
jmp 0x410725
add eax, 4
mov ebx, dword [ebp - 0x1424]
push eax
push 1
call fcn.0040eded
add esp, 0x28
push 0
push 1
lea ecx, [ebp - 0x144c]
call fcn.004035bd
lea esi, [ebp - 0x14f8]
call fcn.00404654
call fcn.004012cd
test eax, eax
je 0x410902
call fcn.0040a554
jmp 0x410902
mov dword [ebp - 0x1428], ebx
call fcn.0040965a
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], 0x10
mov edi, dword [edi + 0x20c]
jb 0x410787
mov esi, dword [esi + 4]
jmp 0x41078a
add esi, 4
push ebx
lea eax, [ebp - 0x1428]
push eax
push edi
push esi
push dword [ebp - 0x1420]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call fcn.004295cd
cdq
push 0x14
pop ecx
idiv ecx
mov esi, edx
inc esi
call fcn.004295cd
cdq
idiv esi
cmp edx, esi
jle 0x4107c1
xor edx, edx
inc edx
jmp 0x4107c6
mov eax, esi
cdq
idiv esi
mov eax, edx
dec eax
jne 0x4107d5
call fcn.0040a59b
call fcn.0040c39c
cmp edi, ebx
je 0x4107e5
cmp dword [ebp - 0x1428], ebx
jne 0x410870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x141c]
push eax
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
lea eax, [ebp - 0x14a0]
push eax
sub esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov esi, esp
mov dword [ebp - 0x141c], esp
push 0x24
push 0x448c4c
call fcn.004081ed
lea edi, [ebp - 0x1550]
call fcn.00427366
mov dword [ebp - 4], 0xe
call fcn.00427666
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 0x10
jb 0x410840
mov eax, dword [eax + 4]
jmp 0x410843
add eax, 4
mov ebx, dword [ebp - 0x1424]
push eax
push 1
call fcn.0040eded
add esp, 0x28
push 0
push 1
lea ecx, [ebp - 0x14a0]
call fcn.004035bd
lea esi, [ebp - 0x1550]
call fcn.00404654
xor ebx, ebx
cmp dword [ebp - 0x1420], ebx
je 0x4105b2
push dword [ebp - 0x1420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4105b2
push dword [eax + 0x1b0]
lea eax, [ebp - 0x144c]
push ecx
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x141c], esp
push 0x21
push 0x448c00
call fcn.004081ed
lea edi, [ebp - 0x14f8]
call fcn.00427366
mov dword [ebp - 4], ebx
call fcn.00427546
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x4108d4
mov eax, dword [eax + 4]
jmp 0x4108d7
add eax, 4
mov ebx, dword [ebp - 0x1424]
push eax
push 1
call fcn.0040eded
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x144c]
call fcn.004035bd
lea esi, [ebp - 0x14f8]
call fcn.00404654
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428d2e
leave
ret 4