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

Disassembly:
jmp 0x14018d190
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
xor eax, eax
mov word [rbp + 4], ax
cmp qword [rbp + 0x120], 0
je 0x14018d1ce
cmp qword [rbp + 0x128], 0
jne 0x14018d1d5
xor eax, eax
jmp 0x14018d7f5
mov rax, qword [rbp + 0x120]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx]
mov dword [rax], ecx
movabs rdx, 0x7fffffffffffffff
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + 0x18]
call fcn.140195160
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 4], rax
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + 0x28]
mov dword [rax + 8], ecx
movabs rdx, 0x7fffffffffffffff
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + 0x20]
call fcn.140195160
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0xc], rax
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + 0xc4]
mov dword [rax + 0x10], ecx
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x14], 0
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x18], 0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + 0x54]
mov dword [rax + 0x1c], ecx
mov rax, qword [rbp + 0x128]
movzx eax, byte [rax + 0x5a]
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 0x20], eax
mov rax, qword [rbp + 0x128]
movsx eax, word [rax + 0x58]
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 0x24], eax
mov edx, 0x7fff
mov rax, qword [rbp + 0x128]
mov ecx, dword [rax + 0x30]
call fcn.1401951e0
mov rcx, qword [rbp + 0x28]
mov word [rcx + 0x28], ax
mov rax, qword [rbp + 0x128]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x2a], rax
mov rax, qword [rbp + 0x128]
movsxd rax, dword [rax + 0x40]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x32], rax
mov rax, qword [rbp + 0x128]
cmp dword [rax + 0x44], 0x7fff
jge 0x14018d347
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x44]
mov dword [rbp + 0xf4], eax
jmp 0x14018d351
mov dword [rbp + 0xf4], 0x7fff
movsxd rax, dword [rbp + 0xf4]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x3a], rax
mov rax, qword [rbp + 0x128]
cmp dword [rax + 0x48], 0x7fff
jge 0x14018d382
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x48]
mov dword [rbp + 0xf4], eax
jmp 0x14018d38c
mov dword [rbp + 0xf4], 0x7fff
movsxd rax, dword [rbp + 0xf4]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x42], rax
movzx eax, word [rbp + 4]
add eax, 0x18
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, __WSAFDIsSet
mov rcx, qword [rbp + 0x28]
mov word [rcx + 0x32], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x2c]
mov word [rax + 0x34], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x5c]
mov word [rax + 0x36], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x62]
mov word [rax + 0x38], cx
movzx eax, word [rbp + 4]
add eax, 2
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x54]
and eax, 0xff80020
test eax, eax
je 0x14018d440
mov dword [rbp + 0xf4], 0
jmp 0x14018d454
mov rax, qword [rbp + 0x128]
movsx eax, word [rax + 0x9c]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x28]
movzx ecx, word [rbp + 0xf4]
mov word [rax + 0x38], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0xc0]
mov word [rax + 0x3a], cx
mov edx, 0x7fff
mov rax, qword [rbp + 0x128]
mov ecx, dword [rax + 0x34]
call fcn.1401951e0
mov rcx, qword [rbp + 0x28]
mov word [rcx + 0x3c], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0xa4]
mov word [rax + 0x3e], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x9e]
mov word [rax + 0x40], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0xa0]
mov word [rax + 0x42], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0xa2]
mov word [rax + 0x44], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x5e]
mov word [rax + 0x46], cx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0x60]
mov word [rax + 0x48], cx
mov rax, qword [rbp + 0x128]
add rax, 0xa8
mov rcx, qword [rbp + 0x28]
add rcx, 0x4a
mov r8d, 0x18
mov rdx, rax
call fcn.14016526c
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xc8]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x62], al
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xca]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x63], al
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xcc]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x64], al
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xce]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x65], al
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xd0]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x66], al
mov dx, 0xff
mov rax, qword [rbp + 0x128]
movzx ecx, word [rax + 0xd2]
call fcn.1401950e0
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x67], al
mov rax, qword [rbp + 0x128]
movzx eax, byte [rax + 0xe0]
mov rcx, qword [rbp + 0x28]
mov word [rcx + 0x68], ax
mov rax, qword [rbp + 0x128]
movsx eax, word [rax + 0x211a]
test eax, eax
jle 0x14018d61e
mov dword [rbp + 0xf4], 0
jmp 0x14018d628
mov dword [rbp + 0xf4], 1
mov rax, qword [rbp + 0x28]
movzx ecx, word [rbp + 0xf4]
mov word [rax + 0x6a], cx
movzx eax, word [rbp + 4]
add eax, 2
mov word [rbp + 4], ax
mov rax, qword [rbp + 0x28]
add rax, 0x6c
mov qword [rbp + 0xf8], rax
lea rdx, str.char_mmo_char_tobuf
mov rcx, qword [rbp + 0x128]
movzx ecx, word [rcx + 0xea]
call fcn.14016a0af
mov rcx, qword [rbp + 0xf8]
mov rdx, rcx
mov rcx, rax
call fcn.1401636ce
movzx eax, word [rbp + 4]
add eax, 0x10
mov word [rbp + 4], ax
mov rax, qword [rbp + 0x128]
cmp qword [rax + 0x2120], 0
je 0x14018d6c4
xor ecx, ecx
call fcn.1401956c0
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + 0x2120]
sub rcx, rax
mov rax, rcx
mov ecx, 0xffffffff
and rax, rcx
mov dword [rbp + 0xf4], eax
jmp 0x14018d6ce
mov dword [rbp + 0xf4], 0
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0xf4]
mov dword [rax + 0x7c], ecx
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
mov rax, qword [rbp + 0x128]
movsx eax, word [rax + 0xa6]
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 0x80], eax
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
movzx eax, byte [0x1404f49dc]
test eax, eax
jne 0x14018d724
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x84], 0
jmp 0x14018d77e
movzx eax, byte [0x1404f49de]
test eax, eax
je 0x14018d73f
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x84], 1
jmp 0x14018d77e
mov rax, qword [rbp + 0x128]
cmp dword [rax + 0x2130], 0
jge 0x14018d75b
mov dword [rbp + 0xf4], 0
jmp 0x14018d76e
mov rax, qword [rbp + 0x128]
mov eax, dword [rax + 0x2130]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0xf4]
mov dword [rax + 0x84], ecx
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
mov rax, qword [rbp + 0x128]
movsx eax, word [rax + 0x211a]
test eax, eax
jle 0x14018d7a7
mov dword [rbp + 0xf4], 1
jmp 0x14018d7b1
mov dword [rbp + 0xf4], 0
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0xf4]
mov dword [rax + 0x88], ecx
movzx eax, word [rbp + 4]
add eax, 4
mov word [rbp + 4], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
movzx ecx, byte [rcx + 0xe1]
mov byte [rax + 0x8c], cl
movzx eax, word [rbp + 4]
inc eax
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
add eax, 0x6a
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret