Function at 0x140009ca0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rax, qword [0x1400fad40]
mov rdi, rax
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x140009d68
cmp byte [rax + 1], 0
je 0x140009d68
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x50]
test rbx, rbx
je 0x140009d68
mov rcx, rbx
call fcn.140032130
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140009d04
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009cfe
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140009d25
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009d1f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140009d46
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009d40
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009d58
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fad40]
xor r15d, r15d
mov qword [rdi + 0x50], r15
cmp byte [rdi], r15b
je 0x14000a536
mov qword [rsp + 0x50], rsi
cmp byte [rdi + 0x5550], r15b
je 0x140009ddd
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140009ddd
lea rcx, [rsp + 0x40]
mov dword [rax + 0x5554], r15d
mov qword [rsp + 0x40], r15
call fcn.14001a220
lea rdx, [0x1400eb438]
mov rcx, rbx
mov rsi, rax
call fcn.140003520
mov rbx, rax
test rax, rax
je 0x140009ddd
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov r9, rax
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 qword [rsp + 0x48], rbp
call fcn.14001c9c0
mov esi, r15d
cmp dword [rdi + 0x5518], r15d
jle 0x140009e42
mov rbp, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x5520]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140009e34
mov rcx, rbx
call fcn.14001e1e0
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009e2b
dec dword [rax + 0xf4]
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 + 0x5518]
jl 0x140009e00
mov ebx, r15d
cmp dword [rdi + 0x5598], r15d
jle 0x140009e7e
mov rsi, r15
mov rax, qword [rdi + 0x55a0]
cmp dword [rsi + rax + 4], 6
jne 0x140009e70
movsxd rdx, ebx
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rsi + rax + reloc.WS2_32.dll_recv]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5598]
jl 0x140009e51
mov esi, r15d
cmp dword [rdi + 0x3f60], r15d
jle 0x140009ee6
mov qword [rsp + 0x58], r14
mov r14, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x3f68]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009ed3
mov rcx, rbx
call fcn.140006000
mov rax, qword [0x1400fad40]
test rax, rax
je 0x140009eca
dec dword [rax + 0xf4]
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 + 0x3f60]
jl 0x140009ea0
mov r14, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x3f68]
test rcx, rcx
je 0x140009f18
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x3f60], r15
test rax, rax
je 0x140009f0b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f68], r15
mov rcx, qword [rdi + 0x3f78]
test rcx, rcx
je 0x140009f4a
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x3f70], r15
test rax, rax
je 0x140009f3d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f78], r15
mov rcx, qword [rdi + 0x3f88]
test rcx, rcx
je 0x140009f7c
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x3f80], r15
test rax, rax
je 0x140009f6f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f88], r15
mov qword [rdi + 0x3fc0], r15
mov rcx, qword [rdi + 0x3f98]
test rcx, rcx
je 0x140009fb5
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x3f90], r15
test rax, rax
je 0x140009fa8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f98], r15
mov rcx, qword [rdi + 0x3fa8]
test rcx, rcx
je 0x140009fe7
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x3fa0], r15
test rax, rax
je 0x140009fda
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa8], r15
mov qword [rdi + 0x4240], r15
mov qword [rdi + 0x3fd0], r15
mov qword [rdi + 0x3fc8], r15
mov qword [rdi + 0x4048], r15
mov qword [rdi + 0x4030], r15
mov qword [rdi + 0x3fe0], r15
mov rcx, qword [rdi + 0x4160]
test rcx, rcx
je 0x14000a043
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4158], r15
test rax, rax
je 0x14000a036
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4160], r15
mov rcx, qword [rdi + 0x4170]
test rcx, rcx
je 0x14000a075
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4168], r15
test rax, rax
je 0x14000a068
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4170], r15
mov rcx, qword [rdi + 0x4180]
test rcx, rcx
je 0x14000a0a7
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4178], r15
test rax, rax
je 0x14000a09a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4180], r15
mov rcx, qword [rdi + 0x41c0]
test rcx, rcx
je 0x14000a0d9
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x41b8], r15
test rax, rax
je 0x14000a0cc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x41c0], r15
mov rcx, qword [rdi + 0x41d0]
test rcx, rcx
je 0x14000a10b
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x41c8], r15
test rax, rax
je 0x14000a0fe
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x41d0], r15
mov qword [rdi + 0x4208], r15
mov ebx, r15d
mov qword [rdi + 0x4200], r15
mov qword [rdi + 0x41f8], r15
cmp dword [rdi + 0x41e0], r15d
jle 0x14000a14e
mov rsi, r15
nop
mov rcx, qword [rdi + 0x41e8]
mov rcx, qword [rcx + rsi]
call fcn.140026610
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x41e0]
jl 0x14000a130
mov rcx, qword [rdi + 0x41e8]
test rcx, rcx
je 0x14000a180
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x41e0], r15
test rax, rax
je 0x14000a173
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x41e8], r15
lea rcx, [rdi + 0x4510]
call fcn.1400258b0
mov rcx, qword [rdi + 0x4540]
test rcx, rcx
je 0x14000a1be
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4538], r15
test rax, rax
je 0x14000a1b1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4540], r15
mov rcx, qword [rdi + 0x4550]
test rcx, rcx
je 0x14000a1f0
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4548], r15
test rax, rax
je 0x14000a1e3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4550], r15
mov ebx, r15d
cmp dword [rdi + 0x4490], r15d
jle 0x14000a237
mov rsi, r15
nop
mov rax, qword [rdi + 0x4498]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000a229
mov rax, qword [0x1400fad40]
test rax, rax
je 0x14000a223
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4490]
jl 0x14000a200
mov rcx, qword [rdi + 0x4498]
test rcx, rcx
je 0x14000a269
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4490], r15
test rax, rax
je 0x14000a25c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4498], r15
lea rcx, [rdi + 0x44c0]
call fcn.1400259c0
mov esi, r15d
cmp dword [rdi + 0x44b0], r15d
jle 0x14000a2d3
mov rbp, r15
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x44b8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400316b0
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000a2c5
mov rax, qword [0x1400fad40]
test rax, rax
je 0x14000a2bf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x44b0]
jl 0x14000a290
mov rcx, qword [rdi + 0x44b8]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x14000a30f
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x44b0], r15
test rax, rax
je 0x14000a302
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44b8], r15
mov rcx, qword [rdi + 0x4500]
test rcx, rcx
je 0x14000a341
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x44f8], r15
test rax, rax
je 0x14000a334
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4500], r15
mov rcx, qword [rdi + 0x54d8]
test rcx, rcx
je 0x14000a373
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x54d0], r15
test rax, rax
je 0x14000a366
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x54d8], r15
mov rcx, qword [rdi + 0x54e8]
test rcx, rcx
je 0x14000a3a5
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x54e0], r15
test rax, rax
je 0x14000a398
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x54e8], r15
mov rcx, qword [rdi + 0x4578]
test rcx, rcx
je 0x14000a3d7
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4570], r15
test rax, rax
je 0x14000a3ca
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4578], r15
mov rcx, qword [rdi + 0x4588]
test rcx, rcx
je 0x14000a409
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4580], r15
test rax, rax
je 0x14000a3fc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4588], r15
mov rcx, qword [rdi + 0x4598]
test rcx, rcx
je 0x14000a43b
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x4590], r15
test rax, rax
je 0x14000a42e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4598], r15
mov rcx, qword [rdi + 0x5580]
test rcx, rcx
je 0x14000a46d
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x5578], r15
test rax, rax
je 0x14000a460
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5580], r15
mov rcx, qword [rdi + 0x5570]
test rcx, rcx
je 0x14000a49f
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x5568], r15
test rax, rax
je 0x14000a492
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5570], r15
cmp qword [rdi + 0x55b8], r15
je 0x14000a4cf
mov rbx, qword [rdi + 0x55b8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000a4c8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x55b8], r15
mov rcx, qword [rdi + 0x55c8]
test rcx, rcx
je 0x14000a501
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x55c0], r15
test rax, rax
je 0x14000a4f4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x55c8], r15
mov rcx, qword [rdi + 0x5600]
test rcx, rcx
je 0x14000a533
mov rax, qword [0x1400fad40]
mov qword [rdi + 0x55f8], r15
test rax, rax
je 0x14000a526
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5600], r15
mov byte [rdi], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret