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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rsi, rcx
mov dword [rcx + 0x20], eax
mov r8, rcx
mov rcx, qword [rcx + 0x128]
call fcn.14001c9b0
mov rcx, qword [rsi + 0x120]
mov edi, eax
mov r8, qword [rcx]
test r8, r8
je 0x140016010
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r8 + 0x40]
mov qword [r8 + 0x20], rdx
mov r8, rdx
test rdx, rdx
jne 0x140016000
mov rcx, qword [rcx]
call fcn.1400126c0
test rax, rax
je 0x140016051
mov qword [rsp + 0x30], rbx
test edi, edi
jne 0x14001603f
mov edx, dword [rax + 0x30]
mov rcx, rsi
mov rbx, qword [rax + 0x20]
call fcn.140015f10
mov edi, eax
mov rax, rbx
test rbx, rbx
jne 0x140016022
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x40
xor ebp, ebp
xor r12d, r12d
mov r13, rdx
mov rsi, rcx
test rdx, rdx
je 0x140016451
mov ebx, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.140006390
mov r12, rax
test rax, rax
je 0x140016435
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call fcn.1401a7d70
mov dword [r12], ebx
test r12, r12
jne 0x14001644b
lea eax, [r12 + 7]
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r13 + 0x18]
jmp 0x140016454
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x20], eax
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
test r13, r13
jne 0x14001647f
cmp qword [rsi + 0x128], rbp
je 0x14001647f
mov rcx, rsi
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
jmp 0x140015fc0
mov qword [rsp + 0x70], rdi
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], r14
mov r14, qword [rbx]
test r13, r13
je 0x1400164e9
cmp qword [rsi + 0x128], rbp
jne 0x1400164e9
mov rax, qword [r13 + 8]
mov rdi, r14
test rax, rax
cmovne rdi, rax
mov rax, qword [r13]
mov qword [rbx], rax
cmp qword [rbx], rdi
jge 0x1400164df
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140015230
mov ebp, eax
test eax, eax
je 0x1400164b3
jmp 0x140016593
test ebp, ebp
jne 0x140016593
jmp 0x1400164ec
mov qword [rbx], rbp
mov qword [rsp + 0x30], r15
cmp qword [rbx], r14
jge 0x14001658e
lea rax, [rsp + 0x80]
mov dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov rcx, rsi
call fcn.140014690
mov r15d, dword [rsp + 0x78]
mov ebp, eax
test r15d, r15d
jne 0x140016558
mov eax, dword [rsi + 0xb8]
add rax, qword [rsi + 0x68]
mov rcx, qword [rbx]
cmp rax, rcx
jne 0x140016558
mov rax, r14
sub rax, rcx
mov rcx, qword [rsi + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r15, rax
xor edi, edi
test ebp, ebp
jne 0x14001658e
nop
cmp edi, r15d
jae 0x1400164f1
cmp qword [rbx], r14
jge 0x14001658e
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140015230
inc edi
mov ebp, eax
test eax, eax
je 0x140016560
mov r15, qword [rsp + 0x30]
test r13, r13
je 0x14001662f
mov rcx, qword [rsi + 0xc8]
mov eax, dword [r13 + 0x1c]
add rcx, 4
imul rcx, rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1400165ff
mov eax, dword [rcx + 0x88]
cmp dword [r13 + 0x30], eax
je 0x1400165de
mov dword [r13 + 0x24], 0
mov eax, dword [rcx + 0x88]
mov dword [r13 + 0x30], eax
mov eax, dword [r13 + 0x24]
cmp eax, dword [rcx + 0x58]
jae 0x1400165fd
mov dword [rcx + 0x58], eax
mov eax, dword [r13 + 0x28]
mov dword [rcx + 0x60], eax
mov eax, dword [r13 + 0x2c]
mov dword [rcx + 0x64], eax
call fcn.14001a340
xor ebp, ebp
mov edi, dword [r13 + 0x1c]
test ebp, ebp
jne 0x14001662f
cmp edi, dword [rsi + 0x3c]
jae 0x14001662f
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r12
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140015230
inc edi
mov ebp, eax
test eax, eax
je 0x140016607
test r12, r12
je 0x140016660
cmp dword [r12 + 8], 0
je 0x140016658
lea rdi, [r12 + 0x10]
mov esi, 0x3e
mov rcx, qword [rdi]
call fcn.140011c70
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x140016646
mov rcx, r12
call fcn.140006590
mov rdi, qword [rsp + 0x70]
test ebp, ebp
jne 0x14001666c
mov qword [rbx], r14
mov eax, ebp
mov r14, qword [rsp + 0x38]
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x10], edx
push rsi
push r14
sub rsp, 0x38
mov r14d, dword [rcx + 0x30]
mov rsi, rcx
test r14d, r14d
jne 0x1400195f2
mov eax, dword [rcx + 0x80]
cmp r8d, eax
jge 0x1400195f2
xor ecx, ecx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], r13
cmp edx, 1
mov r13d, ecx
mov qword [rsp + 0x20], r15
setne r13b
add r13d, r8d
mov r15d, r13d
cmp r13d, eax
jge 0x14001953f
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
movsxd rax, r13d
mov qword [rsp + 0x30], r12
imul r12, rax, 0x38
nop word [rax + rax]
mov rax, qword [rsi + 0x78]
mov rbp, qword [r12 + rax + 0x10]
test rbp, rbp
je 0x14001951a
cmp dword [rbp + 8], 0
je 0x140019512
lea rbx, [rbp + 0x10]
mov edi, 0x3e
nop dword [rax]
mov rcx, qword [rbx]
call fcn.140011c70
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140019500
mov rcx, rbp
call fcn.140006590
inc r15d
add r12, 0x38
cmp r15d, dword [rsi + 0x80]
jl 0x1400194e0
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov dword [rsi + 0x80], r13d
cmp edx, 1
jne 0x1400195ae
movsxd rax, r13d
imul rbx, rax, 0x38
add rbx, qword [rsi + 0x78]
cmp dword [rbx + 0x20], 0
je 0x140019599
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
test rax, rax
je 0x140019599
lea rdx, [0x1402210a0]
cmp rax, rdx
jne 0x140019593
mov rdx, qword [rsi + 0xc8]
mov eax, dword [rbx + 0x1c]
add rdx, 4
imul rdx, rax
call fcn.1400050b0
mov r14d, eax
mov ecx, dword [rbx + 0x1c]
mov dword [rsi + 0x3c], ecx
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
ret
cmp qword [rsi + 0x128], 0
jne 0x1400195c2
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x140019599
test r13d, r13d
je 0x1400195d6
lea eax, [r13 - 1]
movsxd rcx, eax
imul rcx, rcx, 0x38
add rcx, qword [rsi + 0x78]
mov rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
jmp 0x1400163f0
mov eax, r14d
add rsp, 0x38
pop r14
pop rsi
ret