Function at 0x1400098e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1401035b0]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000993c
cmp byte [rdi + 1], 0
je 0x14000993c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000993c
mov rcx, rbx
call fcn.14002d180
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009933
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140009975
mov qword [rdi + 0x3c68], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009968
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c70], r12
cmp byte [rdi], r12b
je 0x14000a1e1
cmp byte [rdi + 0x5c29], r12b
je 0x1400099e6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400099e6
mov rax, qword [0x1401035b0]
mov dword [rax + 0x5c2c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001d2b0
mov rsi, rax
lea rdx, [0x1400e5a34]
mov rcx, rbx
call fcn.140007190
mov rbx, rax
test rax, rax
je 0x1400099e6
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, r12d
cmp dword [rdi + 0x5c70], r12d
jle 0x140009a30
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c78]
cmp dword [rsi + rcx + 4], 6
jne 0x140009a22
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5c70]
jl 0x140009a00
mov esi, r12d
cmp dword [rdi + 0x3ea8], r12d
jle 0x140009a81
mov r14, r12
nop
mov rax, qword [rdi + 0x3eb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009a73
mov rcx, rbx
call fcn.14000a700
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009a6a
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3ea8]
jl 0x140009a40
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x140009ab3
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009aa6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140009ae5
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009ad8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r12
mov rcx, qword [rdi + 0x3ed0]
test rcx, rcx
je 0x140009b17
mov qword [rdi + 0x3ec8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009b0a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x3f08], r12
mov rcx, qword [rdi + 0x3ee0]
test rcx, rcx
je 0x140009b50
mov qword [rdi + 0x3ed8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009b43
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3ef0]
test rcx, rcx
je 0x140009b82
mov qword [rdi + 0x3ee8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009b75
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x48f0], r12
mov qword [rdi + 0x3f18], r12
mov qword [rdi + 0x3f10], r12
mov qword [rdi + 0x3fa0], r12
mov qword [rdi + 0x3f88], r12
mov qword [rdi + 0x3f20], r12
lea rcx, [rdi + 0x4640]
call fcn.140005b20
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x140009bea
mov qword [rdi + 0x4858], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009bdd
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4860], r12
mov rcx, qword [rdi + 0x4870]
test rcx, rcx
je 0x140009c1c
mov qword [rdi + 0x4868], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009c0f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4870], r12
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x140009c4e
mov qword [rdi + 0x4878], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009c41
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4880], r12
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x140009c80
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009c73
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
mov rcx, qword [rdi + 0x48d0]
test rcx, rcx
je 0x140009cb2
mov qword [rdi + 0x48c8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009ca5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48d0], r12
mov ebp, r12d
cmp dword [rdi + 0x48e0], r12d
jle 0x140009d86
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009d74
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140009d10
mov rcx, rsi
call fcn.140005930
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009d07
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140009d3d
mov rcx, rsi
call fcn.140005930
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009d33
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14001e440]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.1400b6d60
nop
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009d6b
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48e0]
jl 0x140009cd0
mov rcx, qword [rdi + 0x48e8]
test rcx, rcx
je 0x140009db8
mov qword [rdi + 0x48e0], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009dab
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48e8], r12
lea rcx, [rdi + 0x4bd8]
call fcn.14001e470
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x140009df6
mov qword [rdi + 0x4c00], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009de9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c08], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x140009e28
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009e1b
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov ebx, r12d
cmp dword [rdi + 0x4b58], r12d
jle 0x140009e78
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b60]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140009e6a
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009e63
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b58]
jl 0x140009e40
mov rcx, qword [rdi + 0x4b60]
test rcx, rcx
je 0x140009eaa
mov qword [rdi + 0x4b58], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009e9d
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b60], r12
lea rcx, [rdi + 0x4b88]
call fcn.14001e5f0
mov esi, r12d
cmp dword [rdi + 0x4b78], r12d
jle 0x140009f15
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b80]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002cc10
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140009f07
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009f00
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b78]
jl 0x140009ed0
mov rcx, qword [rdi + 0x4b80]
test rcx, rcx
je 0x140009f47
mov qword [rdi + 0x4b78], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009f3a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b80], r12
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140009f79
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009f6c
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x5bf0]
test rcx, rcx
je 0x140009fab
mov qword [rdi + 0x5be8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009f9e
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bf0], r12
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x140009fdd
mov qword [rdi + 0x5bf8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x140009fd0
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c00], r12
mov rcx, qword [rdi + 0x4c68]
test rcx, rcx
je 0x14000a00f
mov qword [rdi + 0x4c60], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a002
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c68], r12
mov rcx, qword [rdi + 0x4c78]
test rcx, rcx
je 0x14000a041
mov qword [rdi + 0x4c70], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a034
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c78], r12
mov rcx, qword [rdi + 0x4c88]
test rcx, rcx
je 0x14000a073
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a066
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c88], r12
mov dword [rdi + 0x5ad8], r12d
mov rcx, qword [rdi + 0x5ae8]
test rcx, rcx
je 0x14000a0ac
mov qword [rdi + 0x5ae0], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a09f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ae8], r12
mov rcx, qword [rdi + 0x5c58]
test rcx, rcx
je 0x14000a0de
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a0d1
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c58], r12
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x14000a110
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a103
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c48], r12
cmp qword [rdi + 0x5cd0], 0
je 0x14000a141
mov rbx, qword [rdi + 0x5cd0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000a13a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5cd0], r12
mov rcx, qword [rdi + 0x5ce0]
test rcx, rcx
je 0x14000a173
mov qword [rdi + 0x5cd8], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a166
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce0], r12
mov rcx, qword [rdi + 0x5d18]
test rcx, rcx
je 0x14000a1a5
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a198
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d18], r12
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x14000a1d7
mov qword [rdi + 0x5d20], r12
mov rax, qword [0x1401035b0]
test rax, rax
je 0x14000a1ca
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d28], r12
mov dword [rdi + 0x5d30], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret