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

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x58
mov ebp, r9d
mov ebx, r8d
mov r15d, edx
mov rdi, rcx
cmp r8d, 2
jae 0x1400a5a61
xor r8d, r8d
jmp 0x1400a5a98
mov eax, 0xcccccccd
mul dword [rcx + 0x34]
lea eax, [r8 - 2]
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
xor edx, edx
mov r8d, eax
mov eax, dword [0x140236e48]
div dword [rdi + 0x30]
imul r8d, ecx
inc eax
add r8d, 2
cmp r8d, eax
jne 0x1400a5a98
inc r8d
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x50], r14
cmp r8d, ebx
je 0x1400a5c81
mov eax, dword [0x140236e48]
xor edx, edx
div dword [rdi + 0x30]
inc eax
cmp ebx, eax
je 0x1400a5c81
mov rax, qword [rdi + 0x18]
mov rdx, qword [rax + 0x50]
movzx eax, byte [rdx + 0x25]
movzx ecx, byte [rdx + 0x24]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x26]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x27]
shl ecx, 8
or ecx, eax
jne 0x1400a5b04
lea eax, [rcx + 0x65]
jmp 0x1400a5cd4
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x90]
mov edx, ebx
mov rcx, rdi
call fcn.1400a2ea0
test eax, eax
jne 0x1400a5cd4
movzx eax, byte [rsp + 0x90]
cmp al, 1
jne 0x1400a5b57
lea r9, [0x1401e1fe4]
lea rdx, [0x1401e2478]
mov r8d, 0xcd5b
mov ecx, listen
call fcn.140091e50
mov eax, listen
jmp 0x1400a5cd4
cmp al, 2
jne 0x1400a5ba4
test ebp, ebp
jne 0x1400a5cd2
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x38]
mov r9d, ebx
mov rcx, rdi
mov byte [rsp + 0x20], 1
call fcn.1400a7b60
test eax, eax
jne 0x1400a5cd4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a5c85
mov rcx, qword [rcx + 0x68]
call fcn.14009e0e0
jmp 0x1400a5c85
mov rcx, qword [rdi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, ebx
xor r12b, r12b
xor r13d, r13d
call fcn.14009dd70
test eax, eax
jne 0x1400a5cd4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov qword [r14 + 0x50], rax
xor eax, eax
cmp ebx, 1
mov qword [r14 + 0x68], rcx
mov ecx, 0x64
mov qword [r14 + 0x48], rdi
cmove eax, ecx
mov dword [r14 + 0x70], ebx
mov byte [r14 + 5], al
test ebp, ebp
jne 0x1400a5c00
mov r12b, 2
mov r13d, r15d
nop dword [rax]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, r13d
mov rcx, rdi
mov byte [rsp + 0x20], r12b
call fcn.1400a7b60
mov esi, eax
test eax, eax
jne 0x1400a5c74
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400a5c33
mov rcx, qword [rcx + 0x68]
call fcn.14009e0e0
mov eax, dword [rsp + 0x30]
test ebp, ebp
je 0x1400a5c40
cmp eax, r15d
ja 0x1400a5c00
mov r9d, dword [rsp + 0x38]
movzx r8d, byte [rsp + 0x90]
mov rdx, r14
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
call fcn.1400a58b0
mov rcx, qword [r14 + 0x68]
mov esi, eax
call fcn.14009e0e0
test esi, esi
je 0x1400a5c81
mov eax, esi
jmp 0x1400a5cd4
mov rcx, qword [r14 + 0x68]
call fcn.14009e0e0
mov eax, esi
jmp 0x1400a5cd4
test ebp, ebp
jne 0x1400a5cd2
mov eax, dword [0x140236e48]
xor edx, edx
div dword [rdi + 0x30]
lea r8d, [rax + 1]
dec ebx
cmp ebx, r8d
je 0x1400a5c94
cmp ebx, 2
jae 0x1400a5ca4
xor eax, eax
jmp 0x1400a5cc7
mov eax, 0xcccccccd
mul dword [rdi + 0x34]
lea eax, [rbx - 2]
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
imul eax, ecx
add eax, 2
cmp eax, r8d
jne 0x1400a5cc7
inc eax
cmp eax, ebx
je 0x1400a5c94
mov byte [rdi + 0x23], 1
mov dword [rdi + 0x3c], ebx
xor eax, eax
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
add rsp, 0x58
pop r15
pop rdi
pop rbp
pop rbx
ret