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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov eax, dword [rdx + 0x14]
xor edi, edi
mov word [rsp + 0x80], di
mov rsi, r9
mov r15, rcx
mov rcx, qword [rdx + 0x20]
mov r9, r8
mov r10d, edi
test eax, eax
jle 0x140160273
mov r8d, dword [rsi + 0x44]
add rcx, 0x30
mov edx, eax
nop word [rax + rax]
cmp dword [rcx - 0x14], r8d
jne 0x140160269
test qword [rcx], r9
jne 0x140160269
movzx eax, word [rcx - 0x1c]
test eax, 0xfffff7ff
je 0x140160269
inc r10d
add rcx, 0x40
sub rdx, 1
jne 0x140160250
mov rax, qword [rsp + 0xa0]
mov ebp, edi
mov dword [rsp + 0x20], edi
test rax, rax
je 0x1401602c6
movsxd rbx, dword [rax]
mov r9d, edi
test ebx, ebx
jle 0x1401602bc
mov r8, rdi
lea rcx, [rax + 0x18]
mov rdx, qword [rcx - 0x10]
cmp byte [rdx], 0xa4
jne 0x1401602bc
mov eax, dword [rsi + 0x44]
cmp dword [rdx + 0x2c], eax
jne 0x1401602bc
test byte [rcx], 2
jne 0x1401602bc
inc r9d
inc r8
add rcx, 0x20
cmp r8, rbx
jl 0x140160297
cmp r9d, ebx
cmove ebp, ebx
mov dword [rsp + 0x20], ebp
mov rcx, qword [r15]
movsxd rsi, r10d
movsxd r13, ebp
lea rbx, [rsi + 7]
lea rbx, [rsi + rbx*4]
lea r14, [r13*8]
lea rbx, [r14 + rbx*4]
test rcx, rcx
je 0x1401602f5
mov rdx, rbx
call fcn.1401997c0
mov r12, rax
jmp 0x140160350
lea rax, [rbx - 1]
cmp rax, 0x7ffffefe
ja 0x14016034d
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x140160340
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x14016031b
call qword [0x1403dd1a0]
lea rdx, [rsp + 0x28]
mov ecx, ebx
call fcn.14017c280
mov rcx, qword [0x1403efcd8]
test rcx, rcx
je 0x140160339
call qword [0x1403dd1b0]
mov r12, qword [rsp + 0x28]
jmp 0x140160350
mov ecx, ebx
call qword [0x1403dd140]
mov r12, rax
jmp 0x140160350
mov r12, rdi
test r12, r12
je 0x140160568
mov r8, rbx
xor edx, edx
mov rcx, r12
call fcn.14028e7e0
mov rcx, qword [rsp + 0x88]
lea r9, [r12 + 0x70]
mov dword [r12 + 0x10], ebp
lea rax, [rsi + rsi*2]
mov qword [r12 + 8], r9
lea rbx, [r9 + rax*4]
mov qword [r12 + 0x18], rbx
lea rax, [r14 + rbx]
mov qword [r12 + 0x20], rax
mov r10d, edi
mov qword [r12 + 0x60], rcx
mov r11d, edi
mov qword [r12 + 0x68], r15
mov r8, qword [rcx + 0x20]
mov qword [rsp + 0x28], rbx
cmp dword [rcx + 0x14], edi
jle 0x14016050e
mov rsi, qword [rsp + 0x98]
mov r15d, 0x180
mov r13d, dword [rsp + 0x80]
add r9, 4
mov r14, qword [rsp + 0x90]
mov edi, 0x20
mov ebp, 0x1fff
lea ebx, [r15 - 0x80]
nop word [rax + rax]
mov eax, dword [rsi + 0x44]
cmp dword [r8 + 0x1c], eax
jne 0x1401604e9
test qword [r8 + 0x30], r14
jne 0x1401604e9
movzx eax, word [r8 + 0x14]
test eax, 0xfffff7ff
je 0x1401604e9
test byte [rsi + 0x3c], 8
je 0x14016042a
mov rax, qword [r8]
test byte [rax + 4], 1
je 0x1401604e9
mov eax, dword [r8 + 0x28]
mov dword [r9 - 4], eax
mov dword [r9 + 4], r11d
movzx edx, word [r8 + 0x14]
and dx, bp
cmp dx, 1
jne 0x14016045f
mov edx, 2
test r15w, dx
je 0x14016046f
cmp dx, bx
setne al
add al, 0x47
mov byte [r9], al
jmp 0x1401604e2
cmp dx, 0x40
jne 0x140160449
movzx eax, byte [r8 + 0x17]
mov byte [r9], al
jmp 0x1401604e2
mov byte [r9], dl
test dl, 0x3c
je 0x1401604e2
mov rax, qword [r8]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx]
cmp al, 0xad
jne 0x140160489
movzx eax, byte [rcx + 2]
cmp al, 0xae
jne 0x140160495
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax]
jmp 0x1401604a3
cmp al, 0x88
jne 0x1401604da
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x1401604da
cmp r10d, 0x10
jge 0x1401604b6
movzx r13d, r13w
bts r13d, r10d
mov rcx, qword [rsp + 0x88]
cmp dx, 0x10
jne 0x1401604ca
mov byte [r9], 8
jmp 0x1401604e2
movzx eax, byte [r9]
cmp dx, 4
cmove eax, edi
mov byte [r9], al
jmp 0x1401604e2
mov rcx, qword [rsp + 0x88]
inc r10d
add r9, 0xc
inc r11d
add r8, 0x40
cmp r11d, dword [rcx + 0x14]
jl 0x1401603f0
mov rbx, qword [rsp + 0x28]
xor edi, edi
mov dword [rsp + 0x80], r13d
movsxd r13, dword [rsp + 0x20]
mov dword [r12], r10d
test r13, r13
jle 0x140160551
mov rdx, qword [rsp + 0xa0]
add rdx, 0x18
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx - 0x10]
lea rdx, [rdx + 0x20]
movsx ecx, word [rax + 0x30]
mov dword [rbx + rdi*8], ecx
movzx eax, byte [rdx - 0x20]
and al, 1
mov byte [rbx + rdi*8 + 4], al
inc rdi
cmp rdi, r13
jl 0x140160530
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x80]
mov word [rax], cx
mov rax, r12
jmp 0x140160579
lea rdx, str.out_of_memory
mov rcx, r15
call fcn.14019c240
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret