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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rdx + 0x148]
mov rbx, rcx
mov qword [rcx + 0xb0], rax
mov rdi, rdx
mov esi, dword [rdx + 0x38]
mov eax, dword [rdx + 0x88]
movsx r15, word [rdx + 0x130]
mov qword [rdx + 0x148], 0
mov r13, qword [rcx]
mov ecx, dword [rdx + 0x34]
add esi, ecx
mov qword [rsp + 0x98], r13
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x88], eax
test ecx, ecx
jne 0x140030469
test esi, esi
jle 0x140030469
inc esi
mov eax, dword [rbx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
shl ecx, 3
lea rdx, [rsp + 0x88]
movsxd rbp, ecx
sub eax, ecx
add rbp, qword [rbx + 0x88]
mov rcx, rbx
movsxd r14, eax
mov qword [rsp + 0x90], rbp
and r14, 0xfffffffffffffff8
call fcn.14002eb40
cmp byte [rdi + 0x20], 0
je 0x1400304b6
cmp byte [rdi + 0x21], 0
je 0x1400304b6
mov eax, 0x20
jmp 0x1400304b8
xor eax, eax
and dword [rbx + 0xc8], 0xffffffdf
or dword [rbx + 0xc8], eax
movzx eax, byte [rdi + 0x133]
mov ecx, dword [rbx + 0xc8]
test al, al
je 0x14003058b
movzx eax, al
mov edx, 0xa
cmp esi, edx
cmovl esi, edx
shl eax, 2
xor eax, ecx
and eax, 0xc
xor eax, ecx
mov rcx, rbx
mov dword [rbx + 0xc8], eax
cmp byte [rdi + 0x133], 2
jne 0x140030518
mov edx, 4
call fcn.140030b40
mov eax, 8
lea r12d, [rax + 4]
jmp 0x140030528
mov r12d, 8
mov edx, r12d
call fcn.140030b40
xor eax, eax
mov edi, eax
cmp rdi, r12
jae 0x14003058b
xor ebp, ebp
lea r13, str.addr
nop dword [rax + rax]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140030571
mov rdx, qword [r13 + rdi*8]
mov r9b, 1
movsxd rax, ebp
or r8, 0xffffffffffffffff
imul rcx, rax, 0x38
mov qword [rsp + 0x20], 0
add rcx, qword [rbx + 0x98]
call fcn.14002cf90
inc ebp
inc rdi
cmp rdi, r12
jl 0x140030540
mov r13, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
and dword [rbx + 0xc8], 0xfffffffc
xor r9d, r9d
movsxd rax, esi
mov edi, r9d
imul r12, rax, 0x38
mov eax, r9d
cmp r12, r14
jg 0x1400305b0
sub r14, r12
lea rax, [r14 + rbp]
jmp 0x1400305b3
mov rdi, r12
mov qword [rbx + 0x68], rax
mov rcx, r9
imul rax, r15, 0x38
mov qword [rsp + 0x98], rax
cmp rax, r14
jg 0x1400305d4
sub r14, rax
lea rcx, [r14 + rbp]
jmp 0x1400305d7
add rdi, rax
movsxd rbp, dword [rsp + 0x88]
mov rax, r9
mov rdx, qword [rsp + 0x90]
shl rbp, 3
mov qword [rbx + 0x80], rcx
cmp rbp, r14
jg 0x140030603
sub r14, rbp
lea rax, [r14 + rdx]
jmp 0x140030606
add rdi, rbp
movsxd r8, dword [rsp + 0x80]
mov rcx, r8
mov qword [rbx + 0x70], rax
shl rcx, 3
mov rax, r9
mov qword [rsp + 0x88], rcx
cmp rcx, r14
jg 0x140030632
sub r14, rcx
lea rax, [r14 + rdx]
jmp 0x140030635
add rdi, rcx
mov qword [rbx + 0x78], rax
test rdi, rdi
je 0x1400306ed
mov rdx, rdi
mov rcx, r13
call fcn.140006b20
mov qword [rbx + 0x100], rax
mov rdx, rax
cmp byte [r13 + 0x67], 0
jne 0x1400306da
mov rax, qword [rbx + 0x68]
test rax, rax
jne 0x140030673
cmp r12, rdi
jg 0x140030673
sub rdi, r12
lea rax, [rdi + rdx]
mov rcx, qword [rbx + 0x80]
mov qword [rbx + 0x68], rax
test rcx, rcx
jne 0x140030697
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jg 0x140030697
sub rdi, rax
lea rcx, [rdi + rdx]
mov rax, qword [rbx + 0x70]
mov qword [rbx + 0x80], rcx
test rax, rax
jne 0x1400306b3
cmp rbp, rdi
jg 0x1400306b3
sub rdi, rbp
lea rax, [rdi + rdx]
mov rcx, qword [rsp + 0x88]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x1400306d4
cmp rcx, rdi
jg 0x1400306d4
sub rdi, rcx
lea rax, [rdi + rdx]
mov qword [rbx + 0x78], rax
jmp 0x1400306e2
mov rcx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
xor r9d, r9d
cmp byte [r13 + 0x67], 0
mov edi, 1
je 0x140030708
mov word [rbx + 0x20], r9w
mov qword [rbx + 0x24], 0
jmp 0x140030777
mov rax, qword [rbx + 0x80]
mov dword [rbx + 0x28], r8d
mov word [rbx + 0x20], r15w
test r15d, r15d
jle 0x140030738
add rax, 0x18
dec r15d
mov word [rax - 4], di
mov qword [rax], r13
mov dword [rax + 8], r9d
lea rax, [rax + 0x38]
test r15d, r15d
jg 0x140030721
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x24], esi
test esi, esi
jle 0x140030766
add rax, 0x18
nop word [rax + rax]
dec esi
mov word [rax - 4], r9w
mov qword [rax], r13
mov dword [rax + 8], r9d
lea rax, [rax + 0x38]
test esi, esi
jg 0x140030750
mov r8, rcx
xor edx, edx
mov rcx, qword [rbx + 0x78]
call fcn.1401a85d0
xor r9d, r9d
mov byte [rbx + 0xc5], dil
mov dword [rbx + 0x30], 0xffffffff
mov dword [rbx + 0x34], r9d
mov word [rbx + 0xc2], 0xff02
mov qword [rbx + 0x38], r9
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x40], r9d
mov qword [rbx + 0x50], r9
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret