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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x70
mov eax, dword [rcx + 0x50]
mov ebp, r8d
mov r13, qword [rdx + 0x18]
mov r14, rdx
mov r10, qword [rcx]
mov rsi, rcx
mov dword [rsp + 0xa0], eax
mov ebx, 0xfff0bdc0
add eax, 2
mov dword [rcx + 0x50], eax
mov r9, qword [rdx + 0x30]
test r9, r9
je 0x14005d528
movsxd rcx, dword [r10 + 0x28]
xor ebx, ebx
test ecx, ecx
jle 0x14005d528
mov rax, qword [r10 + 0x20]
mov rdx, rcx
xor ecx, ecx
add rax, 0x18
cmp qword [rax], r9
je 0x14005d528
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x14005d515
mov rax, qword [r10 + 0x20]
xor r9d, r9d
mov r8, qword [r14]
movsxd rcx, ebx
shl rcx, 5
lea edx, [r9 + 0x1b]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.1400586a0
test eax, eax
jne 0x14005d990
mov rax, qword [r13]
mov r9b, 1
mov r8d, dword [r13 + 0x38]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call fcn.140058770
mov rcx, rsi
call fcn.140076f80
mov rdi, rax
test rax, rax
je 0x14005d98b
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
test ebp, ebp
js 0x14005d5a0
mov dword [rsp + 0xa8], ebp
jmp 0x14005d5ab
mov eax, dword [r14 + 0x58]
mov dword [rsp + 0xa8], eax
mov rdx, r14
mov rcx, rsi
call fcn.1400603b0
mov r12d, dword [rsi + 0x50]
mov r15, rax
lea ecx, [r12 + 1]
mov dword [rsi + 0x50], ecx
test rax, rax
je 0x14005d5cc
inc dword [rax]
movzx ecx, word [r14 + 0x5e]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x3a]
call fcn.140037d60
mov r9d, 0xfffffffa
mov r8, r15
mov edx, eax
mov rcx, rdi
call fcn.1400387d0
mov edx, dword [rsp + 0xa0]
mov r9, r13
mov r8d, ebx
mov dword [rsp + 0x20], 0x36
mov rcx, rsi
call fcn.1400692b0
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea edx, [r9 + 0x6d]
call fcn.140037d60
movzx ecx, byte [rsi + 0x1f]
mov r13d, eax
test cl, cl
jne 0x14005d649
inc dword [rsi + 0x54]
mov ebp, dword [rsi + 0x54]
jmp 0x14005d655
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov ebp, dword [rsi + rax*4 + 0x24]
mov r8d, dword [rsp + 0xa0]
lea rax, [rsp + 0xb8]
xor ecx, ecx
mov r9d, ebp
mov dword [rsp + 0x38], ecx
mov rdx, r14
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140062ab0
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r12d
mov edx, 0x6e
mov rcx, rdi
call fcn.140037d60
mov edx, dword [rsp + 0xb8]
mov rcx, rsi
call fcn.140062d40
mov r8d, dword [rsp + 0xa0]
lea r9d, [r13 + 1]
mov edx, 8
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140037d60
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
lea ecx, [rdx - 1]
test r13d, r13d
js 0x14005d6ec
mov ecx, r13d
mov rax, qword [rdi]
lea r13, [0x140120b10]
cmp byte [rax + 0x51], 0
je 0x14005d701
mov rax, r13
jmp 0x14005d710
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
cmp dword [rsp + 0xb0], 0
mov dword [rax + 8], edx
jge 0x14005d73d
mov r8d, dword [rsp + 0xa8]
mov r9d, ebx
mov edx, 0x77
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140037d60
mov r8d, dword [rsp + 0xa0]
mov edx, 0x37
mov r9d, dword [rsp + 0xa8]
inc r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.140037d60
mov r9d, 0xfffffffa
mov r8, r15
mov edx, eax
mov rcx, rdi
call fcn.1400387d0
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14005d787
mov rcx, r13
jmp 0x14005d796
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rcx, [rax + rcx*8]
cmp dword [rsp + 0xb0], 0
mov edx, 5
mov eax, 1
mov dword [rsp + 0x20], 0
cmovge eax, edx
mov r8d, r12d
xor r9d, r9d
mov byte [rcx + 3], al
mov rcx, rdi
lea edx, [r9 + 0x6b]
call fcn.140037d60
cmp byte [r14 + 0x62], 0
mov ebx, eax
mov dword [rsp + 0xa8], eax
je 0x14005d839
test r15, r15
je 0x14005d839
mov ebx, dword [rdi + 0x3c]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea r9d, [rbx + 3]
lea edx, [r8 + 0xe]
call fcn.140037d60
movzx eax, word [r14 + 0x5e]
lea r9d, [rbx + 3]
mov r15d, dword [rdi + 0x3c]
mov r8d, r12d
mov dword [rsp + 0x28], eax
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.140038090
mov r8, r14
mov edx, 2
mov rcx, rsi
call fcn.14005fbe0
mov ebx, dword [rsp + 0xa8]
jmp 0x14005d83d
mov r15d, dword [rdi + 0x3c]
mov r14d, dword [rsp + 0xa0]
mov r9d, ebp
inc r14d
mov r8d, r12d
mov edx, 0x65
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.140037d60
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, r14d
mov rcx, rdi
lea edx, [r9 + 0x6a]
call fcn.140037d60
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r14d
mov edx, WSAStartup
mov rcx, rdi
call fcn.140037d60
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14005d8a8
mov rax, r13
jmp 0x14005d8b7
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
mov byte [rax + 3], 0x10
test ebp, ebp
je 0x14005d8f1
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x14005d8f1
xor ecx, ecx
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x14005d8ed
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14005d8d1
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], ebp
inc byte [rsi + 0x1f]
jmp 0x14005d8f1
mov byte [rax + 6], 1
xor esi, esi
mov r9d, r15d
mov r8d, r12d
mov dword [rsp + 0x20], esi
mov rcx, rdi
lea edx, [rsi + 4]
call fcn.140037d60
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov r15, qword [rsp + 0x58]
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test ebx, ebx
jns 0x14005d923
lea ebx, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], sil
jne 0x14005d93b
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r13, [rax + rcx*8]
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov dword [r13 + 8], edx
mov rcx, rdi
mov dword [rsp + 0x20], esi
lea edx, [r9 + 0x3d]
call fcn.140037d60
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.140037d60
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.140037d60
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x70
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret