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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
xor esi, esi
mov dword [rax + 8], esi
mov r12d, r9d
mov dword [rax - 0x38], esi
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
mov r13d, esi
test rbx, rbx
je 0x14004c98b
test rdx, rdx
je 0x14004c98b
movzx edx, byte [rdx]
mov qword [rax + 0x10], r15
mov r15d, edx
xor r15d, 1
lea eax, [rdx - 0x13]
cmp eax, 0x81
ja case.0x14004c5fd.20
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x4c9d4]
mov ecx, dword [r8 + rax*4 + 0x4c9b0]
add rcx, r8
jmp rcx
mov rdx, qword [rbp + 0x10]
mov r8d, r14d
mov rcx, rdi
call fcn.14004c580
inc dword [rdi + 0x4c]
mov r9d, r12d
mov rdx, qword [rbp + 0x18]
mov r8d, r14d
mov rcx, rdi
call fcn.14004c580
mov rcx, rdi
call fcn.1400499e0
jmp 0x14004c8f4
mov rcx, rbx
call fcn.14002c260
mov rdx, qword [rbp + 0x10]
mov r9d, r12d
xor r9d, 0x10
mov r8d, eax
mov rcx, rdi
mov r15d, eax
call fcn.14004c070
inc dword [rdi + 0x4c]
mov r9d, r12d
mov rdx, qword [rbp + 0x18]
mov r8d, r14d
mov rcx, rdi
call fcn.14004c580
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x14004c682
mov eax, dword [rbx + 0xb8]
not r15d
movsxd rcx, r15d
mov dword [rdx + rcx*4], eax
mov rcx, rdi
call fcn.1400499e0
jmp 0x14004c8f4
mov rdx, qword [rbp + 0x10]
mov r8d, r14d
mov rcx, rdi
call fcn.14004c070
jmp 0x14004c8f4
cmp dl, 0x1d
mov r15d, esi
mov r12d, 0x80
setne r15b
add r15d, 0x24
mov rdx, qword [rbp + 0x10]
movzx eax, byte [rdx]
cmp al, 0x9d
jne 0x14004c6c6
movzx eax, byte [rdx + 0x36]
cmp al, 0x9e
jne 0x14004c6d0
lea rax, [rdx + 0x20]
jmp 0x14004c6d8
cmp al, 0x77
jne 0x14004c6e4
mov rax, qword [rdx + 0x20]
mov rax, qword [rax]
cmp dword [rax], 1
jg case.0x14004c5fd.20
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14004b980
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.14004b980
mov r8, qword [rbp + 0x18]
mov r9d, r15d
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.140043860
mov r13d, dword [rsp + 0x40]
jmp 0x14004c8f4
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14004b980
mov rdx, qword [rbx + 0x18]
mov r8d, eax
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rdx + 0x3c], ecx
jg 0x14004c774
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov edx, r15d
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14004c8f4
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], r15b
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 0xc], esi
mov byte [rax + rcx*8 + 1], sil
jmp 0x14004c8e5
lea r9, [fcn.14004c580]
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call fcn.14004bed0
jmp 0x14004c8f4
test r12d, r12d
je 0x14004c7d6
mov r9d, r14d
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call fcn.140048310
jmp 0x14004c8f4
mov rcx, rbx
call fcn.14002c260
mov r9d, eax
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
mov r15d, eax
call fcn.140048310
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rcx + 0x58]
test rdx, rdx
je 0x14004c8f4
mov eax, dword [rbx + 0xb8]
not r15d
movsxd rcx, r15d
mov dword [rdx + rcx*4], eax
jmp 0x14004c8f4
mov rcx, rbp
call fcn.140044530
test eax, eax
je 0x14004c870
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14004c84f
mov r9d, r14d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 0xd
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14004c8f4
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], 0xd
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 0xc], esi
jmp 0x14004c8e5
mov rcx, rbp
call fcn.140044450
test eax, eax
jne 0x14004c8f4
lea r8, [rsp + 0x80]
mov rdx, rbp
mov rcx, rdi
call fcn.14004b980
mov rcx, qword [rbx + 0x18]
test r12d, r12d
movsxd r8, dword [rbx + 0xb8]
mov edx, esi
setne dl
mov r10d, eax
cmp dword [rcx + 0x3c], r8d
jg 0x14004c8c4
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, socket
mov r8d, eax
mov rcx, rbx
call fcn.14002bbb0
jmp 0x14004c8f4
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8], socket
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rsi
mov dword [rax + rcx*8 + 8], r14d
mov byte [rax + rcx*8 + 3], sil
mov r15, qword [rsp + 0x88]
cmp dword [rsp + 0x80], esi
je 0x14004c94c
movzx r9d, byte [rdi + 0x1f]
cmp r9b, 8
jae 0x14004c94c
movzx r8d, byte [rdi + 0x25]
lea rcx, [rdi + 0xc4]
mov edx, esi
test r8d, r8d
je 0x14004c93a
mov eax, dword [rsp + 0x80]
cmp dword [rcx + 0xc], eax
je 0x14004c9a4
inc edx
add rcx, 0x14
cmp edx, r8d
jl 0x14004c923
mov eax, dword [rsp + 0x80]
mov dword [rdi + r9*4 + 0x18c], eax
inc byte [rdi + 0x1f]
test r13d, r13d
je 0x14004c98b
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x14004c98b
movzx ecx, byte [rdi + 0x25]
lea rax, [rdi + 0xc4]
test ecx, ecx
je 0x14004c980
nop dword [rax]
cmp dword [rax + 0xc], r13d
je 0x14004c9aa
inc esi
add rax, 0x14
cmp esi, ecx
jl 0x14004c970
mov dword [rdi + rdx*4 + 0x18c], r13d
inc byte [rdi + 0x1f]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov byte [rcx + 6], 1
jmp 0x14004c94c
mov byte [rax + 6], 1
jmp 0x14004c98b