Function at 0x1401b3240
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov rdi, rcx
cmp qword [rcx + 0x10], rsi
je 0x1401b352c
mov qword [r11 + 0x18], r12
mov edx, 1
mov qword [r11 + 0x20], r13
mov r12d, esi
mov r13d, dword [rcx + 0x18]
mov qword [r11 - 0x20], r14
mov r14d, esi
mov qword [r11 - 0x28], r15
mov r15d, edx
mov qword [r11 + 0x10], rbx
mov rax, qword [rdi + 0x10]
mov ecx, esi
test rax, rax
je 0x1401b32a1
mov ecx, dword [rax]
cmp r14d, ecx
jge 0x1401b34dc
mov rbx, qword [rax + 0x10]
lea r9, [rbp - 0x29]
mov rcx, qword [rdi + 8]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x20], rsi
mov r8d, 0x2e
mov rbx, qword [r12 + rbx]
movdqu xmmword [rbp - 3], xmm0
mov qword [rbp + 0x1d], rsi
movdqu xmmword [rbp + 0xd], xmm1
mov dword [rbp - 9], 0x2014b50
mov word [rbp - 5], si
movzx eax, word [rbx + 4]
mov word [rbp - 3], ax
movzx eax, word [rbx + 6]
mov word [rbp - 1], ax
movzx eax, word [rbx + 8]
mov word [rbp + 1], ax
movzx eax, word [rbx + 0xc]
mov word [rbp + 5], ax
movzx eax, word [rbx + 0xa]
mov word [rbp + 3], ax
mov eax, dword [rbx + 0xe]
mov dword [rbp + 7], eax
mov eax, dword [rbx + 0x12]
mov dword [rbp + 0xb], eax
mov eax, dword [rbx + 0x16]
mov dword [rbp + 0xf], eax
movzx eax, word [rbx + 0x1a]
mov word [rbp + 0x13], ax
movzx eax, word [rbx + 0x1c]
mov word [rbp + 0x15], ax
mov eax, dword [rbx + 0x1e]
mov word [rbp + 0x1b], dx
lea rdx, [rbp - 9]
mov dword [rbp + 0x21], eax
mov dword [rbp - 0x29], esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15d, eax
mov eax, dword [rbp - 0x29]
add dword [rdi + 0x18], eax
test r15d, r15d
je 0x1401b3498
movzx eax, word [rbx + 0x1a]
test ax, ax
je 0x1401b33e9
movzx edx, ax
mov ecx, 0x42
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1401b33e9
movzx r8d, word [rbx + 0x1a]
lea rdx, [rbx + 0x22]
inc r8d
xor r9d, r9d
mov rcx, rax
call fcn.14019edd0
movzx r8d, word [rbx + 0x1a]
lea r9, [rbp - 0x29]
mov rcx, qword [rdi + 8]
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15d, eax
mov rcx, rsi
mov eax, dword [rbp - 0x29]
add dword [rdi + 0x18], eax
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r15d, r15d
je 0x1401b3498
movzx eax, word [rbx + 0x1c]
test ax, ax
je 0x1401b3487
movzx edx, ax
mov ecx, 0x42
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1401b3487
movzx r8d, word [rbx + 0x1c]
lea rdx, [rbx + 0x22a]
inc r8d
xor r9d, r9d
mov rcx, rax
call fcn.14019edd0
movzx r8d, word [rbx + 0x1c]
lea r9, [rbp - 0x29]
mov rcx, qword [rdi + 8]
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15d, eax
mov rcx, rsi
mov eax, dword [rbp - 0x29]
add dword [rdi + 0x18], eax
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
inc r14d
add r12, 8
xor esi, esi
lea edx, [rsi + 1]
jmp 0x1401b3294
mov eax, 0x8004e009
mov rbx, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
test r15d, r15d
je 0x1401b3525
mov rcx, qword [rdi + 8]
lea r9, [rbp - 0x29]
mov qword [rbp - 0x21], 0x6054b50
mov r8d, ILFindChild
movzx edx, word [rax]
mov word [rbp - 0x19], dx
mov word [rbp - 0x17], dx
mov edx, dword [rdi + 0x18]
sub edx, r13d
mov word [rbp - 0xd], si
mov dword [rbp - 0x15], edx
lea rdx, [rbp - 0x21]
mov dword [rbp - 0x11], r13d
mov dword [rbp - 0x29], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
jmp 0x1401b349d
mov eax, esi
jmp 0x1401b34c5