Function at 0x18003e300
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
cmp qword [rcx + 0x70], 0
je 0x18003e578
cmp byte [rcx + 0x79], 0
je 0x18003e578
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.WS2_32.dll_htonl]
cmp eax, 0xffffffff
jne 0x18003e35f
xor al, al
jmp 0x18003e57a
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x80]
call fcn.180007c50
nop
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003e3c6
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003e3ac
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003e3c6
call fcn.1800caf8c
mov rdi, qword [rbx + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003e410
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003e3f6
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003e410
call fcn.1800caf8c
mov rbx, qword [rbx + 8]
lea rcx, [rsp + 0x80]
call fcn.180002b50
lea r9, [rdi + rax]
mov rcx, qword [rsi + 0x70]
mov r10, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r8, rbx
lea rdx, [rsi + 0x7c]
call qword [r10 + Ordinal_50]
test eax, eax
je 0x18003e450
sub eax, 1
jne 0x18003e52f
jmp 0x18003e454
mov byte [rsi + 0x79], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003e49a
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003e480
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003e49a
call fcn.1800caf8c
mov rdi, qword [rsp + 0x30]
sub rdi, qword [rbx + 8]
je 0x18003e508
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003e4eb
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003e4d1
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003e4eb
call fcn.1800caf8c
mov r9, qword [rsi + 0x88]
mov r8, rdi
mov edx, 1
mov rcx, qword [rbx + 8]
call fcn.1800cb6c4
cmp rdi, rax
jne 0x18003e556
cmp byte [rsi + 0x79], 0
je 0x18003e567
test rdi, rdi
jne 0x18003e380
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.180008090
jmp 0x18003e380
sub eax, 2
je 0x18003e545
lea rcx, [rsp + 0x80]
call fcn.180002b10
xor al, al
jmp 0x18003e57a
lea rcx, [rsp + 0x80]
call fcn.180002b10
mov al, 1
jmp 0x18003e57a
lea rcx, [rsp + 0x80]
call fcn.180002b10
xor al, al
jmp 0x18003e57a
lea rcx, [rsp + 0x80]
call fcn.180002b10
mov al, 1
jmp 0x18003e57a
mov al, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret