Function at 0x1400d0c00
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 0x1400d0d5a
lea rcx, [rdi + 0x50]
cmp byte [rdi + 1], r12b
je 0x1400d0d5a
mov byte [rdx + 0x18], r12b
mov rbx, qword [rdi + 0x50]
lea rcx, [rdi + 0x50]
test rbx, rbx
je 0x1400d0d5a
mov rcx, rbx
call fcn.1400c3b90
mov rcx, rbx
call fcn.1400c3ce0
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400d0cab
mov r14d, r12d
nop dword [rax]
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400d0ca0
mov rcx, rsi
call fcn.1400c4d50
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0c97
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 0x1400d0c70
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400d0cd4
mov qword [rbx + 0x48], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0cca
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 0x1400d0cf9
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0cf3
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 0x1400d0d1a
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0d14
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 0x1400d0d3b
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0d35
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0d4d
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 0x1400d146b
cmp byte [rdi + 0x5b01], r12b
je 0x1400d0ddc
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400d0ddc
mov rsi, qword [0x1402e3670]
mov qword [0x1402e3670], rdi
mov dword [rdi + 0x5b04], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400df240
mov rbp, rax
lea rdx, [0x1402acb78]
mov rcx, rbx
call fcn.1400cbab0
mov rbx, rax
test rax, rax
je 0x1400d0dd5
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 [0x1402e3670], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400ce000
lea rcx, [rdi + 0x3dd0]
call fcn.1400e0590
mov rcx, qword [rdi + 0x3de8]
test rcx, rcx
je 0x1400d0e27
mov qword [rdi + 0x3de0], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0e1a
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 0x1400d0e59
mov qword [rdi + 0x3df0], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0e4c
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 0x1400d0e92
mov qword [rdi + 0x3e00], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0e85
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 0x1400d0ec4
mov qword [rdi + 0x3e10], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0eb7
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 0x1400d0f20
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0f13
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 0x1400d0f52
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0f45
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 0x1400d0f84
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0f77
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 0x1400d0fb6
mov qword [rdi + 0x4008], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0fa9
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 0x1400d0fe8
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d0fdb
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 0x1400d10b6
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4038]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400d10a4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400d1040
mov rcx, rsi
call fcn.1400ca300
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1037
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 0x1400d106d
mov rcx, rsi
call fcn.1400ca300
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1063
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, [0x1400c6f50]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.140171d4c
nop
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d109b
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 0x1400d1000
mov rcx, qword [rdi + 0x4038]
test rcx, rcx
je 0x1400d10e8
mov qword [rdi + 0x4030], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d10db
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.1400dff30
mov rcx, qword [rdi + 0x4330]
test rcx, rcx
je 0x1400d1126
mov qword [rdi + 0x4328], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1119
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 0x1400d1158
mov qword [rdi + 0x4338], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d114b
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 0x1400d11a7
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4288]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400d1199
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1193
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 0x1400d1170
mov rcx, qword [rdi + 0x4288]
test rcx, rcx
je 0x1400d11d9
mov qword [rdi + 0x4280], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d11cc
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.1400e00a0
mov esi, r12d
cmp dword [rdi + 0x42a0], r12d
jle 0x1400d1243
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400c3220
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400d1235
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d122f
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 0x1400d1200
mov rcx, qword [rdi + 0x42a8]
test rcx, rcx
je 0x1400d1275
mov qword [rdi + 0x42a0], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1268
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 0x1400d12a7
mov qword [rdi + 0x42e8], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d129a
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 0x1400d12d9
mov qword [rdi + 0x5ac0], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d12cc
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 0x1400d130b
mov qword [rdi + 0x5ad0], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d12fe
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 0x1400d133d
mov qword [rdi + 0x4360], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1330
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 0x1400d136f
mov qword [rdi + 0x4370], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1362
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 0x1400d13a1
mov qword [rdi + 0x4380], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d1394
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 0x1400d13d3
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d13c6
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 0x1400d1405
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d13f8
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 0x1400d1436
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 0x1400d142f
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 0x1400d1468
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1402e3670]
test rax, rax
je 0x1400d145b
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