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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
xor esi, esi
mov dword [rsp + 0x70], esi
mov r10d, r8d
mov dword [rsp + 0x44], esi
mov rbp, rdx
mov rdi, rcx
test rbx, rbx
je 0x140052143
test rdx, rdx
je 0x140052143
movzx edx, byte [rdx]
mov dword [rsp + 0x40], edx
lea eax, [rdx - 0x13]
cmp eax, 0x81
ja case.0x140051e31.20
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x5218c]
mov ecx, dword [r8 + rax*4 + 0x52168]
add rcx, r8
jmp rcx
mov rcx, rbx
call fcn.140034280
mov r9d, dword [rsp + 0x88]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
xor r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.140052210
inc dword [rdi + 0x4c]
mov rcx, rdi
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp + 0x18]
call fcn.140051dc0
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140051e99
or eax, 0xffffffff
sub eax, dword [rsp + 0x70]
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.14004fcc0
mov rdx, qword [rbp + 0x10]
mov r8d, r10d
mov rcx, rdi
call fcn.140051dc0
inc dword [rdi + 0x4c]
mov rcx, rdi
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp + 0x18]
call fcn.140051dc0
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.14004fcc0
mov rdx, qword [rbp + 0x10]
mov r8d, r10d
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140052210
cmp edx, 0x48
mov dword [rsp + 0x88], pe_nt_image_headers64
mov eax, esi
sete al
add eax, 0x4d
mov dword [rsp + 0x40], eax
mov rdx, qword [rbp + 0x10]
mov rcx, rdx
call fcn.14004a3b0
test eax, eax
jne case.0x140051e31.20
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.1400515b0
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x44]
mov rcx, rdi
mov ebx, eax
call fcn.1400515b0
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x80]
mov r9d, dword [rsp + 0x40]
mov r8, qword [rbp + 0x18]
mov dword [rsp + 0x38], edx
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.14004a220
jmp 0x1400520c0
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.1400515b0
mov r9d, dword [rsp + 0x80]
mov r8d, eax
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call fcn.140033af0
jmp 0x1400520c0
mov dword [rsp + 0x20], r9d
mov r8d, r10d
lea r9, [fcn.140051dc0]
mov rdx, rbp
mov rcx, rdi
call fcn.140051bf0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140034280
mov edx, dword [rsp + 0x88]
mov r9d, eax
test edx, edx
mov dword [rsp + 0x70], eax
mov r8d, eax
mov rdx, rbp
cmovne r9d, dword [rsp + 0x80]
mov rcx, rdi
call fcn.14004e5d0
mov edx, dword [rsp + 0x80]
mov rcx, rbx
call fcn.140033b60
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rcx + 0x58]
test rdx, rdx
je 0x140052143
or eax, 0xffffffff
sub eax, dword [rsp + 0x70]
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.14004b0e0
test eax, eax
je 0x140052076
mov edx, r10d
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140033b60
mov rcx, rbp
call fcn.14004b170
test eax, eax
jne 0x140052143
lea r8, [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.1400515b0
mov edx, dword [rsp + 0x88]
mov ecx, esi
mov r9d, dword [rsp + 0x80]
test edx, edx
mov r8d, eax
mov edx, socket
setne cl
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.1400339a0
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x140052104
movzx r9d, byte [rdi + 0x1f]
cmp r9b, 8
jae 0x140052104
movzx r8d, byte [rdi + 0x25]
lea rax, [rdi + 0xc4]
mov ecx, esi
test r8d, r8d
je 0x1400520f6
cmp dword [rax + 0xc], edx
je 0x140052150
inc ecx
add rax, 0x14
cmp ecx, r8d
jl 0x1400520e6
movzx eax, r9b
mov dword [rdi + rax*4 + 0x18c], edx
inc byte [rdi + 0x1f]
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x140052143
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x140052143
movzx edx, byte [rdi + 0x25]
lea rax, [rdi + 0xc4]
test edx, edx
je 0x140052135
cmp dword [rax + 0xc], ecx
je 0x140052156
inc esi
add rax, 0x14
cmp esi, edx
jl 0x140052126
movzx eax, r8b
mov dword [rdi + rax*4 + 0x18c], ecx
inc byte [rdi + 0x1f]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov byte [rax + 6], 1
jmp 0x140052104
mov byte [rax + 6], 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret