Function at 0x140019620
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
mov rbx, qword [0x140073b48]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14001964b
cmp byte [rbx + 1], 0
je 0x14001964b
mov byte [rax + 0x18], 0
mov rcx, qword [rbx + 0x38]
call fcn.14003f6b0
xor r12d, r12d
lea rcx, [rbx + 0x3f40]
mov qword [rbx + 0x38], r12
call fcn.140013da0
cmp byte [rbx], r12b
je 0x14001a009
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
cmp byte [rbx + 0x54c8], r12b
je 0x1400196e3
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400196e3
mov rax, qword [0x140073b48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x54cc], r12d
call fcn.140030b90
lea rdx, [0x140061c24]
mov rcx, rdi
mov rsi, rax
call fcn.140015470
mov rdi, rax
test rax, rax
je 0x1400196e3
mov r8, qword [rsp + 0x50]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140073b48]
mov rdi, qword [rax + 0x4d40]
movsxd rax, dword [rax + 0x4d38]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x140019712
mov rcx, qword [rdi]
call fcn.140033840
add rdi, 8
cmp rdi, rsi
jne 0x140019701
mov ebp, r12d
mov qword [rsp + 0x28], r14
cmp dword [rbx + 0x5488], r12d
jle 0x1400197ce
mov r14, r12
nop word [rax + rax]
mov rax, qword [rbx + 0x5490]
mov rsi, qword [r14 + rax + 8]
test rsi, rsi
je 0x1400197bc
mov rcx, rsi
call fcn.1400353a0
mov rdi, qword [0x140073b48]
test rdi, rdi
je 0x1400197b3
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r8d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1400197a9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 0x10
cmp ebp, dword [rbx + 0x5488]
jl 0x140019730
mov rdi, qword [rbx + 0x5518]
movsxd rsi, dword [rbx + 0x5510]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x140019800
cmp dword [rdi + 4], 6
jne 0x1400197f7
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x1400197e8
mov ebp, r12d
cmp dword [rbx + 0x4180], r12d
jle 0x1400198bd
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x4188]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400198ab
mov rcx, rsi
call fcn.14001a6e0
mov rdi, qword [0x140073b48]
test rdi, rdi
je 0x1400198a2
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r8d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x140019898
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x4180]
jl 0x140019820
lea rcx, [rbx + 0x4180]
call fcn.140013da0
lea rcx, [rbx + 0x4190]
call fcn.140013da0
lea rcx, [rbx + 0x41a0]
call fcn.140013da0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov qword [rbx + 0x41e0], r12
mov r8, qword [rbx + 0x41b8]
test r8, r8
je 0x140019988
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x41b0], r12
test rdi, rdi
je 0x140019978
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001996e
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x41b8], r12
lea rcx, [rbx + 0x41c0]
call fcn.140013da0
mov qword [rbx + 0x4db8], r12
lea rdi, [rbx + 0x4a08]
mov qword [rbx + 0x41f0], r12
mov eax, 0xffffffff
movsx rax, ax
mov ecx, 0x9a
mov qword [rbx + 0x41e8], r12
mov qword [rbx + 0x4290], r12
mov qword [rbx + 0x4278], r12
mov qword [rbx + 0x4200], r12
rep stosw word [rdi], ax
lea rcx, [rbx + 0x4b40]
call fcn.140013da0
lea rcx, [rbx + 0x4b50]
call fcn.140013da0
mov r8, qword [rbx + 0x4cb0]
test r8, r8
je 0x140019a7f
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x4ca8], r12
test rdi, rdi
je 0x140019a6f
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019a65
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4cb0], r12
mov r8, qword [rbx + 0x4cc0]
test r8, r8
je 0x140019b10
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x4cb8], r12
test rdi, rdi
je 0x140019b00
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019af6
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4cc0], r12
lea rcx, [rbx + 0x4cc8]
call fcn.140013da0
lea rcx, [rbx + 0x4d08]
call fcn.140013da0
lea rcx, [rbx + 0x4d18]
call fcn.140013da0
mov r8, qword [rbx + 0x4d30]
test r8, r8
je 0x140019bc5
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x4d28], r12
test rdi, rdi
je 0x140019bb5
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019bab
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4d30], r12
lea rcx, [rbx + 0x4d38]
mov qword [rbx + 0x4d58], r12
mov qword [rbx + 0x4d50], r12
mov qword [rbx + 0x4d48], r12
call fcn.14003e430
lea rcx, [rbx + 0x5110]
call fcn.14003e070
mov r8, qword [rbx + 0x5140]
test r8, r8
je 0x140019c83
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x5138], r12
test rdi, rdi
je 0x140019c73
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019c69
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5140], r12
mov r8, qword [rbx + 0x5150]
test r8, r8
je 0x140019d14
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x5148], r12
test rdi, rdi
je 0x140019d04
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019cfa
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5150], r12
mov edi, r12d
cmp dword [rbx + 0x5090], r12d
jle 0x140019d41
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x5098]
lea rcx, [rax + rcx*8]
call fcn.140015eb0
inc edi
cmp edi, dword [rbx + 0x5090]
jl 0x140019d20
mov r8, qword [rbx + 0x5098]
test r8, r8
je 0x140019dd2
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x5090], r12
test rdi, rdi
je 0x140019dc2
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019db8
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5098], r12
lea rcx, [rbx + 0x50c0]
call fcn.14003e1c0
mov edi, r12d
mov rsi, qword [rsp + 0x60]
cmp dword [rbx + 0x50b0], r12d
jle 0x140019e10
nop
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x50b8]
call fcn.14003efd0
inc edi
cmp edi, dword [rbx + 0x50b0]
jl 0x140019df0
mov r8, qword [rbx + 0x50b8]
test r8, r8
je 0x140019ea1
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x50b0], r12
test rdi, rdi
je 0x140019e91
movsx rdx, word [rdi + 0x5678]
lea rcx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019e87
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rcx, [rdi + 0x567c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50b8], r12
lea rcx, [rbx + 0x50f8]
call fcn.140013da0
lea rcx, [rbx + 0x51e0]
call fcn.14003deb0
lea rcx, [rbx + 0x51d0]
call fcn.14003df90
lea rcx, [rbx + 0x53d8]
call fcn.140013da0
lea rcx, [rbx + 0x53e8]
call fcn.140013da0
lea rcx, [rbx + 0x5248]
call fcn.140013da0
lea rcx, [rbx + 0x5258]
call fcn.140013da0
lea rcx, [rbx + 0x52a8]
mov dword [rbx + 0x52a0], r12d
call fcn.140013da0
lea rcx, [rbx + 0x54f0]
call fcn.140013da0
mov r8, qword [rbx + 0x54e8]
test r8, r8
je 0x140019fa6
mov rdi, qword [0x140073b48]
mov qword [rbx + 0x54e0], r12
test rdi, rdi
je 0x140019f96
movsx r10, word [rdi + 0x5678]
lea rdx, [rdi + 0x567c]
mov r9d, dword [rdi + 0x4128]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140019f8c
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [rdi + 0x567c]
sub ecx, eax
mov word [rdi + 0x5678], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [rdi + 0x5674]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x54e8], r12
cmp qword [rbx + 0x5598], r12
je 0x140019fd6
mov rdi, qword [rbx + 0x5598]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140019fcf
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x5598], r12
lea rcx, [rbx + 0x55a0]
call fcn.140013da0
lea rcx, [rbx + 0x55d8]
call fcn.140013da0
lea rcx, [rbx + 0x55e8]
call fcn.140013da0
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x55f8], r12d
mov byte [rbx], r12b
add rsp, 0x38
pop r12
pop rbx
ret