Function at 0x140009a20
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, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140009a7e
cmp byte [rcx + 1], 0
je 0x140009a7e
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x140009a7e
mov rcx, rbx
call fcn.1400314d0
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009a75
dec dword [rax + 0x3ac]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0xa8], r12
cmp byte [rdi], r12b
je 0x14000a2bd
cmp byte [rdi + 0x32a0], r12b
je 0x140009b02
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140009b02
mov rsi, qword [0x1400e31f0]
mov qword [0x1400e31f0], rdi
mov dword [rdi + 0x32a4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140019620
mov rbp, rax
lea rdx, [0x1400cc3c8]
mov rcx, rbx
call fcn.140003a50
mov rbx, rax
test rax, rax
je 0x140009b09
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov rcx, rbp
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]
jmp 0x140009b09
mov rsi, qword [0x1400e31f0]
mov qword [0x1400e31f0], rdi
call fcn.14001bde0
mov qword [0x1400e31f0], rsi
mov esi, r12d
cmp dword [rdi + 0x3268], r12d
jle 0x140009b72
mov rbp, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x3270]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140009b64
mov rcx, rbx
call fcn.14001d560
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009b5b
dec dword [rax + 0x3ac]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x3268]
jl 0x140009b30
mov ebx, r12d
cmp dword [rdi + 0x32e8], r12d
jle 0x140009bb1
mov rsi, r12
mov rcx, qword [rdi + 0x32f0]
cmp dword [rsi + rcx + 4], 6
jne 0x140009ba3
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 + 0x32e8]
jl 0x140009b81
mov esi, r12d
cmp dword [rdi + 0x1cc8], r12d
jle 0x140009c01
mov r14, r12
mov rax, qword [rdi + 0x1cd0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009bf3
mov rcx, rbx
call fcn.1400064d0
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009bea
dec dword [rax + 0x3ac]
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 + 0x1cc8]
jl 0x140009bc0
mov rcx, qword [rdi + 0x1cd0]
test rcx, rcx
je 0x140009c33
mov qword [rdi + 0x1cc8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009c26
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1cd0], r12
mov rcx, qword [rdi + 0x1ce0]
test rcx, rcx
je 0x140009c65
mov qword [rdi + 0x1cd8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009c58
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ce0], r12
mov rcx, qword [rdi + 0x1cf0]
test rcx, rcx
je 0x140009c97
mov qword [rdi + 0x1ce8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009c8a
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1cf0], r12
mov qword [rdi + 0x1d28], r12
mov rcx, qword [rdi + 0x1d00]
test rcx, rcx
je 0x140009cd0
mov qword [rdi + 0x1cf8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009cc3
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d00], r12
mov rcx, qword [rdi + 0x1d10]
test rcx, rcx
je 0x140009d02
mov qword [rdi + 0x1d08], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009cf5
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d10], r12
mov qword [rdi + 0x1f98], r12
mov qword [rdi + 0x1d38], r12
mov qword [rdi + 0x1d30], r12
mov qword [rdi + 0x1dc0], r12
mov qword [rdi + 0x1da8], r12
mov qword [rdi + 0x1d48], r12
mov rcx, qword [rdi + 0x1ec0]
test rcx, rcx
je 0x140009d5e
mov qword [rdi + 0x1eb8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009d51
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ec0], r12
mov rcx, qword [rdi + 0x1ed0]
test rcx, rcx
je 0x140009d90
mov qword [rdi + 0x1ec8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009d83
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ed0], r12
mov rcx, qword [rdi + 0x1ee0]
test rcx, rcx
je 0x140009dc2
mov qword [rdi + 0x1ed8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009db5
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ee0], r12
mov rcx, qword [rdi + 0x1f20]
test rcx, rcx
je 0x140009df4
mov qword [rdi + 0x1f18], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009de7
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f20], r12
mov rcx, qword [rdi + 0x1f30]
test rcx, rcx
je 0x140009e26
mov qword [rdi + 0x1f28], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009e19
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f30], r12
mov qword [rdi + 0x1f60], r12
mov qword [rdi + 0x1f58], r12
mov qword [rdi + 0x1f50], r12
mov ebp, r12d
cmp dword [rdi + 0x1f38], r12d
jle 0x140009f0d
mov r14, r12
nop
mov rax, qword [rdi + 0x1f40]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009efb
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x140009e93
mov rcx, rsi
call fcn.140002190
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009e8a
dec dword [rax + 0x3ac]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140009ec3
mov rcx, rsi
call fcn.140002190
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009eb9
dec dword [rax + 0x3ac]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x1400248e0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400b8de8
nop
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009ef2
dec dword [rax + 0x3ac]
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 + 0x1f38]
jl 0x140009e50
mov rcx, qword [rdi + 0x1f40]
test rcx, rcx
je 0x140009f3f
mov qword [rdi + 0x1f38], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009f32
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f40], r12
lea rcx, [rdi + 0x2258]
call fcn.140024c20
mov rcx, qword [rdi + 0x2288]
test rcx, rcx
je 0x140009f7d
mov qword [rdi + 0x2280], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009f70
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2288], r12
mov rcx, qword [rdi + 0x2298]
test rcx, rcx
je 0x140009faf
mov qword [rdi + 0x2290], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009fa2
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2298], r12
mov ebx, r12d
cmp dword [rdi + 0x21d8], r12d
jle 0x140009ff8
mov rsi, r12
nop
mov rax, qword [rdi + 0x21e0]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x140009fea
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x140009fe3
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x21d8]
jl 0x140009fc0
mov rcx, qword [rdi + 0x21e0]
test rcx, rcx
je 0x14000a02a
mov qword [rdi + 0x21d8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a01d
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x21e0], r12
lea rcx, [rdi + 0x2208]
call fcn.140024d90
mov esi, r12d
cmp dword [rdi + 0x21f8], r12d
jle 0x14000a095
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x2200]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140030da0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000a087
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a080
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x21f8]
jl 0x14000a050
mov rcx, qword [rdi + 0x2200]
test rcx, rcx
je 0x14000a0c7
mov qword [rdi + 0x21f8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a0ba
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2200], r12
mov rcx, qword [rdi + 0x2248]
test rcx, rcx
je 0x14000a0f9
mov qword [rdi + 0x2240], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a0ec
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2248], r12
mov rcx, qword [rdi + 0x3230]
test rcx, rcx
je 0x14000a12b
mov qword [rdi + 0x3228], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a11e
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3230], r12
mov rcx, qword [rdi + 0x3240]
test rcx, rcx
je 0x14000a15d
mov qword [rdi + 0x3238], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a150
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3240], r12
mov rcx, qword [rdi + 0x22c0]
test rcx, rcx
je 0x14000a18f
mov qword [rdi + 0x22b8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a182
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22c0], r12
mov rcx, qword [rdi + 0x22d0]
test rcx, rcx
je 0x14000a1c1
mov qword [rdi + 0x22c8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a1b4
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22d0], r12
mov rcx, qword [rdi + 0x22e0]
test rcx, rcx
je 0x14000a1f3
mov qword [rdi + 0x22d8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a1e6
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22e0], r12
mov rcx, qword [rdi + 0x32d0]
test rcx, rcx
je 0x14000a225
mov qword [rdi + 0x32c8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a218
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x32d0], r12
mov rcx, qword [rdi + 0x32c0]
test rcx, rcx
je 0x14000a257
mov qword [rdi + 0x32b8], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a24a
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x32c0], r12
cmp qword [rdi + 0x3308], 0
je 0x14000a288
mov rbx, qword [rdi + 0x3308]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000a281
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3308], r12
mov rcx, qword [rdi + 0x3318]
test rcx, rcx
je 0x14000a2ba
mov qword [rdi + 0x3310], r12
mov rax, qword [0x1400e31f0]
test rax, rax
je 0x14000a2ad
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3318], r12
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