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

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rsi
push r12
push r14
sub rsp, 0x48
mov esi, r8d
mov r12d, edx
mov r14, rcx
test rcx, rcx
je 0x1401c5e7d
cmp qword [rcx + 0x80], 0
je 0x1401c5e7d
mov rbx, qword [rcx + 0x78]
test rbx, rbx
je 0x1401c5e7d
mov qword [rax + 0x18], rbp
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r15
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x1401c570d
test byte [rax + 8], 1
je 0x1401c570d
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x78]
mov r8, qword [rax + 0x98]
test rdx, rdx
je 0x1401c56fa
mov rcx, r8
call qword [r8 + reloc.WS2_32.dll_recv]
mov rax, qword [rbx + 0xf0]
xor ebp, ebp
mov qword [rbx + 0x78], rbp
and dword [rax + 8], 0xfffffffe
jmp 0x1401c5713
xor ebp, ebp
mov qword [rbx + 0x78], rbp
mov dword [rbx + 0x18], ebp
xor eax, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x98], xmm1
movups xmmword [rbx + 0xa8], xmm1
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x70], ebp
mov byte [rbx + 0x82], al
mov qword [rbx + 0x90], rax
mov dword [rbx + 0xc0], ebp
mov qword [rbx + 0xc8], rbp
mov qword [rbx + 0xd0], rbp
mov dword [rbx + 0xd8], ebp
test dword [rcx + 8], 0x10000
jne 0x1401c577f
mov qword [rbx + 0xe8], rbp
jmp 0x1401c57b6
mov rax, qword [rbx + 0xf0]
test byte [rax + 8], 2
je 0x1401c57b6
mov rdi, qword [rbx + 0xe8]
mov rax, qword [rcx + 0x98]
mov rdx, qword [rdi]
test rdx, rdx
je 0x1401c57a8
mov rcx, rax
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi], rbp
mov rax, qword [rbx + 0xf0]
and dword [rax + 8], 0xfffffffd
mov qword [rbx + 0x5c], 0
mov qword [rbx + 0x50], 0
mov dword [rbx + 0x58], ebp
mov qword [rbx + 0xdc], 0
mov rdi, qword [r14 + 0x90]
mov rax, qword [rdi + 8]
mov r13, qword [rax + 0x130]
mov rax, qword [r14 + 0x80]
cmp word [rax + 0x18], 0
je 0x1401c57fb
cmp word [rax + 0x1a], 0
jne 0x1401c57fe
or esi, 1
mov ecx, esi
or ecx, 0x801
bt esi, 0xa
cmovae ecx, esi
test cl, 1
je 0x1401c5818
and ecx, 0xfffffffb
or ecx, 0xa
mov r15d, ecx
and r15d, 0xfffffffb
bt ecx, 0x16
cmovae r15d, ecx
test r13, r13
je 0x1401c585c
test r15d, 0x8002
jne 0x1401c585c
mov eax, dword [r14 + 8]
and eax, 0x2001
cmp eax, 1
jne 0x1401c585c
bt r15d, 0xb
jb 0x1401c58ba
mov rax, qword [r14 + 0xd0]
cmp dword [rax + 8], 0
jne 0x1401c58b5
cmp dword [rax], 0
jne 0x1401c58ba
mov rax, qword [rdi + 0x18]
mov r9d, r15d
mov rdx, qword [r14 + 0x80]
mov r8d, r12d
mov rcx, rbx
call qword [rax + 0x78]
mov r12d, eax
test eax, eax
jne 0x1401c5e58
cmp dword [rbx + 0x60], 0x6f75746c
jne 0x1401c5a18
lea rax, [rbx + 0x98]
test rax, rax
je 0x1401c5b34
movsx r9d, word [rax + 2]
movsx rcx, word [rax]
test r9d, r9d
jne 0x1401c5a2c
test cx, cx
jmp 0x1401c5a7a
cmp dword [rax], 0
jne 0x1401c585c
test r15b, 0x20
jne 0x1401c596e
mov rax, qword [rdi]
test dword [rax], 0x400
je 0x1401c596e
mov r8, qword [rax + 0x30]
mov rcx, rbp
test r8, r8
je 0x1401c58ef
lea rdx, str.font_format
mov rcx, rdi
call r8
mov rcx, rax
lea rdx, str.Type_1
call fcn.14018dac4
test rax, rax
je 0x1401c590a
cmp dword [rdi + 0x38], 1
jne 0x1401c590a
mov cl, 1
jmp 0x1401c590c
xor cl, cl
mov eax, r15d
and eax, 0xf0000
cmp eax, 0x10000
jne 0x1401c592a
mov rax, qword [rdi]
test dword [rax], 0x800
jne 0x1401c592a
test cl, cl
je 0x1401c596e
test byte [r14 + 8], 8
je 0x1401c585c
cmp dword [r14 + 0x434], 0
je 0x1401c585c
cmp word [r14 + 0x18a], 0
jne 0x1401c585c
cmp dword [r14 + 0x3b0], 0
jne 0x1401c585c
cmp dword [r14 + 0x3c0], 0
jne 0x1401c585c
test dword [r14 + 8], 0x10000
je 0x1401c59a9
mov rax, qword [rdi + 0x18]
mov r9d, r15d
mov rdx, qword [r14 + 0x80]
bts r9d, 0x17
mov r8d, r12d
mov rcx, rbx
call qword [rax + 0x78]
mov r12d, eax
test eax, eax
jne 0x1401c59a4
cmp dword [rbx + 0x60], 0x53564720
je 0x1401c5a18
mov r12d, dword [rsp + 0x78]
test byte [r14 + 8], 2
je 0x1401c59e2
test r15b, 8
jne 0x1401c59e2
mov rax, qword [rdi + 0x18]
mov r9d, r15d
mov rdx, qword [r14 + 0x80]
bts r9d, 0xe
mov r8d, r12d
mov rcx, rbx
call qword [rax + 0x78]
mov r12d, eax
test eax, eax
jne 0x1401c59e2
cmp dword [rbx + 0x60], 0x62697473
je 0x1401c5a18
mov rsi, qword [r14 + 0xd0]
mov rdx, rbx
mov r9d, dword [rsp + 0x78]
mov rcx, r13
mov dword [rsp + 0x20], r15d
mov edi, dword [rsi + 0x18]
mov dword [rsi + 0x18], ebp
mov rax, qword [r13]
mov r8, qword [r14 + 0x80]
mov r10, qword [rax + 0x18]
call qword [r10 + 0x18]
mov r12d, eax
mov dword [rsi + 0x18], edi
test r15b, 0x10
je 0x1401c5b3f
mov eax, dword [rbx + 0x4c]
mov ecx, ebp
jmp 0x1401c5b44
jle 0x1401c5b34
test cx, cx
jle 0x1401c5b34
mov rax, qword [rax + 0x18]
mov r8d, 0xffffffff
mov r10, rcx
mov rdx, rbp
nop dword [rax + rax]
movsx ecx, word [rax]
cmp ecx, r8d
jle 0x1401c5b34
cmp ecx, r9d
jge 0x1401c5b34
inc rdx
add rax, 2
mov r8d, ecx
cmp rdx, r10
jl 0x1401c5a50
lea eax, [r9 - 1]
cmp ecx, eax
jne 0x1401c5b34
mov r12d, ebp
test r15b, 2
jne 0x1401c5a18
mov ecx, dword [rbx + 0x38]
mov r11d, ecx
mov r13d, dword [rbx + 0x44]
and r11d, 0xffffffc0
mov edx, dword [rbx + 0x3c]
mov r9d, r13d
mov edi, dword [rbx + 0x30]
and r9d, 0xffffffc0
mov dword [rbx + 0x44], r9d
mov eax, dword [rbx + 0x48]
mov r10d, eax
mov esi, dword [rbx + 0x34]
and r10d, 0xffffffc0
mov dword [rsp + 0x70], eax
mov eax, r15d
mov dword [rsp + 0x88], ecx
lea ecx, [rdx + 0x3f]
and ecx, 0xffffffc0
mov dword [rbx + 0x38], r11d
shr eax, 4
mov dword [rbx + 0x3c], ecx
mov dword [rbx + 0x48], r10d
test al, 1
je 0x1401c5af8
mov ecx, dword [rsp + 0x70]
lea eax, [rdi + 0x3f]
add ecx, 0x3f
add eax, r13d
add ecx, esi
and eax, 0xffffffc0
and ecx, 0xffffffc0
sub ecx, r10d
sub eax, r9d
jmp 0x1401c5b11
mov eax, dword [rsp + 0x88]
sub edx, esi
add eax, 0x3f
and edx, 0xffffffc0
add eax, edi
sub ecx, edx
and eax, 0xffffffc0
sub eax, r11d
mov dword [rbx + 0x30], eax
mov dword [rbx + 0x34], ecx
mov eax, dword [rbx + 0x40]
add eax, 0x20
and eax, 0xffffffc0
mov dword [rbx + 0x40], eax
mov eax, dword [rbx + 0x4c]
add eax, 0x20
and eax, 0xffffffc0
mov dword [rbx + 0x4c], eax
jmp 0x1401c5a18
mov r12d, socket
jmp 0x1401c5e58
mov ecx, dword [rbx + 0x40]
mov eax, ebp
mov dword [rbx + 0x58], ecx
mov dword [rbx + 0x5c], eax
bt r15d, 0xd
jb 0x1401c5c12
test byte [r14 + 8], 1
je 0x1401c5c12
movsxd rdx, dword [rbx + 0x50]
mov rdi, qword [r14 + 0x80]
mov r9d, edx
movsxd r8, dword [rbx + 0x54]
mov r10, rdx
neg r10
sar r9d, 0x1f
and r9d, 0xfffffffe
movsxd r11, dword [rdi + 0x1c]
inc r9d
test edx, edx
mov ecx, r9d
mov rax, r11
cmovns r10, rdx
neg rax
test r11d, r11d
cmovns rax, r11
neg ecx
imul r10, rax
add r10, 0x20
shr r10, 6
mov eax, r10d
test r11d, r11d
cmovns ecx, r9d
neg eax
test ecx, ecx
mov r9d, r8d
cmovns eax, r10d
sar r9d, 0x1f
mov dword [rbx + 0x50], eax
and r9d, 0xfffffffe
movsxd r11, dword [rdi + 0x20]
inc r9d
mov r10, r11
mov rax, r8
neg r10
mov ecx, r9d
test r11d, r11d
cmovns r10, r11
neg rax
test r8d, r8d
cmovns rax, r8
neg ecx
imul r10, rax
add r10, 0x20
shr r10, 6
test r11d, r11d
mov eax, r10d
cmovns ecx, r9d
neg eax
test ecx, ecx
cmovns eax, r10d
mov dword [rbx + 0x54], eax
bt r15d, 0xb
jb 0x1401c5dd5
mov rdi, qword [r14 + 0xd0]
cmp dword [rdi + 0x18], 0
je 0x1401c5dd5
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x90]
mov r8, qword [rcx + 8]
mov r10, qword [r8 + 0x128]
test r10, r10
je 0x1401c5c52
mov eax, dword [rbx + 0x60]
cmp dword [r10 + 0x20], eax
je 0x1401c5c80
mov rax, qword [r8 + 0x118]
mov r10, rbp
mov edx, dword [rbx + 0x60]
test rax, rax
je 0x1401c5c7b
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x20], edx
je 0x1401c5c78
mov rax, qword [rax + 8]
test rax, rax
jne 0x1401c5c64
jmp 0x1401c5c7b
mov r10, rcx
test r10, r10
je 0x1401c5c9c
mov rax, qword [r10 + 0x18]
lea r9, [rdi + 0x10]
mov r8, rdi
mov rdx, rbx
mov rcx, r10
call qword [rax + 0x48]
mov r12d, eax
jmp 0x1401c5dc9
cmp dword [rbx + 0x60], 0x6f75746c
jne 0x1401c5dc9
test byte [rdi + 0x18], 1
je 0x1401c5d7f
lea rax, [rbx + 0x98]
test rax, rax
je 0x1401c5d7f
mov r10, qword [rax + 8]
test r10, r10
je 0x1401c5d7f
movsx rax, word [rax + 2]
lea r11, [r10 + rax*8]
cmp r10, r11
jae 0x1401c5d7f
test r10, r10
je 0x1401c5d72
movsxd rcx, dword [r10]
movsxd rax, dword [r10 + 4]
movsxd r8, dword [rdi]
movsxd rdx, dword [rdi + 4]
movsxd r9, dword [rdi + 8]
imul rdx, rax
imul r8, rcx
imul r9, rcx
movsxd rcx, dword [rdi + 0xc]
imul rcx, rax
mov rax, r8
shr rax, 0x3f
sub r8, rax
mov rax, rdx
shr rax, 0x3f
add r8, 0x8000
sub rdx, rax
sar r8, 0x10
mov rax, rcx
add rdx, 0x8000
shr rax, 0x3f
sub rcx, rax
sar rdx, 0x10
mov rax, r9
add rcx, 0x8000
shr rax, 0x3f
add r8d, edx
sub r9, rax
sar rcx, 0x10
add r9, 0x8000
mov dword [r10], r8d
sar r9, 0x10
add ecx, r9d
mov dword [r10 + 4], ecx
add r10, 8
cmp r10, r11
jb 0x1401c5ce2
test byte [rdi + 0x18], 2
je 0x1401c5dc9
mov r9d, dword [rdi + 0x14]
lea rdx, [rbx + 0x98]
mov r10d, dword [rdi + 0x10]
test rdx, rdx
je 0x1401c5dc9
mov r8, qword [rdx + 8]
cmp bp, word [rdx + 2]
jge 0x1401c5dc9
nop dword [rax]
nop word [rax + rax]
add dword [r8], r10d
inc bp
add dword [r8 + 4], r9d
lea r8, [r8 + 8]
movsx ecx, word [rdx + 2]
movzx eax, bp
cmp eax, ecx
jl 0x1401c5db0
lea rcx, [rbx + 0x58]
mov rdx, rdi
call fcn.1401ca4a0
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0x18], eax
mov rax, qword [rbx + 0xf0]
mov dword [rax + 0x30], r15d
test r12d, r12d
jne 0x1401c5e58
test r15b, 1
jne 0x1401c5e58
mov eax, dword [rbx + 0x60]
cmp eax, 0x62697473
je 0x1401c5e58
cmp eax, 0x636f6d70
je 0x1401c5e58
mov edx, r15d
sar edx, 0x10
and edx, 0xf
jne 0x1401c5e1b
bt r15d, 0xc
mov eax, 2
cmovb edx, eax
test r15b, 4
je 0x1401c5e4d
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401c5e45
mov rax, qword [rax + 0x90]
mov r8d, edx
mov rdx, rbx
mov rcx, qword [rax + 8]
call fcn.1401c8730
mov r12d, eax
jmp 0x1401c5e58
mov r12d, 6
jmp 0x1401c5e58
xor r8d, r8d
mov rcx, rbx
call fcn.1401cb770
mov r15, qword [rsp + 0x30]
mov eax, r12d
mov r13, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x80]
add rsp, 0x48
pop r14
pop r12
pop rsi
pop rbx
ret
mov eax, 0x23
add rsp, 0x48
pop r14
pop r12
pop rsi
pop rbx
ret