Function at 0x180024ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
lea ebx, [r9 + 8]
mov r13d, r9d
mov dword [rbp - 0x18], ebx
mov r12, r8
mov r15, rdx
mov rdi, rcx
cmp r9d, ebx
jae 0x1800250fc
mov r14, qword [rbp + 0x50]
lea esi, [r9 - 0x9e]
lea rdx, [0x180000000]
lea r8, [fcn.18006be98]
cmp esi, 0xc
ja case.0x180024f37.0
mov ecx, dword [rdx + rsi*4 + 0x25230]
add rcx, rdx
jmp rcx
test rdi, rdi
je 0x18002514a
test r14, r14
je 0x180025126
mov ecx, dword [r15]
mov eax, ecx
and eax, 8
je 0x180024f60
cmp qword [rdi + 0x38], 0
je 0x18002511d
test cl, 1
lea rcx, [0x18006ab00]
cmovne rcx, r8
mov qword [rbp - 0x10], rcx
test eax, eax
je 0x180024f85
mov rax, qword [rdi + 0x38]
mov ecx, dword [rax + 8]
mov dword [rbp - 0x20], ecx
jmp case.0x180024f37.0
mov ecx, dword [rdi + 0x50]
mov dword [rbp - 0x20], ecx
jmp case.0x180024f37.0
xor ebx, ebx
cmp dword [rdi + 8], ebx
jle 0x180024fd6
nop word [rax + rax]
movsxd rcx, ebx
lea r8, [rbp + 0x48]
shl rcx, 7
mov r9, r14
add rcx, qword [rdi]
mov edx, 0xc1
mov dword [rbp + 0x48], 0
mov qword [rsp + 0x20], r15
call fcn.180051180
test eax, eax
jne 0x18002514a
inc ebx
cmp ebx, dword [rdi + 8]
jl 0x180024fa0
mov rcx, r14
call fcn.180065fa4
sub eax, dword [rdi + 0x10]
lea rcx, [0x180099bac]
mov edx, 1
mov dword [rdi + 0xc], eax
mov r9, r14
lea r8d, [rdx + 3]
call fcn.18006bd00
lea r9, [rbp + 0x48]
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov dword [rbp + 0x48], 0
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xa8
call fcn.180028660
mov ebx, dword [rbp - 0x18]
jmp 0x1800250e0
mov eax, dword [rdi + 0xc]
lea r9, [rbp + 0x48]
mov qword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x48], eax
mov ecx, 0xa8
mov qword [rsp + 0x20], r14
call fcn.180028660
mov eax, dword [rdi + 0x10]
lea r9, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rbp + 0x48], eax
mov ecx, 0xa8
mov qword [rsp + 0x20], r14
call fcn.180028660
movzx eax, word [rdi + 0x20]
lea rcx, [rbp + 0x48]
mov r9d, VarR8FromI2
mov word [rbp + 0x48], ax
xor r8d, r8d
mov rdx, r14
call fcn.180019bc0
jmp 0x1800250e0
movzx eax, word [rdi + 8]
lea rcx, [rbp + 0x48]
mov r9d, VarR8FromI2
mov word [rbp + 0x48], ax
xor r8d, r8d
mov rdx, r14
call fcn.180019bc0
movzx eax, word [rdi + 8]
lea rcx, [rbp + 0x48]
mov r9d, VarR8FromI2
mov word [rbp + 0x48], ax
xor r8d, r8d
mov rdx, r14
call fcn.180019bc0
jmp 0x1800250e0
mov rcx, r14
call fcn.180065fa4
mov dword [rdi + 0x10], eax
lea r8, [fcn.18006be98]
lea rdx, [0x180000000]
inc r13d
inc esi
cmp r13d, ebx
jb 0x180024f24
mov eax, dword [rbp + 0x48]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp + 0x48], 9
jmp 0x18002512d
mov dword [rbp + 0x48], SafeArrayLock
mov dword [rbp - 0x18], 0
mov rcx, r12
lea rdx, [rbp - 0x18]
mov r9d, 0x112
lea r8, [rbp + 0x48]
call fcn.18002d330
mov eax, 0xffffffff
jmp 0x1800250ff
mov r13d, dword [rbp - 0x20]
xor ebx, ebx
test r13d, r13d
jle 0x18002511d
nop dword [rax]
mov eax, dword [r15]
lea r9, [rbp + 0x48]
mov dword [rbp + 0x48], eax
mov r8, r12
movsxd rax, ebx
mov edx, reloc.OLEAUT32.dll_VarDateFromCy
mov qword [rbp - 0x18], rax
mov rcx, rdi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call fcn.18003a5d0
mov rsi, rax
test rax, rax
je 0x1800251bb
test byte [r15], 2
je 0x1800251ae
mov edx, 0x2f
mov rcx, rax
call fcn.1800631c4
test rax, rax
je 0x1800251ae
lea rsi, [rax + 1]
mov rdx, rsi
mov rcx, r14
call qword [rbp - 0x10]
test eax, eax
je 0x1800251ce
inc ebx
cmp ebx, r13d
jl 0x180025160
mov dword [rbp + 0x48], 9
jmp 0x18002512d
mov r9d, VarUI2FromUI1
mov qword [rsp + 0x20], r12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180006b60
mov eax, ebx
jmp 0x1800250ff
movzx r8d, word [rdi + 0x20]
mov r9, r14
mov rcx, qword [rdi + 0x18]
mov edx, 1
call fcn.18006bd00
mov rcx, r14
call fcn.180066040
test eax, eax
je 0x180025227
call fcn.18006be3c
mov ecx, dword [rax]
mov dword [rbp - 0x18], ecx
mov rcx, r15
mov dword [rbp + 0x48], 6
jmp 0x180025137
xor eax, eax
jmp 0x1800250ff