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

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov eax, dword [rdx + 0x14]
mov rdi, rdx
mov rbx, rcx
cmp dword [rdx + 0x10], eax
je 0x1801ba2dc
call fcn.1801ba640
jmp 0x1801ba2e1
call fcn.1801ba170
mov edx, dword [rdi]
mov ecx, edx
mov qword [rsp + 0x80], rsi
sub ecx, 1
je 0x1801ba3db
sub ecx, 1
je 0x1801ba3db
sub ecx, 1
je 0x1801ba3db
sub ecx, 1
je 0x1801ba3ba
cmp ecx, 1
je 0x1801ba3db
mov rdx, rdi
mov rcx, rbx
call fcn.1801ba170
cmp dword [rdi], 0xc
jne 0x1801ba33f
mov eax, dword [rdi + 0x14]
cmp dword [rdi + 0x10], eax
je 0x1801ba3a8
movzx eax, byte [rbx + 0x4a]
mov r8d, dword [rdi + 8]
cmp r8d, eax
jge 0x1801ba39d
mov rdx, rdi
mov rcx, rbx
call fcn.1801ba170
cmp dword [rdi], 0xc
jne 0x1801ba363
mov ecx, dword [rdi + 8]
bt ecx, 8
jb 0x1801ba363
movzx eax, byte [rbx + 0x4a]
cmp ecx, eax
jl 0x1801ba363
dec dword [rbx + 0x3c]
mov rax, qword [rbx]
mov esi, dword [rbx + 0x3c]
inc esi
movzx ecx, byte [rax + 0x73]
cmp esi, ecx
jle 0x1801ba392
cmp esi, 0xfa
jl 0x1801ba38b
mov rcx, qword [rbx + 0x18]
lea rdx, str.function_or_expression_too_complex
call fcn.1801b4c40
mov rax, qword [rbx]
mov byte [rax + 0x73], sil
mov r8d, dword [rbx + 0x3c]
lea eax, [r8 + 1]
mov dword [rbx + 0x3c], eax
mov rdx, rdi
mov rcx, rbx
call fcn.1801b9c10
mov eax, dword [rdi + 8]
mov rsi, qword [rsp + 0x80]
add rsp, 0x58
pop rdi
pop rbx
ret
mov eax, dword [rdi + 8]
cmp eax, 0xff
jg 0x1801ba31a
bts eax, 8
mov rsi, qword [rsp + 0x80]
add rsp, 0x58
pop rdi
pop rbx
ret
cmp dword [rbx + 0x40], 0xff
jg 0x1801ba31a
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
cmp edx, 1
jne 0x1801ba4d9
mov rbp, qword [rbx + 0x20]
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 8]
mov rcx, rbp
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], 5
call fcn.1801b0ea0
mov r14, qword [rbx]
cmp dword [rax + 8], 3
movsxd rsi, dword [r14 + 0x4c]
jne 0x1801ba438
cvttsd2si ecx, qword [rax]
jmp 0x1801ba60a
movd xmm0, dword [rbx + 0x40]
mov dword [rax + 8], 3
cvtdq2pd xmm0, xmm0
movsd qword [rax], xmm0
mov eax, dword [rbx + 0x40]
inc eax
cmp eax, dword [r14 + 0x4c]
jle 0x1801ba485
mov rdx, qword [r14 + 0x10]
lea rax, str.constant_table_overflow
mov qword [rsp + 0x28], rax
lea r8, [r14 + 0x4c]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0x3ffff
mov rcx, rbp
call fcn.1801b4090
mov qword [r14 + 0x10], rax
xor ebp, ebp
cmp esi, dword [r14 + 0x4c]
jge 0x1801ba4b4
mov rcx, rsi
shl rcx, 4
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r14 + 0x10]
lea rcx, [rcx + 0x10]
inc esi
mov dword [rcx + rax - 8], ebp
cmp esi, dword [r14 + 0x4c]
jl 0x1801ba4a0
movsxd rcx, dword [rbx + 0x40]
mov rax, qword [rsp + 0x78]
shl rcx, 4
add rcx, qword [r14 + 0x10]
mov qword [rcx], rax
mov dword [rcx + 8], ebp
mov ecx, dword [rbx + 0x40]
lea eax, [rcx + 1]
mov dword [rbx + 0x40], eax
jmp 0x1801ba60a
cmp edx, 5
jne 0x1801ba4f2
movsd xmm1, qword [rdi + 8]
mov rcx, rbx
call fcn.1801bac90
mov ecx, eax
jmp 0x1801ba60a
xor ebp, ebp
mov qword [rsp + 0x88], r12
mov r12, qword [rbx + 0x20]
lea r8, [rsp + 0x30]
cmp edx, 2
mov qword [rsp + 0x50], r13
mov rdx, qword [rbx + 8]
mov eax, ebp
sete al
mov dword [rsp + 0x38], 1
mov rcx, r12
mov dword [rsp + 0x30], eax
call fcn.1801b0ea0
mov r13, qword [rbx]
cmp dword [rax + 8], 3
movsxd rsi, dword [r13 + 0x4c]
jne 0x1801ba540
cvttsd2si ecx, qword [rax]
jmp 0x1801ba5fd
movd xmm0, dword [rbx + 0x40]
mov dword [rax + 8], 3
cvtdq2pd xmm0, xmm0
movsd qword [rax], xmm0
mov eax, dword [rbx + 0x40]
inc eax
cmp eax, dword [r13 + 0x4c]
jle 0x1801ba58d
mov rdx, qword [r13 + 0x10]
lea rax, str.constant_table_overflow
mov qword [rsp + 0x28], rax
lea r8, [r13 + 0x4c]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0x3ffff
mov rcx, r12
call fcn.1801b4090
mov qword [r13 + 0x10], rax
cmp esi, dword [r13 + 0x4c]
jge 0x1801ba5b4
mov rcx, rsi
shl rcx, 4
nop word [rax + rax]
mov rax, qword [r13 + 0x10]
lea rcx, [rcx + 0x10]
inc esi
mov dword [rcx + rax - 8], ebp
cmp esi, dword [r13 + 0x4c]
jl 0x1801ba5a0
movsxd rcx, dword [rbx + 0x40]
mov rax, qword [rsp + 0x30]
shl rcx, 4
add rcx, qword [r13 + 0x10]
mov qword [rcx], rax
mov eax, dword [rsp + 0x38]
mov dword [rcx + 8], eax
cmp dword [rsp + 0x38], 4
jl 0x1801ba5f4
mov r8, qword [rsp + 0x30]
test byte [r8 + 9], 3
je 0x1801ba5f4
test byte [r13 + 9], 4
je 0x1801ba5f4
mov rdx, r13
mov rcx, r12
call fcn.1801af380
mov ecx, dword [rbx + 0x40]
lea eax, [rcx + 1]
mov dword [rbx + 0x40], eax
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov dword [rdi + 8], ecx
bts ecx, 8
mov eax, ecx
mov dword [rdi], 4
add rsp, 0x58
pop rdi
pop rbx
ret