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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802407e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
cmp qword [rcx + 0x128], rsi
jne 0x18001b8fe
cmp byte [rcx + 0x15], sil
jne 0x18001b8fe
mov ebp, 1
mov dword [rsp + 0x38], ebp
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, bpl
jb 0x18001b581
cmp al, 5
jne 0x18001b5b9
cmp byte [rbx + 0x11], sil
jne 0x18001b599
mov rcx, qword [rbx + 0x48]
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x18001b5a3
cmp byte [rbx + 0x16], 5
je 0x18001b5b9
mov byte [rbx + 0x16], bpl
cmp edi, 5
jne 0x18001b5b9
mov rcx, qword [rbx + 0xf0]
call qword [rbx + 0xe8]
test eax, eax
jne 0x18001b572
test edi, edi
jne 0x18001b988
cmp byte [rbx + 0x16], bpl
ja 0x18001b5e2
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18001b2d0
mov edi, eax
test eax, eax
jne 0x18001b988
mov ebp, dword [rsp + 0x38]
test ebp, ebp
je 0x18001b7ae
cmp byte [rbx + 0x12], sil
je 0x18001b602
mov rcx, rbx
mov edi, 0x308
call fcn.180018590
jmp 0x18001b99a
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, 4
jb 0x18001b610
cmp al, 5
jne 0x18001b631
cmp byte [rbx + 0x11], sil
jne 0x18001b62b
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x18001b631
mov byte [rbx + 0x16], 4
jmp 0x18001b639
test edi, edi
jne 0x18001b988
mov rax, qword [rbx + 0x50]
cmp qword [rax], rsi
jne 0x18001b6f9
cmp byte [rbx + 9], 2
je 0x18001b6f9
mov rbp, qword [rbx]
lea r9, [rsp + 0x30]
mov rdx, qword [rbx + 0xe0]
xor r8d, r8d
mov rcx, rbp
call qword [rbp + 0x38]
mov edi, eax
test eax, eax
jne 0x18001b6f9
cmp dword [rsp + 0x30], esi
je 0x18001b6f9
mov r8, qword [rbx + 0x50]
lea rax, [rsp + 0x38]
mov rdx, qword [rbx + 0xe0]
mov r9d, 0x802
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], esi
call qword [rbp + 0x28]
mov edi, eax
test eax, eax
jne 0x18001b6f9
test byte [rsp + 0x38], 1
je 0x18001b6f9
lea rax, [0x18020e2a4]
mov qword [rsp + 0x78], r14
mov edi, recv
mov qword [rsp + 0x20], rax
mov ecx, edi
lea r8, str.cannot_open_file
mov r9d, 0xf040
lea rdx, str._s_at_line__d_of___.10s_
call fcn.180009b30
mov r14, qword [rbx + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x18001b6f4
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [r14], rsi
mov r14, qword [rsp + 0x78]
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x18001b745
cmp byte [rbx + 0xb], sil
jne 0x18001b719
mov edx, 2
call qword [rax + 0x28]
mov edi, eax
test eax, eax
jne 0x18001b729
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test edi, edi
jne 0x18001b77a
mov edx, esi
mov rcx, rbx
cmp byte [rbx + 0x10], dl
sete dl
call fcn.180019310
mov edi, eax
mov byte [rbx + 0x15], sil
jmp 0x18001b776
cmp byte [rbx + 8], sil
jne 0x18001b776
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x18001b76f
cmp byte [rbx + 0x11], sil
jne 0x18001b765
mov edx, 1
call qword [rax + 0x40]
cmp byte [rbx + 0x16], 5
je 0x18001b76f
mov byte [rbx + 0x16], 1
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
test edi, edi
je 0x18001b7ae
movzx eax, dil
cmp eax, 0xd
je 0x18001b78c
cmp eax, 0xa
jne 0x18001b988
lea rax, [0x18001be70]
mov dword [rbx + 0x30], edi
mov rcx, rbx
mov qword [rbx + 0x110], rax
mov byte [rbx + 0x15], 6
call fcn.180018590
jmp 0x18001b99a
cmp byte [rbx + 0x10], sil
jne 0x18001b828
cmp byte [rbx + 0x1c], sil
je 0x18001b828
mov rcx, qword [rbx + 0x48]
lea rdx, [rsp + 0x38]
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 0x18001b7ec
cmp eax, 0x20a
jne 0x18001b988
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rbx + 0x88]
cmp rax, qword [rsp + 0x38]
jne 0x18001b808
mov rax, qword [rbx + 0x90]
cmp rax, qword [rsp + 0x40]
je 0x18001b828
mov rcx, rbx
call fcn.180018340
cmp byte [rbx + 0x1b], sil
je 0x18001b828
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov edi, esi
cmp byte [rbx + 0x10], sil
jne 0x18001b8fe
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
mov rdx, qword [rbx + 0x130]
xor r8d, r8d
mov rcx, rax
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x18001b8fe
cmp dword [rsp + 0x30], esi
je 0x18001b8f4
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x18001b87b
cmp word [rax + 0x3c], si
jl 0x18001b87b
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x18001b8b4
jmp 0x18001b87d
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x18001b8b4
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x18001b8fe
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rsp + 0x38]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xbc]
jbe 0x18001b8c2
mov dword [rbx + 0xbc], eax
test eax, eax
jne 0x18001b8e6
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x18001b8e2
mov rdx, qword [rbx + 0x130]
xor r8d, r8d
call rax
mov edi, eax
jmp 0x18001b8fe
mov edi, esi
jmp 0x18001b8fe
xor edx, edx
mov rcx, rbx
call fcn.18001d4d0
mov edi, eax
jmp 0x18001b8fe
cmp byte [rbx + 9], 5
jne 0x18001b8fe
mov byte [rbx + 9], sil
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x18001b966
mov dword [rsp + 0x38], esi
call fcn.1800200b0
mov rbp, qword [rbx + 0x128]
nop word [rax + rax]
inc esi
lea rdx, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov rcx, rbp
call fcn.18001fd80
mov edi, eax
cmp eax, 0xffffffff
je 0x18001b920
test eax, eax
jne 0x18001b946
cmp dword [rsp + 0x38], eax
je 0x18001b966
mov rcx, rbx
call fcn.180018340
cmp byte [rbx + 0x1b], 0
je 0x18001b966
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rbx + 0x10], 0
jne 0x18001b984
cmp byte [rbx + 0x15], 0
jne 0x18001b984
test edi, edi
jne 0x18001b988
lea rdx, [rbx + 0x20]
mov rcx, rbx
call fcn.180019970
mov edi, eax
test edi, edi
je 0x18001b992
mov rcx, rbx
call fcn.180018590
jmp 0x18001b99a
mov byte [rbx + 0x15], 1
mov byte [rbx + 0x1c], 1
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18015c7e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret