Function at 0x14015b960
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
lea rcx, reloc.WS2_32.dll_accept
call fcn.14027ddb0
mov rdi, qword [0x140413728]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14015b9e6
cmp byte [rdi + 1], 0
je 0x14015b9e6
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14015b9e6
mov rcx, rbx
call fcn.140179340
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14015b9c0
call fcn.14015d000
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14015b9cf
call fcn.14015d000
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14015b9de
call fcn.14015d000
nop
mov rcx, rbx
call fcn.14015d000
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3da0]
test rcx, rcx
je 0x14015ba0c
mov qword [rdi + 0x3d98], r12
call fcn.14015d000
mov qword [rdi + 0x3da0], r12
cmp byte [rdi], r12b
je 0x14015c007
cmp byte [rdi + 0x5f18], r12b
je 0x14015ba7d
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14015ba7d
mov rax, qword [0x140413728]
mov dword [rax + 0x5f1c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140170af0
mov rsi, rax
lea rdx, [0x140368554]
mov rcx, rbx
call fcn.1401588e0
mov rbx, rax
test rax, rax
je 0x14015ba7d
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 rbx, qword [rdi + 0x5f68]
movsxd rsi, dword [rdi + 0x5f60]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14015bab2
cmp dword [rbx + 4], 6
jne 0x14015baa9
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x14015ba97
mov ebx, r12d
cmp dword [rdi + 0x3fd8], r12d
jle 0x14015bafe
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x3fe0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14015baf0
mov rcx, rsi
call fcn.14015c4b0
mov rcx, rsi
call fcn.14015d000
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x3fd8]
jl 0x14015bad0
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x14015bb1d
mov qword [rdi + 0x3fd8], r12
call fcn.14015d000
mov qword [rdi + 0x3fe0], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x14015bb3c
mov qword [rdi + 0x3fe8], r12
call fcn.14015d000
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x14015bb5b
mov qword [rdi + 0x3ff8], r12
call fcn.14015d000
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4038], r12
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x14015bb81
mov qword [rdi + 0x4008], r12
call fcn.14015d000
mov qword [rdi + 0x4010], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x14015bba0
mov qword [rdi + 0x4018], r12
call fcn.14015d000
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x4b08], r12
mov qword [rdi + 0x4048], r12
mov qword [rdi + 0x4040], r12
mov qword [rdi + 0x40d0], r12
mov qword [rdi + 0x40b8], r12
mov qword [rdi + 0x4050], r12
lea rcx, [rdi + 0x4818]
call fcn.140156730
mov rcx, qword [rdi + 0x4a68]
test rcx, rcx
je 0x14015bbf5
mov qword [rdi + 0x4a60], r12
call fcn.14015d000
mov qword [rdi + 0x4a68], r12
mov rcx, qword [rdi + 0x4a78]
test rcx, rcx
je 0x14015bc14
mov qword [rdi + 0x4a70], r12
call fcn.14015d000
mov qword [rdi + 0x4a78], r12
mov rcx, qword [rdi + 0x4a88]
test rcx, rcx
je 0x14015bc33
mov qword [rdi + 0x4a80], r12
call fcn.14015d000
mov qword [rdi + 0x4a88], r12
mov rcx, qword [rdi + 0x4ac8]
test rcx, rcx
je 0x14015bc52
mov qword [rdi + 0x4ac0], r12
call fcn.14015d000
mov qword [rdi + 0x4ac8], r12
mov rcx, qword [rdi + 0x4ad8]
test rcx, rcx
je 0x14015bc71
mov qword [rdi + 0x4ad0], r12
call fcn.14015d000
mov qword [rdi + 0x4ad8], r12
mov rcx, qword [rdi + 0x4ae8]
test rcx, rcx
je 0x14015bc90
mov qword [rdi + 0x4ae0], r12
call fcn.14015d000
mov qword [rdi + 0x4ae8], r12
mov ebp, r12d
cmp dword [rdi + 0x4af8], r12d
jle 0x14015bd1a
mov r14, r12
nop
mov rax, qword [rdi + 0x4b00]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14015bd0c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14015bcc9
mov rcx, rsi
call fcn.140156550
mov rcx, rsi
call fcn.14015d000
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14015bce3
mov rcx, rsi
call fcn.140156550
mov rcx, rsi
call fcn.14015d000
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14015bcf5
call fcn.14015d000
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14015bd04
call fcn.14015d000
nop
mov rcx, rbx
call fcn.14015d000
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4af8]
jl 0x14015bca0
mov rcx, qword [rdi + 0x4b00]
test rcx, rcx
je 0x14015bd39
mov qword [rdi + 0x4af8], r12
call fcn.14015d000
mov qword [rdi + 0x4b00], r12
lea rcx, [rdi + 0x4e48]
call fcn.140171c50
mov rcx, qword [rdi + 0x4e78]
test rcx, rcx
je 0x14015bd64
mov qword [rdi + 0x4e70], r12
call fcn.14015d000
mov qword [rdi + 0x4e78], r12
mov rcx, qword [rdi + 0x4e88]
test rcx, rcx
je 0x14015bd83
mov qword [rdi + 0x4e80], r12
call fcn.14015d000
mov qword [rdi + 0x4e88], r12
mov ebx, r12d
cmp dword [rdi + 0x4dc8], r12d
jle 0x14015bdc5
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4dd0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14015bdb7
call fcn.14015d000
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4dc8]
jl 0x14015bda0
mov rcx, qword [rdi + 0x4dd0]
test rcx, rcx
je 0x14015bde4
mov qword [rdi + 0x4dc8], r12
call fcn.14015d000
mov qword [rdi + 0x4dd0], r12
lea rcx, [rdi + 0x4df8]
call fcn.140171d80
mov esi, r12d
cmp dword [rdi + 0x4de8], r12d
jle 0x14015be32
mov rbp, r12
nop
mov rbx, qword [rdi + 0x4df0]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140178890
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x14015be24
call fcn.14015d000
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4de8]
jl 0x14015be00
mov rcx, qword [rdi + 0x4df0]
test rcx, rcx
je 0x14015be51
mov qword [rdi + 0x4de8], r12
call fcn.14015d000
mov qword [rdi + 0x4df0], r12
mov rcx, qword [rdi + 0x4e38]
test rcx, rcx
je 0x14015be70
mov qword [rdi + 0x4e30], r12
call fcn.14015d000
mov qword [rdi + 0x4e38], r12
mov rcx, qword [rdi + 0x5e78]
test rcx, rcx
je 0x14015be8f
mov qword [rdi + 0x5e70], r12
call fcn.14015d000
mov qword [rdi + 0x5e78], r12
mov rcx, qword [rdi + 0x5e88]
test rcx, rcx
je 0x14015beae
mov qword [rdi + 0x5e80], r12
call fcn.14015d000
mov qword [rdi + 0x5e88], r12
mov rcx, qword [rdi + 0x4ed8]
test rcx, rcx
je 0x14015becd
mov qword [rdi + 0x4ed0], r12
call fcn.14015d000
mov qword [rdi + 0x4ed8], r12
mov rcx, qword [rdi + 0x4ee8]
test rcx, rcx
je 0x14015beec
mov qword [rdi + 0x4ee0], r12
call fcn.14015d000
mov qword [rdi + 0x4ee8], r12
mov rcx, qword [rdi + 0x4ef8]
test rcx, rcx
je 0x14015bf0b
mov qword [rdi + 0x4ef0], r12
call fcn.14015d000
mov qword [rdi + 0x4ef8], r12
mov dword [rdi + 0x5d48], r12d
mov rcx, qword [rdi + 0x5d58]
test rcx, rcx
je 0x14015bf31
mov qword [rdi + 0x5d50], r12
call fcn.14015d000
mov qword [rdi + 0x5d58], r12
mov rcx, qword [rdi + 0x5f48]
test rcx, rcx
je 0x14015bf50
mov qword [rdi + 0x5f40], r12
call fcn.14015d000
mov qword [rdi + 0x5f48], r12
mov rcx, qword [rdi + 0x5f38]
test rcx, rcx
je 0x14015bf6f
mov qword [rdi + 0x5f30], r12
call fcn.14015d000
mov qword [rdi + 0x5f38], r12
cmp qword [rdi + 0x5fc0], 0
je 0x14015bfa0
mov rbx, qword [rdi + 0x5fc0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14015bf99
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5fc0], r12
mov rcx, qword [rdi + 0x5fd0]
test rcx, rcx
je 0x14015bfbf
mov qword [rdi + 0x5fc8], r12
call fcn.14015d000
mov qword [rdi + 0x5fd0], r12
mov rcx, qword [rdi + 0x6008]
test rcx, rcx
je 0x14015bfde
mov qword [rdi + 0x6000], r12
call fcn.14015d000
mov qword [rdi + 0x6008], r12
mov rcx, qword [rdi + 0x6018]
test rcx, rcx
je 0x14015bffd
mov qword [rdi + 0x6010], r12
call fcn.14015d000
mov qword [rdi + 0x6018], r12
mov dword [rdi + 0x6020], 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