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

Disassembly:
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r11d, ecx
mov r15, qword [0x140116670]
lea rbx, [r15 + 0x5530]
mov qword [rsp + 0x30], rbx
test ecx, ecx
je 0x1400308d2
mov r8, qword [rbx + 8]
movsxd rdx, dword [rbx]
mov r9, rdx
shl r9, 4
add r9, r8
test rdx, rdx
je 0x140030881
nop dword [rax + rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r11d
jae 0x140030879
lea r8, [r8 + rax*8]
add r8, 0x10
mov rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
jmp 0x14003087c
mov rdx, rcx
test rdx, rdx
jne 0x140030850
xor edi, edi
cmp r8, r9
je 0x140030893
cmp dword [r8], r11d
jne 0x140030893
mov r8, qword [r8 + 8]
jmp 0x140030896
mov r8, rdi
mov qword [rsp + 0x20], r8
test r8, r8
je 0x140030cbd
xor dl, dl
lea rcx, [r8 + 0xc4]
mov qword [rsp + 0x28], rcx
mov eax, dword [rcx]
shl eax, 0x1d
sar eax, 0x1d
mov dword [rsp + 0xb0], eax
mov eax, dword [rcx]
shl eax, 0x1a
sar eax, 0x1d
mov dword [rsp + 0xb8], eax
jmp 0x1400308f5
xor edi, edi
mov r8d, edi
mov qword [rsp + 0x20], rdi
xor dl, dl
mov dword [rsp + 0xb0], edi
mov qword [rsp + 0x28], 0xc4
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0xa8], edx
mov ebp, edi
mov dword [rsp + 0x3c], edi
mov esi, edi
mov dword [rsp + 0x38], esi
mov r10, rdi
mov qword [rsp + 0x40], rdi
mov r13d, edi
cmp dword [rbx], 0
jle 0x140030aae
mov r12, rdi
mov r9d, 1
jmp 0x140030935
mov r8, qword [rsp + 0x20]
mov rax, qword [rbx + 8]
mov r14, qword [r12 + rax + 8]
test r14, r14
je 0x140030a97
test r11d, r11d
je 0x140030977
cmp dword [r14], r11d
je 0x140030a97
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x140030a97
lea rcx, [rax]
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140030962
cmp dword [rcx], r11d
jne 0x140030a97
mov eax, dword [r14 + 0x10]
shr eax, 0xb
test al, 1
movzx edx, dl
cmovne edx, r9d
mov dword [rsp + 0xa8], edx
test r11d, r11d
je 0x1400309c2
mov edx, edi
cmp dword [r15 + 0x5540], 0
jle 0x1400309c2
mov rcx, rdi
mov rax, qword [r15 + 0x5548]
cmp qword [rax + rcx + 0x10], r14
jne 0x1400309b3
mov dword [rax + rcx], edi
inc edx
add rcx, 0x40
cmp edx, dword [r15 + 0x5540]
jl 0x1400309a2
test r8, r8
je 0x1400309e6
mov rdx, r14
mov rcx, r8
call fcn.14002b4c0
mov rdx, qword [rsp + 0x20]
mov edx, dword [rdx]
mov ecx, dword [r14]
call fcn.140031910
mov r10, qword [rsp + 0x40]
cmp esi, ebp
jne 0x140030a7c
lea ebx, [rsi + 1]
test ebp, ebp
je 0x140030a00
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
jmp 0x140030a05
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, ebp
jle 0x140030a75
mov rax, qword [0x140116670]
test rax, rax
je 0x140030a20
inc dword [rax + 0xf4]
movsxd rcx, ebx
shl rcx, 3
call fcn.1400adb00
mov rbp, rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140030a67
movsxd r8, esi
shl r8, 3
mov rdx, rax
mov rcx, rbp
call fcn.14009dd50
mov rdx, qword [0x140116670]
test rdx, rdx
je 0x140030a5d
dec dword [rdx + 0xf4]
mov rcx, qword [rsp + 0x40]
call fcn.1400a352c
mov r10, rbp
mov qword [rsp + 0x40], rbp
mov ebp, ebx
mov dword [rsp + 0x3c], ebx
lea rbx, [r15 + 0x5530]
movsxd rax, esi
mov qword [r10 + rax*8], r14
inc esi
mov dword [rsp + 0x38], esi
mov r11d, dword [rsp + 0xa0]
mov r9d, 1
inc r13d
add r12, 0x10
cmp r13d, dword [rbx]
mov edx, dword [rsp + 0xa8]
jl 0x140030930
mov r14, qword [rsp + 0x20]
test r14, r14
je 0x140030aeb
mov edx, dword [rsp + 0xb0]
mov r8, qword [rsp + 0x28]
xor edx, dword [r8]
and edx, 0xfffffff8
xor edx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0xb8]
lea eax, [rax*8]
mov ecx, eax
xor ecx, edx
and ecx, 0xffffffc7
xor ecx, eax
mov dword [r8], ecx
mov r9, qword [r15 + 0x5598]
test r9, r9
je 0x140030b55
add r9, 4
je 0x140030b55
nop dword [rax]
mov r8d, dword [r9 + 0x14]
test r8d, r8d
je 0x140030b2a
mov edx, edi
test esi, esi
jle 0x140030b2a
mov rcx, r10
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x140030b26
inc edx
add rcx, 8
cmp edx, esi
jl 0x140030b12
jmp 0x140030b2a
mov dword [r9 + 0x14], r11d
movsxd r8, dword [r9 - 4]
add r8, r9
movsxd rcx, dword [r15 + 0x5590]
mov rdx, qword [r15 + 0x5598]
add rdx, 4
add rdx, rcx
mov r9, rdi
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x140030b00
cmp esi, 1
jle 0x140030b78
movsxd rdx, esi
cmp rdx, 1
jbe 0x140030b78
lea r9, [0x140029ae0]
mov r8d, 8
mov rcx, r10
call fcn.1400a4aa0
mov r15, qword [rsp + 0x40]
test esi, esi
jle 0x140030c0f
mov r14, r15
mov rbp, qword [rsp + 0x30]
nop dword [rax]
mov rbx, qword [r14]
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140030ba6
mov qword [rax + 0x428], rdi
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140030bce
mov eax, 0x20
cmp rax, 0x30
jge 0x140030bce
cmp qword [rax + rdx], rbx
jne 0x140030bc8
mov rcx, qword [rbx + 0x18]
mov qword [rax + rcx], rdi
add rax, 8
jmp 0x140030bb4
xor r8d, r8d
mov edx, dword [rbx]
mov rcx, rbp
call fcn.14000fe30
mov rcx, rbx
call fcn.14002ade0
mov rax, qword [0x140116670]
test rax, rax
je 0x140030bf5
dec dword [rax + 0xf4]
mov rcx, rbx
call fcn.1400a352c
add r14, 8
sub rsi, 1
jne 0x140030b90
mov rbx, rbp
mov r14, qword [rsp + 0x20]
cmp dword [rsp + 0xa0], 0
jne 0x140030c72
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140030c44
mov qword [rbx], 0
mov rax, qword [0x140116670]
test rax, rax
je 0x140030c3b
dec dword [rax + 0xf4]
call fcn.1400a352c
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140030c9d
mov qword [rbx + 0x10], 0
mov rax, qword [0x140116670]
test rax, rax
je 0x140030c67
dec dword [rax + 0xf4]
call fcn.1400a352c
mov qword [rbx + 0x18], rdi
jmp 0x140030c9d
cmp byte [rsp + 0xa8], 0
je 0x140030c9d
mov qword [r14 + 0x98], r14
mov ecx, dword [r14 + 8]
bts ecx, 0xb
mov dword [r14 + 8], ecx
mov eax, dword [r14 + 0xc]
or eax, dword [r14 + 4]
or eax, ecx
mov dword [r14 + 0x10], eax
test r15, r15
je 0x140030cbd
mov rax, qword [0x140116670]
test rax, rax
je 0x140030cb4
dec dword [rax + 0xf4]
mov rcx, r15
call fcn.1400a352c
nop
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret