Function at 0x1800071e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
xor ebx, ebx
mov r15, r8
test edx, edx
lea r8, [0x1800207f8]
mov rdi, rcx
setne bl
lea rdx, [rbx + 0x65]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x180007261
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rbx + 0x65]
lea rdx, str.FindResource__S__failed._Error:__d
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9d, [rsi + 0x10]
xor ecx, ecx
lea r8, str.Error_extract_driver
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x18000743e
mov rdx, rsi
mov qword [rsp + 0x4f0], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
jne 0x18000728e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SizeofResource___failed._Error:__d
jmp 0x1800073f8
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1800072b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LoadResource___failed._Error:__d
jmp 0x1800073f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x1800072d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LockResource___failed._Error:__d
jmp 0x1800073f8
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1800072fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetTempPath___failed._Error:__d
jmp 0x1800073f8
mov r9, r15
lea rcx, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x180007324
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetTempFileName___failed._Error:__d
jmp 0x1800073f8
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000736d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateFile___failed._Error:__d
jmp 0x1800073f8
lea r9, [rbp + 0x1c0]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x180007312
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1c0]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x18000735b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rbp + 0x3f8]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180007424
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.WriteFile___failed._Error:__d
mov r8d, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str.Error_extract_driver
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x180007436
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x4f0]
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret