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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
xor esi, esi
mov dword [rax + 8], esi
mov r13d, r9d
mov dword [rax - 0x38], esi
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
mov r15d, esi
mov r12d, esi
test rbx, rbx
je 0x14005bdb3
test rdx, rdx
je 0x14005bdb3
movzx eax, byte [rdx]
mov ecx, eax
add eax, 0xffffffed
xor ecx, 1
mov dword [rsp + 0x44], ecx
cmp eax, 0x81
ja case.0x14005bad1.20
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x5bdf8]
mov ecx, dword [rdx + rax*4 + 0x5bdd4]
add rcx, rdx
jmp rcx
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.14005ba50
inc dword [rdi + 0x70]
mov r9d, r13d
mov rdx, qword [rbp + 0x18]
mov r8d, r14d
mov rcx, rdi
call fcn.14005ba50
mov rcx, rdi
call fcn.140059860
jmp 0x14005bd49
mov rcx, rbx
call fcn.14003fa60
mov rdx, qword [rbp + 0x10]
mov r9d, r13d
xor r9d, 0x10
mov dword [rsp + 0x80], eax
mov r8d, eax
mov rcx, rdi
call fcn.14005b610
inc dword [rdi + 0x70]
mov r9d, r13d
mov rdx, qword [rbp + 0x18]
mov r8d, r14d
mov rcx, rdi
call fcn.14005ba50
mov eax, dword [rsp + 0x80]
mov r8, qword [rbx + 0x30]
not eax
test eax, eax
js 0x14005bb61
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x14005bb61
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rdi
dec eax
mov dword [r8 + 0x64], eax
call fcn.140059860
jmp 0x14005bd49
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.14005b610
jmp 0x14005bd49
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14005b150
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.14005b150
mov r9d, dword [rsp + 0x44]
mov rcx, rdi
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.140054bb0
mov r12d, dword [rsp + 0x40]
jmp 0x14005bd41
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14005b150
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.14005b150
cmp byte [rbp], 0x49
mov r9d, esi
mov r8, qword [rbp + 0x18]
mov rcx, rdi
mov rdx, qword [rbp + 0x10]
setne r9b
mov dword [rsp + 0x38], 0x80
add r9d, 0x4e
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.140054bb0
mov r12d, dword [rsp + 0x40]
jmp 0x14005bd41
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14005b150
mov edx, dword [rsp + 0x44]
mov dword [rsp + 0x20], esi
jmp 0x14005bd33
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov rdx, rbp
mov rcx, rdi
call fcn.14005b4d0
jmp 0x14005bd49
test r13d, r13d
je 0x14005bc96
mov r9d, r14d
mov rdx, rbp
mov rcx, rdi
call fcn.140058bb0
jmp 0x14005bd49
mov rcx, rbx
call fcn.14003fa60
mov r9d, eax
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
mov r13d, eax
call fcn.140058bb0
mov r8, qword [rbx + 0x30]
not r13d
test r13d, r13d
js 0x14005bcd3
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x14005bcd3
mov eax, dword [rbx + 0x3c]
movsxd rcx, r13d
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
jmp 0x14005bd49
mov rcx, rbp
call fcn.140055170
test eax, eax
je 0x14005bd03
mov r9d, r14d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.14003f920
jmp 0x14005bd49
mov rcx, rbp
call fcn.140055090
test eax, eax
jne 0x14005bd49
lea r8, [rsp + 0x80]
mov rdx, rbp
mov rcx, rdi
call fcn.14005b150
mov ecx, esi
test r13d, r13d
mov edx, 0x2e
setne cl
mov dword [rsp + 0x20], ecx
mov r9d, r14d
mov r8d, eax
mov rcx, rbx
call fcn.14003f920
mov r15d, dword [rsp + 0x80]
test r15d, r15d
je 0x14005bd7f
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x14005bd7f
mov ecx, esi
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r15d
je 0x14005bd7b
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14005bd60
mov dword [rdi + rdx*4 + 0x24], r15d
inc byte [rdi + 0x1f]
jmp 0x14005bd7f
mov byte [rax + 6], 1
test r12d, r12d
je 0x14005bdb3
movzx ecx, byte [rdi + 0x1f]
cmp cl, 8
jae 0x14005bdb3
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r12d
je 0x14005bdaf
inc esi
add rax, 0x14
cmp esi, 0xa
jl 0x14005bd94
mov dword [rdi + rcx*4 + 0x24], r12d
inc byte [rdi + 0x1f]
jmp 0x14005bdb3
mov byte [rax + 6], 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret