Function at 0x1400203a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov rbx, rcx
mov edi, ebp
cmp qword [rcx + 0x120], rdi
jne 0x140020691
cmp byte [rcx + 0x15], dil
jne 0x140020691
mov esi, 1
mov dword [rsp + 0x30], esi
nop word [rax + rax]
movzx eax, byte [rbx + 0x16]
mov edi, ebp
cmp al, sil
jb 0x1400203ff
cmp al, 5
jne 0x140020437
cmp byte [rbx + 0x12], dil
jne 0x140020417
mov rcx, qword [rbx + 0x48]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x140020421
cmp byte [rbx + 0x16], 5
je 0x140020421
mov byte [rbx + 0x16], sil
cmp edi, 5
jne 0x140020437
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x1400203f0
test edi, edi
jne 0x14002058d
cmp byte [rbx + 0x16], sil
ja 0x140020458
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140020180
mov esi, dword [rsp + 0x30]
mov edi, eax
test edi, edi
jne 0x14002058d
test esi, esi
je 0x14002059a
cmp byte [rbx + 0x13], bpl
je 0x140020480
mov rcx, rbx
mov edi, 0x308
call fcn.14001d740
jmp 0x140020732
movzx eax, byte [rbx + 0x16]
mov edi, ebp
cmp al, 4
jb 0x14002048e
cmp al, 5
jne 0x1400204ad
cmp byte [rbx + 0x12], dil
jne 0x1400204a9
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x1400204ad
mov byte [rbx + 0x16], 4
test edi, edi
jne 0x14002058d
mov rax, qword [rbx + 0x50]
cmp qword [rax], rbp
jne 0x140020535
mov rsi, qword [rbx]
lea r9, [rsp + 0x38]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + 0x38]
mov edi, eax
test eax, eax
jne 0x140020535
cmp dword [rsp + 0x38], ebp
je 0x140020535
mov r8, qword [rbx + 0x50]
lea rax, [rsp + 0x30]
mov rdx, qword [rbx + 0xd8]
mov r9d, 0x802
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebp
call qword [rsi + 0x28]
mov edi, eax
test eax, eax
jne 0x140020535
test byte [rsp + 0x30], 1
je 0x140020535
mov ecx, 0xcb92
call fcn.14009dbd0
mov rsi, qword [rbx + 0x50]
mov edi, eax
mov rax, qword [rsi]
test rax, rax
je 0x140020535
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rsi], rbp
mov rax, qword [rbx + 0x50]
cmp qword [rax], rbp
je 0x140020564
mov rcx, rbx
call fcn.14001f120
mov edi, eax
test eax, eax
jne 0x14002057b
mov edx, ebp
mov rcx, rbx
cmp byte [rbx + 0x11], dl
sete dl
call fcn.14001e3a0
mov edi, eax
mov byte [rbx + 0x15], bpl
jmp 0x140020577
cmp byte [rbx + 8], bpl
jne 0x140020577
mov edx, 1
mov rcx, rbx
call fcn.14001cdf0
test edi, edi
je 0x14002059a
mov edx, edi
mov rcx, rbx
call fcn.14001d8b0
test edi, edi
je 0x14002072a
mov rcx, rbx
call fcn.14001d740
jmp 0x140020732
cmp byte [rbx + 0x11], bpl
jne 0x140020687
cmp byte [rbx + 0x1c], bpl
je 0x140020687
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x1400205c9
cmp word [rax + 0x3c], bp
jl 0x1400205c9
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140020601
jmp 0x1400205cb
mov eax, ebp
mov rcx, qword [rbx + 0x48]
cmp qword [rcx], rbp
je 0x140020601
mov qword [rsp + 0x38], rbp
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jne 0x14002058d
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rsp + 0x38]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x14002060f
mov dword [rbx + 0xc0], eax
test eax, eax
je 0x14002063f
mov rcx, qword [rbx + 0x48]
lea rdx, [rsp + 0x40]
mov r9d, 0x18
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
je 0x14002064b
cmp eax, 0x20a
jne 0x140020585
jmp 0x14002064b
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x88]
cmp rax, qword [rsp + 0x40]
jne 0x140020667
mov rax, qword [rbx + 0x90]
cmp rax, qword [rsp + 0x48]
je 0x140020687
mov rcx, rbx
call fcn.14001d590
cmp byte [rbx + 0x1b], bpl
je 0x140020687
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, rbx
call fcn.14001ebb0
mov edi, eax
cmp qword [rbx + 0x120], rbp
je 0x1400206a4
mov rcx, rbx
call fcn.14001eaf0
mov edi, eax
cmp byte [rbx + 0x11], bpl
jne 0x140020585
cmp byte [rbx + 0x15], bpl
jne 0x140020585
test edi, edi
jne 0x14002058d
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x1400206db
cmp word [rax + 0x3c], bp
jl 0x1400206db
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140020717
jmp 0x1400206dd
mov eax, ebp
mov rcx, qword [rbx + 0x48]
cmp qword [rcx], rbp
je 0x140020717
mov qword [rsp + 0x38], rbp
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jne 0x140020585
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rsp + 0x38]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x140020725
mov dword [rbx + 0xc0], eax
mov dword [rbx + 0x20], eax
mov edi, ebp
mov byte [rbx + 0x15], 1
mov byte [rbx + 0x1c], 1
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a02d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret