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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov r12d, ebp
mov esi, ebp
mov dword [rsp + 0x30], ebp
test rdx, rdx
je 0x14002bd2e
test r8, r8
je 0x14002bd2e
mov rax, qword [rcx + 0x70]
cmp qword [rax + 0x4f8], rsi
je 0x14002bd2e
cmp dword [rcx + 0x1e0], ebp
mov qword [r11 + 8], rbx
mov dword [r9], ebp
mov qword [r11 - 0x38], r13
jle 0x14002baf2
mov rbx, rbp
mov r13, rdx
nop dword [rax]
mov rax, qword [rdi + 0x70]
xor r8d, r8d
mov rcx, qword [rax + 0x4f8]
mov rax, qword [rdi + 0x1b0]
mov r9, qword [rcx]
mov edx, dword [rax + rbx]
call qword [r9 + 0x48]
mov r11, qword [rdi + 0x70]
mov edx, esi
mov rcx, qword [r11 + 0x4f8]
mov rax, qword [rcx]
call qword [rax + 0x98]
lea r8, [rsp + 0x30]
mov rcx, rdi
mov edx, eax
call fcn.14002b760
mov r11d, dword [rsp + 0x30]
inc esi
mov dword [r13], r11d
add r13, 4
add rbx, 0x34
add r12d, r11d
cmp esi, dword [rdi + 0x1e0]
jl 0x14002ba90
cmp dword [rdi + 0x1e4], ebp
mov r13d, ebp
movsxd rax, esi
jle 0x14002bc8b
mov r15, rbp
lea r14, [r14 + rax*4]
nop dword [rax + rax]
mov rax, qword [rdi + 0x1f0]
mov r8d, 1
movsxd rbx, dword [rax + 0x54]
mov rax, qword [rdi + 0x70]
mov rcx, qword [rax + 0x4f8]
mov rax, qword [rdi + 0x1d0]
mov r9, qword [rcx]
mov edx, dword [r15 + rax]
call qword [r9 + 0x48]
mov r11, qword [rdi + 0x1f0]
movsxd rax, dword [r11 + 0x54]
mov rcx, qword [r11 + 0x30]
mov rdx, qword [r11 + 0x40]
lea r8, [rax + rax*4]
mov rax, qword [r11 + 0x10]
shl rcx, 3
shl rax, 3
sub ecx, eax
sub ecx, dword [r11 + 0x3c]
mov dword [rdx + r8*8 + 0x10], reloc.WS2_32.dll_ntohs
mov byte [rdx + r8*8 + 0xd], 3
mov byte [rdx + r8*8 + 0xc], bpl
add ecx, 0x20
sar ecx, 3
movsxd rax, ecx
add rax, qword [r11]
mov dword [rdx + r8*8 + 0x24], ecx
mov dword [rdx + r8*8 + 8], ebp
mov qword [rdx + r8*8], rax
mov rax, qword [rdi + 0x70]
mov edx, 1
mov rcx, qword [rax + 0x4f8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rdi + 0x1f0]
movsxd rcx, r13d
imul rcx, rcx, 0x38
add rcx, qword [rdi + 0x1d0]
mov r8, rax
add rdx, 0x10
call fcn.14003dbc0
mov r11, qword [rdi + 0x1f0]
movsxd rax, dword [r11 + 0x54]
mov rdx, qword [r11 + 0x40]
mov rcx, qword [r11 + 0x30]
lea r8, [rax + rax*4]
mov rax, qword [r11 + 0x10]
shl rcx, 3
shl rax, 3
sub ecx, eax
sub ecx, dword [r11 + 0x3c]
add ecx, 0x20
sar ecx, 3
sub ecx, dword [rdx + r8*8 + 0x24]
mov dword [rdx + r8*8 + 8], ecx
inc dword [r11 + 0x54]
movsxd rax, dword [rdi + 0x204]
mov r8d, dword [rdi + 0x200]
mov r9, rax
lea rdx, [rbx + rbx*4]
add r9, qword [rdi + 0x1f8]
sub r8d, eax
mov rax, qword [rdi + 0x1f0]
mov rcx, qword [rax + 0x40]
lea rax, [rsp + 0x30]
lea rcx, [rcx + rdx*8]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14003e250
test eax, eax
jne 0x14002bd13
mov eax, dword [rsp + 0x30]
inc r13d
add r14, 4
mov dword [r14 - 4], eax
add dword [rdi + 0x204], eax
add r15, 0x38
add r12d, eax
inc esi
cmp r13d, dword [rdi + 0x1e4]
jl 0x14002bb10
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
mov rax, qword [rdi + 0x70]
mov rdx, rdi
mov rcx, qword [rax + 0x4f8]
mov rax, qword [rcx]
call qword [rax + 0x50]
cmp dword [rdi + 0x1e8], ebp
movsxd rax, esi
jle 0x14002bd03
mov rbx, rbp
lea r13, [r14 + rax*4]
mov rax, qword [rdi + 0x70]
mov r8d, 2
mov rcx, qword [rax + 0x4f8]
mov rax, qword [rdi + 0x1c0]
mov r9, qword [rcx]
mov edx, dword [rbx + rax + 4]
call qword [r9 + 0x48]
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rdi
call fcn.14002b8d0
mov r11d, dword [rsp + 0x30]
inc ebp
mov dword [r13], r11d
add r13, 4
add rbx, 0x10
add r12d, r11d
inc esi
cmp ebp, dword [rdi + 0x1e8]
jl 0x14002bcb1
mov rax, qword [rsp + 0x98]
mov dword [r15], esi
mov dword [rax], r12d
xor eax, eax
mov rbx, qword [rsp + 0x80]
mov r13, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 4
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret