Function at 0x140005f80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140274940]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r8, [0x14023cd80]
mov edx, LoadRegTypeLib
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140006177
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
call fcn.14000c3d4
mov rcx, rax
test rax, rax
je 0x1400061ad
mov rax, qword [rax]
call qword [rax + 0x18]
mov rdi, rax
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea r13, str.C:Program_Files__x86_Common_Filesconfig.ini
xor r12d, r12d
lea ebp, [r12 - 1]
cmp r13, 0x10000
jae 0x140006046
movzx edx, r13w
lea rcx, [rsp + 0x40]
call fcn.140002850
mov rbx, qword [rsp + 0x40]
jmp 0x14000610a
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, ebp
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [rax - 1]
test esi, esi
jle 0x1400060bd
mov r9d, 1
sub r9d, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
sub edx, esi
or edx, r9d
jge 0x14000608d
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140002b60
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [rbx - 0xc]
jg 0x1400061a2
mov dword [rbx - 0x10], esi
movsxd rax, esi
mov word [rbx + rax*2], r12w
jmp 0x14000610a
mov rsi, qword [rdi]
cmp dword [rdi + 8], r12d
je 0x14000610a
cmp dword [rdi + 0x10], r12d
jge 0x1400060e0
cmp dword [rdi + 0xc], r12d
jl 0x1400061a2
mov dword [rdi + 8], r12d
mov word [rbx], r12w
jmp 0x14000610a
mov eax, ebp
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x1400060f8
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140006177
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a6530
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002bc0
nop
mov ecx, 0x80004005
call fcn.140002bc0
int3