Function at 0x18003e410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
lea edi, [rdx + 0x12]
mov rsi, r8
mov dword [rbp - 0x40], edi
mov rbx, r9
mov r15d, edx
mov r8, rcx
cmp edx, edi
jae case.0x18003e48d.15
mov r13, qword [rbp - 0x28]
lea r12d, [rdx - 0x6a]
mov r14, qword [rbp - 0x28]
lea rdx, [0x180000000]
mov rdi, qword [rbp - 0x28]
mov eax, dword [rbp - 0x40]
nop dword [rax + rax]
cmp r12d, 0x25
ja case.default.0x18003e48d
movzx eax, byte [rdx + r12 + 0x3e810]
mov ecx, dword [rdx + rax*4 + 0x3e7c4]
add rcx, rdx
jmp rcx
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], eax
jmp case.0x18003e48d.3
mov qword [rbp - 0x28], 0x10000
mov rax, 0xffffffffffffffff
mov qword [rbp - 0x38], 0x10000
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x18003e4b1
lea rdx, [rax + 0x18]
mov r9, r8
lea rax, [rbp + 0x48]
add rdx, r13
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x38]
mov r8d, 0x46
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call fcn.1800960d0
jmp 0x18003e783
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x18003e500
mov byte [r13 + 0x15], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x18003e514
lea rcx, [r13 + 0x16]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18003e783
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x18003e536
add al, 0x16
mov dword [rbp - 0x38], 0x10000
mov byte [r13], al
lea rcx, [r13 + 7]
mov eax, dword [r8]
lea rdx, [rbp - 0x38]
mov dword [r13 + 2], eax
movzx eax, byte [r8 + 4]
mov r8d, ILAppendID
mov byte [r13 + 6], al
call fcn.1800a0a40
jmp 0x18003e783
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18003e783
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x18003e590
add rax, 0x16
lea r8, [r13 + 2]
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rax
mov ecx, 0x63
call fcn.180014560
lea rdx, [0x1800a7668]
mov byte [r13 + 1], al
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbp - 0x10], rax
jmp 0x18003e783
mov r9, qword [rbp - 0x10]
mov r8d, 1
mov rdx, r14
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18003e783
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rbx + r14], 0
jne 0x18003e5f2
add r14, 0x10018
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
jmp 0x18003e783
xor r8d, r8d
xor edx, edx
mov ecx, 0xea
call fcn.18002fad0
mov rcx, qword [0x1800c3880]
mov edx, 8
mov rcx, qword [rcx + 0x48]
call fcn.1800a1078
jmp 0x18003e783
mov qword [0x1800c3880], 0
jmp case.0x18003e48d.3
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18003e783
movzx eax, word [rbp + 0x48]
mov word [rbp - 0x38], ax
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x18003e670
lea r8, [rax + 0x16]
add r8, r13
jmp 0x18003e775
test rdi, rdi
je case.0x18003e48d.3
mov edx, 0xef
mov rcx, rdi
call fcn.1800448c0
mov byte [rbp - 0x30], al
jmp case.0x18003e48d.15
mov r9d, 0xec
mov dword [rbp - 0x38], 2
mov r8, rsi
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x38]
xor ecx, ecx
call fcn.180016830
mov rsi, rax
test rax, rax
je 0x18003e70f
mov edi, 0x127
mov ecx, edi
sub ecx, 0x127
je 0x18003e6f6
sub ecx, 1
je 0x18003e6f0
cmp ecx, 1
je case.0x18003e48d.15
jmp 0x18003e705
mov byte [rbp - 0x30], 1
jmp 0x18003e705
mov r8, rsi
xor edx, edx
mov ecx, 0xd5
call fcn.1800546b0
inc edi
cmp edi, 0x12a
jb 0x18003e6d6
mov rsi, qword [rbp + 0x50]
lea rdx, [rbp - 0x18]
xor eax, eax
mov r8, rsi
mov r9d, 0xec
mov dword [rbp - 0x18], eax
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.180016830
mov rdi, rax
jmp 0x18003e783
lea rcx, [r13 + 0xb]
mov dword [rbp - 0x38], 0x10000
mov r8d, ILAppendID
lea rdx, [rbp - 0x38]
call fcn.1800a0a40
xor eax, eax
lea rcx, [r13 + 0xf]
mov r8d, ILAppendID
mov dword [rbp - 0x38], eax
lea rdx, [rbp - 0x38]
call fcn.1800a0a40
mov eax, 0x20
lea r8, [r13 + 0x13]
mov word [rbp - 0x38], ax
mov edx, 0x57
lea rcx, [rbp - 0x38]
call fcn.1800a0850
mov r8, qword [rbp + 0x40]
lea rdx, [0x180000000]
mov eax, dword [rbp - 0x40]
inc r15d
inc r12d
cmp r15d, eax
jb 0x18003e470
jmp case.0x18003e48d.15
mov byte [rbp - 0x30], 0
mov eax, dword [rbp - 0x30]
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret