Function at 0x1400ad04c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3fd0]
mov eax, 0x40d0
call fcn.140100e60
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4120], rbx
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0x3fc0], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
call fcn.14006eb40
nop
xor r13d, r13d
mov byte [rdi + 0x3038], r13b
mov r15d, 0x800
mov r9d, r15d
lea r8, [rbp + 0xfc0]
lea rdx, [rbp + 0x1fc0]
lea rcx, [0x1401c8200]
call fcn.1400b2d6c
lea rcx, [rbp + 0x1fc0]
call fcn.140070398
test al, al
jne 0x1400ad0e5
mov word [rbp + 0x1fc0], r13w
lea rcx, [rbp + 0xfc0]
call fcn.140070398
test al, al
jne 0x1400ad0fd
mov word [rbp + 0xfc0], r13w
mov word [rbp + 0x2fc0], r13w
lea rdx, [r14 + 0x852a]
cmp word [rdx], r13w
je 0x1400ad121
mov r8, r15
lea rcx, [rbp + 0x1fc0]
call fcn.140096d80
lea rdx, [r14 + 0x952a]
cmp word [rdx], r13w
je 0x1400ad13d
mov r8, r15
lea rcx, [rbp + 0xfc0]
call fcn.140096d80
lea rdx, [r14 + 0xa52a]
cmp word [rdx], r13w
je 0x1400ad159
mov r8, r15
lea rcx, [rbp + 0x2fc0]
call fcn.140096d80
cmp word [rbp + 0xfc0], 0x2a
jne 0x1400ad175
cmp word [rbp + 0xfc2], r13w
jne 0x1400ad175
mov word [rbp + 0xfc0], r13w
lea rbx, [r14 + 0x1018]
mov rcx, rbx
call fcn.140081020
mov rcx, rax
mov r8d, 6
lea rdx, str.WinCon
call fcn.140099f78
test eax, eax
jne 0x1400ad1b5
movzx eax, r13w
mov word [rbp + 0x2fc0], ax
movzx ecx, r13w
mov word [rbp + 0xfc0], cx
jmp 0x1400ad1c3
movzx ecx, word [rbp + 0xfc0]
movzx eax, word [rbp + 0x2fc0]
lea rsi, [rdi + 0x1030]
mov word [rsi], r13w
cmp word [rbx], r13w
je 0x1400ad5c6
cmp word [rbp + 0x1fc0], r13w
jne 0x1400ad1f9
test cx, cx
jne 0x1400ad1f9
test ax, ax
jne 0x1400ad1f9
cmp byte [r14 + 0xb52a], r13b
je 0x1400ad5c6
mov rcx, rbx
call fcn.140070398
test al, al
je 0x1400ad5c6
lea rcx, [rdi + 0x2030]
mov r8, r15
mov rdx, rbx
call fcn.140096d80
mov qword [rdi + 0x3030], rbx
mov r8, r15
mov rdx, rsi
lea rcx, str.Rar_SF
call fcn.1400cfcf4
mov r15, rax
test rax, rax
je 0x1400ad5a1
mov rdx, rbx
mov rcx, rdi
call fcn.1400ae654
test al, al
je 0x1400ad277
mov ecx, 0x5f5
call fcn.140090bf0
mov rcx, rax
call fcn.1400d5c14
mov edx, 1
lea rcx, [0x1401d4778]
call fcn.140069ed8
jmp 0x1400ad5a1
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call fcn.1400add90
test al, al
je 0x1400ad5c6
mov rcx, r15
call fcn.1401278d8
mov edx, 0x10000
lea rcx, [rsp + 0x30]
call fcn.140004c60
nop
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400aebdc
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov r15, rax
test rax, rax
jne 0x1400ad2e1
lea rcx, [rsp + 0x30]
call fcn.14000a648
jmp 0x1400ad5c6
mov byte [rsp + 0x20], r13b
mov r12b, r13b
xor edx, edx
lea r8d, [rdx + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r13, rax
xor edx, edx
test rax, rax
je 0x1400ad463
movzx eax, word [rbp + 0x1fc0]
test ax, ax
je 0x1400ad36b
mov r9, r15
lea r8, [0x1400adfc0]
mov edx, 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov r9, r15
lea r8, [0x1400adfc0]
mov edx, 0xe
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov r9d, reloc.SHELL32.dll_SHRestricted
lea r8, [rbp + 0x1fc0]
mov rdx, r15
mov rcx, rdi
call fcn.1400ad84c
mov cl, al
mov byte [rsp + 0x20], al
movzx eax, word [rbp + 0x1fc0]
xor edx, edx
jmp 0x1400ad36d
mov cl, dl
cmp word [rbp + 0xfc0], dx
jne 0x1400ad383
cmp word [rbp + 0x2fc0], dx
je 0x1400ad45a
test ax, ax
je 0x1400ad390
test cl, cl
je 0x1400ad45a
lea rdx, [0x140157578]
lea rcx, [rbp + 0xfc0]
call fcn.14007f694
test al, al
jne 0x1400ad3be
lea rdx, [0x140157578]
lea rcx, [rbp + 0x2fc0]
call fcn.14007f694
test al, al
je 0x1400ad3d6
mov r9, r15
lea r8, [0x1400adfc0]
mov edx, 2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov r9, r15
lea r8, [0x1400adfc0]
lea rdx, [0x140157580]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
xor eax, eax
cmp word [rbp + 0xfc0], ax
je 0x1400ad436
lea rdx, [0x140157578]
lea rcx, [rbp + 0xfc0]
call fcn.14007f694
mov r9d, 0x65
lea r8, [rbp + 0xfc0]
mov rdx, r15
mov rcx, rdi
test al, al
je 0x1400ad42c
call fcn.1400ad6b8
jmp 0x1400ad431
call fcn.1400adaac
mov r12b, al
xor eax, eax
cmp word [rbp + 0x2fc0], ax
je 0x1400ad45a
mov r9d, 0x66
lea r8, [rbp + 0x2fc0]
mov rdx, r15
mov rcx, rdi
call fcn.1400adaac
or r12b, al
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
xor r13d, r13d
test eax, eax
je 0x1400ad2d2
cmp word [rbp + 0xfc0], r13w
je 0x1400ad48c
test r12b, r12b
je 0x1400ad2d2
cmp byte [rsp + 0x20], r13b
jne 0x1400ad4a5
test r12b, r12b
jne 0x1400ad4a5
cmp byte [r14 + 0xb52a], r13b
je 0x1400ad530
cmp byte [r14 + 0xb52a], r13b
je 0x1400ad4b9
mov rdx, rsi
mov rcx, rdi
call fcn.1400ade3c
mov qword [rbp + 0xf80], r13
mov qword [rbp + 0xf88], r13
mov qword [rbp + 0xf90], r13
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14007189c
mov r14, qword [rsp + 0x28]
test al, al
je 0x1400ad51d
mov rcx, qword [rbp + 0xf70]
add rcx, r14
mov r15d, 0x200000
cmp rcx, r15
jbe 0x1400ad51d
mov ecx, 0x5a0
call fcn.140090bf0
mov rdx, rax
mov r8d, r15d
lea rcx, [0x1401b5732]
call fcn.1400d64c4
jmp 0x1400ad2d2
mov r8d, 0x800
mov rdx, rsi
mov rcx, rbx
call fcn.140096d80
jmp 0x1400ad535
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x1400ad597
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.1400aebdc
test rax, rax
jne 0x1400ad597
lea rdx, [0x140157588]
mov rcx, rsi
call fcn.1400d0730
mov rbx, rax
test rax, rax
je 0x1400ad597
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call fcn.14012b0e4
mov r9, rbx
mov r8, r14
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140127ca4
mov rcx, rbx
call fcn.1401278d8
nop
lea rcx, [rsp + 0x30]
call fcn.14000a648
cmp word [rsi], r13w
je 0x1400ad5c6
mov rcx, qword [rdi]
mov rbx, qword [rcx + 8]
mov rcx, rbx
call qword [fcn.140123b50]
mov r8d, 4
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rax, rdi
mov rcx, qword [rbp + 0x3fc0]
xor rcx, rsp
call fcn.140100ed0
mov rbx, qword [rsp + 0x4120]
add rsp, 0x40d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret