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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
je 0x140137b96
mov esi, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.140179810
mov r15, rax
test rax, rax
je 0x140137b8c
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.140021160
mov dword [r15], esi
lea r14, [rbx + 0x60]
mov eax, dword [rbp + 0x18]
lea rsi, [rbx + 0x128]
mov r13, r14
mov rcx, qword [r14]
mov r12, rcx
mov dword [rbx + 0x20], eax
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rcx
cmp qword [rsi], rdi
jne 0x140137c76
mov rsi, qword [rbp + 8]
mov rax, qword [rbp]
test rsi, rsi
mov qword [r14], rax
cmove rsi, rcx
nop dword [rax]
mov rax, qword [r14]
cmp rax, rsi
jge 0x140137b7f
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.140139460
mov edi, eax
test eax, eax
je 0x140137b50
jmp 0x140137d33
test edi, edi
jne 0x140137d33
jmp 0x140137c80
mov eax, 7
jmp 0x140137e26
mov eax, dword [rcx + 0x24]
xor r15d, r15d
mov dword [rcx + 0x20], eax
movzx eax, byte [rcx + 0x10]
mov byte [rcx + 0x17], al
lea rax, [rcx + 0x128]
mov rcx, qword [rax]
test rcx, rcx
je 0x140137c5f
mov eax, dword [rbx + 0x24]
lea rdx, [0x1401380d0]
mov r8, rbx
mov dword [rbx + 0x20], eax
call fcn.1401a8810
mov rcx, qword [rbx + 0x120]
mov esi, eax
call fcn.14017ed50
test rax, rax
je 0x140137c58
test esi, esi
jne 0x140137c58
mov edx, dword [rax + 0x30]
mov rcx, rbx
mov rbp, qword [rax + 0x20]
call fcn.14017c4e0
mov rdi, rax
test rax, rax
je 0x140137c29
cmp qword [rax + 0x38], 1
mov rcx, rax
jne 0x140137c0d
call fcn.14017ef20
jmp 0x140137c29
call fcn.14013f760
mov esi, eax
test eax, eax
jne 0x140137c21
mov rcx, rdi
call qword [rbx + 0x108]
mov rcx, rdi
call fcn.14017df10
mov rax, qword [rbx + 0x70]
test rax, rax
je 0x140137c50
nop dword [rax]
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140137c40
mov rax, rbp
test rbp, rbp
jne 0x140137be1
mov eax, esi
jmp 0x140137e26
lea r14, [rbx + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [r14]
mov r13, r14
mov qword [rsp + 0x30], rax
mov r12, rax
mov qword [r14], rdi
xor eax, eax
nop dword [rax + rax]
cmp rax, r12
jge 0x140137d26
lea rax, [rsp + 0x98]
mov dword [rsp + 0x90], 0
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.14013f870
mov ebp, dword [rsp + 0x90]
mov edi, eax
test ebp, ebp
jne 0x140137cf0
mov eax, dword [rbx + 0xb8]
add rax, qword [rbx + 0x68]
mov rcx, qword [r14]
cmp rax, rcx
jne 0x140137cf0
mov rax, qword [rsp + 0x30]
sub rax, rcx
mov rcx, qword [rbx + 0xc8]
add rcx, 8
cqo
idiv rcx
mov rbp, rax
xor esi, esi
test edi, edi
jne 0x140137d26
mov rax, qword [r14]
cmp esi, ebp
jae 0x140137c80
cmp rax, r12
jge 0x140137d26
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, r13
mov rcx, rbx
call fcn.140139460
inc esi
mov edi, eax
test eax, eax
je 0x140137cf6
mov rbp, qword [rsp + 0x88]
test rbp, rbp
je 0x140137d9b
mov rcx, qword [rbx + 0xc8]
mov eax, dword [rbp + 0x1c]
add rcx, 4
imul rcx, rax
mov qword [rsp + 0x88], rcx
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140137d65
lea rdx, [rbp + 0x24]
call fcn.1401a87a0
mov edi, eax
mov esi, dword [rbp + 0x1c]
test edi, edi
jne 0x140137d9b
nop dword [rax]
cmp esi, dword [rbx + 0x3c]
jae 0x140137d9b
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r15
lea rdx, [rsp + 0x88]
mov rcx, rbx
call fcn.140139460
inc esi
mov edi, eax
test eax, eax
je 0x140137d70
test r15, r15
je 0x140137e1d
cmp dword [r15 + 8], 0
je 0x140137dc2
lea rbx, [r15 + 0x10]
mov esi, 0x3e
mov rcx, qword [rbx]
call fcn.14014ee70
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140137db0
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140137e14
mov rcx, qword [0x1402d5590]
test rcx, rcx
je 0x140137ddd
call qword [0x1402c8de0]
mov rcx, r15
call qword [0x1402c8d98]
dec qword [0x1402d5528]
mov rcx, r15
movsxd rdx, eax
sub qword [0x1402d54e0], rdx
call qword [0x1402c8d88]
mov rcx, qword [0x1402d5590]
test rcx, rcx
je 0x140137e1d
call qword [0x1402c8df0]
jmp 0x140137e1d
mov rcx, r15
call qword [0x1402c8d88]
test edi, edi
jne 0x140137e24
mov qword [r14], r12
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret