Function at 0x1400d1120
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 rdx, qword [rcx + 0x50]
add rcx, 0x50
xor r12d, r12d
test rdx, rdx
je 0x1400d127a
lea rcx, [rdi + 0x50]
cmp byte [rdi + 1], r12b
je 0x1400d127a
mov byte [rdx + 0x18], r12b
mov rbx, qword [rdi + 0x50]
lea rcx, [rdi + 0x50]
test rbx, rbx
je 0x1400d127a
mov rcx, rbx
call fcn.1400c40b0
mov rcx, rbx
call fcn.1400c4200
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400d11cb
mov r14d, r12d
nop dword [rax]
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400d11c0
mov rcx, rsi
call fcn.1400c5270
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d11b7
dec dword [rax + 0xec]
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 + 0x48]
jl 0x1400d1190
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400d11f4
mov qword [rbx + 0x48], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d11ea
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50], r12
mov byte [rbx + 0x19], r12b
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400d1219
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1213
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400d123a
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1234
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400d125b
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1255
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d126d
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rdi + 0x50]
mov qword [rcx], r12
cmp byte [rdi], r12b
je 0x1400d198b
cmp byte [rdi + 0x5b01], r12b
je 0x1400d12fc
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400d12fc
mov rsi, qword [0x1402de850]
mov qword [0x1402de850], rdi
mov dword [rdi + 0x5b04], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400df760
mov rbp, rax
lea rdx, [0x1402a8708]
mov rcx, rbx
call fcn.1400cbfd0
mov rbx, rax
test rax, rax
je 0x1400d12f5
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 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]
mov qword [0x1402de850], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400ce520
lea rcx, [rdi + 0x3dd0]
call fcn.1400e0ab0
mov rcx, qword [rdi + 0x3de8]
test rcx, rcx
je 0x1400d1347
mov qword [rdi + 0x3de0], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d133a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3de8], r12
mov rcx, qword [rdi + 0x3df8]
test rcx, rcx
je 0x1400d1379
mov qword [rdi + 0x3df0], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d136c
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3df8], r12
mov qword [rdi + 0x3e30], r12
mov rcx, qword [rdi + 0x3e08]
test rcx, rcx
je 0x1400d13b2
mov qword [rdi + 0x3e00], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d13a5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e08], r12
mov rcx, qword [rdi + 0x3e18]
test rcx, rcx
je 0x1400d13e4
mov qword [rdi + 0x3e10], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d13d7
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e18], r12
mov qword [rdi + 0x4040], r12
mov qword [rdi + 0x3e40], r12
mov qword [rdi + 0x3e38], r12
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x3e48], r12
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x1400d1440
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1433
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x1400d1472
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1465
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x1400d14a4
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1497
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x1400d14d6
mov qword [rdi + 0x4008], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d14c9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4010], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x1400d1508
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d14fb
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4020], r12
mov ebp, r12d
cmp dword [rdi + 0x4030], r12d
jle 0x1400d15d6
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4038]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400d15c4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400d1560
mov rcx, rsi
call fcn.1400ca820
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1557
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 0x1400d158d
mov rcx, rsi
call fcn.1400ca820
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1583
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, [0x1400c7470]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.14016e15c
nop
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d15bb
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 + 0x4030]
jl 0x1400d1520
mov rcx, qword [rdi + 0x4038]
test rcx, rcx
je 0x1400d1608
mov qword [rdi + 0x4030], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d15fb
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4038], r12
lea rcx, [rdi + 0x4300]
call fcn.1400e0450
mov rcx, qword [rdi + 0x4330]
test rcx, rcx
je 0x1400d1646
mov qword [rdi + 0x4328], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1639
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4330], r12
mov rcx, qword [rdi + 0x4340]
test rcx, rcx
je 0x1400d1678
mov qword [rdi + 0x4338], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d166b
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4340], r12
mov ebx, r12d
cmp dword [rdi + 0x4280], r12d
jle 0x1400d16c7
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4288]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400d16b9
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d16b3
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4280]
jl 0x1400d1690
mov rcx, qword [rdi + 0x4288]
test rcx, rcx
je 0x1400d16f9
mov qword [rdi + 0x4280], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d16ec
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4288], r12
lea rcx, [rdi + 0x42b0]
call fcn.1400e05c0
mov esi, r12d
cmp dword [rdi + 0x42a0], r12d
jle 0x1400d1763
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400c3740
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400d1755
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d174f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x42a0]
jl 0x1400d1720
mov rcx, qword [rdi + 0x42a8]
test rcx, rcx
je 0x1400d1795
mov qword [rdi + 0x42a0], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1788
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42a8], r12
mov rcx, qword [rdi + 0x42f0]
test rcx, rcx
je 0x1400d17c7
mov qword [rdi + 0x42e8], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d17ba
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42f0], r12
mov rcx, qword [rdi + 0x5ac8]
test rcx, rcx
je 0x1400d17f9
mov qword [rdi + 0x5ac0], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d17ec
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ac8], r12
mov rcx, qword [rdi + 0x5ad8]
test rcx, rcx
je 0x1400d182b
mov qword [rdi + 0x5ad0], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d181e
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ad8], r12
mov rcx, qword [rdi + 0x4368]
test rcx, rcx
je 0x1400d185d
mov qword [rdi + 0x4360], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1850
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4368], r12
mov rcx, qword [rdi + 0x4378]
test rcx, rcx
je 0x1400d188f
mov qword [rdi + 0x4370], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1882
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4378], r12
mov rcx, qword [rdi + 0x4388]
test rcx, rcx
je 0x1400d18c1
mov qword [rdi + 0x4380], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d18b4
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4388], r12
mov rcx, qword [rdi + 0x5b30]
test rcx, rcx
je 0x1400d18f3
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d18e6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b30], r12
mov rcx, qword [rdi + 0x5b20]
test rcx, rcx
je 0x1400d1925
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d1918
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b20], r12
cmp qword [rdi + 0x5b68], 0
je 0x1400d1956
mov rbx, qword [rdi + 0x5b68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400d194f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5b68], r12
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x1400d1988
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400d197b
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], 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