Function at 0x1800296a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rcx
cmp qword [rcx + 0x70], 0
je 0x180029946
cmp byte [rcx + 0x79], 0
je 0x180029946
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.WS2_32.dll_htonl]
cmp eax, 0xffffffff
jne 0x1800296fe
xor al, al
jmp 0x180029948
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x80]
call fcn.1800291b4
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.180029390
mov rdi, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18002975f
cmp qword [rax], 0
jne 0x180029739
call fcn.1800d15f4
mov rax, qword [rdi]
cmp qword [rax + 0x20], 0x10
jb 0x180029749
mov rcx, qword [rax + 8]
jmp 0x18002974d
lea rcx, [rax + 8]
mov rax, qword [rax + 0x18]
add rcx, rax
cmp qword [rdi + 8], rcx
jb 0x18002975f
call fcn.1800d15f4
mov rsi, qword [rdi + 8]
mov rbp, qword [rsp + 0x98]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.180029390
mov rdi, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x1800297b7
cmp qword [rax], 0
jne 0x180029791
call fcn.1800d15f4
mov rax, qword [rdi]
cmp qword [rax + 0x20], 0x10
jb 0x1800297a1
mov rcx, qword [rax + 8]
jmp 0x1800297a5
lea rcx, [rax + 8]
mov rax, qword [rax + 0x18]
add rcx, rax
cmp qword [rdi + 8], rcx
jb 0x1800297b7
call fcn.1800d15f4
mov rcx, qword [rbx + 0x70]
mov rax, qword [rcx]
lea r9, [rsi + rbp]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r8, qword [rdi + 8]
lea rdx, [rbx + 0x7c]
call qword [rax + 0x30]
test eax, eax
je 0x1800297e6
sub eax, 1
jne 0x1800298d1
jmp 0x1800297ea
mov byte [rbx + 0x79], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call fcn.180029390
mov rdi, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x180029836
cmp qword [rax], 0
jne 0x180029810
call fcn.1800d15f4
mov rax, qword [rdi]
cmp qword [rax + 0x20], 0x10
jb 0x180029820
mov rcx, qword [rax + 8]
jmp 0x180029824
lea rcx, [rax + 8]
mov rax, qword [rax + 0x18]
add rcx, rax
cmp qword [rdi + 8], rcx
jb 0x180029836
call fcn.1800d15f4
mov rsi, qword [rsp + 0x30]
sub rsi, qword [rdi + 8]
je 0x1800298aa
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.180029390
mov rdi, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18002988d
cmp qword [rax], 0
jne 0x180029867
call fcn.1800d15f4
mov rax, qword [rdi]
cmp qword [rax + 0x20], 0x10
jb 0x180029877
mov rcx, qword [rax + 8]
jmp 0x18002987b
lea rcx, [rax + 8]
mov rax, qword [rax + 0x18]
add rcx, rax
cmp qword [rdi + 8], rcx
jb 0x18002988d
call fcn.1800d15f4
mov r9, qword [rbx + 0x88]
mov r8, rsi
mov edx, 1
mov rcx, qword [rdi + 8]
call fcn.1800d2584
cmp rsi, rax
jne 0x18002990e
cmp byte [rbx + 0x79], 0
je 0x18002992a
test rsi, rsi
jne 0x180029713
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rsp + 0x80]
call fcn.180029294
jmp 0x180029713
sub eax, 2
je 0x1800298f2
cmp qword [rsp + 0xa0], 0x10
jb 0x1800298ee
mov rcx, qword [rsp + 0x88]
call fcn.1800d1290
xor al, al
jmp 0x180029948
cmp qword [rsp + 0xa0], 0x10
jb 0x18002990a
mov rcx, qword [rsp + 0x88]
call fcn.1800d1290
mov al, 1
jmp 0x180029948
cmp qword [rsp + 0xa0], 0x10
jb 0x180029926
mov rcx, qword [rsp + 0x88]
call fcn.1800d1290
xor al, al
jmp 0x180029948
cmp qword [rsp + 0xa0], 0x10
jb 0x180029942
mov rcx, qword [rsp + 0x88]
call fcn.1800d1290
mov al, 1
jmp 0x180029948
mov al, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800d12b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret