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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov qword [rsp + 0x88], r13
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
cmp r8d, 2
jae 0x14003a1b2
lea rax, [0x140190d34]
mov edi, 0xb
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd29
lea r8, [0x1401911e0]
lea rdx, [0x1401911c0]
call fcn.1400204a0
jmp 0x14003a4f4
test rdx, rdx
je 0x14003a1c8
mov rax, qword [rdx + 0x70]
inc word [rax + 0x2e]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x18]
jmp 0x14003a1d3
mov edx, r14d
call fcn.140035210
mov rbx, rax
mov rcx, qword [r13 + 0x70]
mov qword [rsp + 0x78], rbp
call fcn.14002fb30
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14003a4d0
mov rcx, qword [r13 + 0x50]
mov ebp, dword [rcx + 0x24]
bswap ebp
lea eax, [rbp + 1]
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x14003a285
test rbx, rbx
jne 0x14003a258
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.14002eb40
mov edi, eax
test eax, eax
jne 0x14003a4ef
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14003a258
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], r12b
mov rcx, qword [rbx + 0x70]
call fcn.14002fb30
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14003a4d0
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.140133450
cmp byte [rsi + 0x21], r12b
je 0x14003a2b8
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.1400342a0
mov edi, dword [rsp + 0x80]
test edi, edi
jne 0x14003a4d0
test ebp, ebp
je 0x14003a45a
mov rax, qword [r13 + 0x50]
lea r8, [rsp + 0x70]
mov rcx, qword [rsi]
xor r9d, r9d
mov r12d, dword [rax + 0x20]
bswap r12d
mov edx, r12d
call fcn.14002eb40
mov edi, eax
test eax, eax
jne 0x14003a4d0
mov rcx, qword [rsp + 0x70]
mov rbp, qword [rcx + 0x10]
cmp r12d, dword [rbp + 0x88]
je 0x14003a322
mov rax, qword [rcx + 8]
mov qword [rbp + 0x50], rax
xor eax, eax
cmp r12d, 1
mov qword [rbp + 0x70], rcx
mov ecx, 0x64
mov qword [rbp + 0x48], rsi
cmove eax, ecx
mov dword [rbp + 0x88], r12d
mov byte [rbp + 5], al
mov rax, qword [rbp + 0x50]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
mov r13d, dword [rax + 4]
bswap r13d
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x14003a36f
lea rax, [0x140190d34]
mov edi, 0xb
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd5f
lea r8, [0x1401911e0]
lea rdx, [0x1401911c0]
call fcn.1400204a0
mov r15, rbp
jmp 0x14003a4d0
lea eax, [rcx - 8]
mov r15, rbp
cmp r13d, eax
jae 0x14003a452
mov rcx, qword [rbp + 0x70]
call fcn.14002fb30
mov edi, eax
test eax, eax
jne 0x14003a4d0
mov rax, qword [rbp + 0x50]
lea ecx, [r13 + 1]
mov edx, r14d
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [r13*4 + 8]
mov rax, qword [rbp + 0x50]
mov dword [rcx + rax], edx
test rbx, rbx
je 0x14003a3eb
test byte [rsi + 0x26], 4
jne 0x14003a3eb
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x20]
cmp byte [rdx + 0x11], dil
jne 0x14003a3eb
movzx eax, word [rcx + 0x2c]
test al, 2
je 0x14003a3eb
cmp dword [rdx + 0x80], edi
jne 0x14003a3eb
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x2c], ax
mov r12, qword [rsi + 0x58]
xor edi, edi
test r12, r12
jne 0x14003a428
mov r15d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.14001d9f0
mov r12, rax
test rax, rax
je 0x14003a444
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.140133450
mov dword [r12], r15d
mov r15, rbp
mov qword [rsi + 0x58], r12
cmp r14d, dword [r12]
ja 0x14003a4d0
mov edx, r14d
mov rcx, r12
call fcn.140028520
mov edi, eax
jmp 0x14003a4d0
mov qword [rsi + 0x58], r12
mov edi, 7
mov r15, rbp
jmp 0x14003a4d0
mov r13, qword [rsp + 0x88]
test rbx, rbx
jne 0x14003a4a5
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.14002eb40
mov edi, eax
test eax, eax
jne 0x14003a4e1
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14003a4a5
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], dil
mov rcx, qword [rbx + 0x70]
call fcn.14002fb30
mov edi, eax
test eax, eax
jne 0x14003a4d0
mov rax, qword [rbx + 0x50]
bswap r12d
bswap r14d
mov dword [rax], r12d
mov rax, qword [rbx + 0x50]
mov dword [rax + 4], edi
mov rax, qword [r13 + 0x50]
mov dword [rax + 0x20], r14d
test rbx, rbx
je 0x14003a4e1
mov rcx, qword [rbx + 0x70]
mov byte [rbx], 0
call fcn.14002f1c0
test r15, r15
je 0x14003a4ef
mov rcx, qword [r15 + 0x70]
call fcn.14002f1c0
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret