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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x8d8
mov r14, qword [rcx + 8]
mov r12, qword [r14 + 0x3e8]
mov rbx, rcx
mov rdi, rdx
mov ebp, r8d
mov esi, r9d
cmp dword [r12 + 0x664], 0xffff
je 0x682472d8
mov rax, qword [r12 + 0x4e0]
test rax, rax
je 0x682472d8
test ebp, ebp
je 0x682472df
cmp ebp, dword [r12 + 0x4e8]
jbe 0x68247930
mov r10d, 6
mov eax, r10d
add rsp, 0x8d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [r12 + 0x20], ebp
jbe 0x682472b7
mov eax, esi
or eax, 3
test esi, 0x400
cmovne esi, eax
mov rax, qword [r14 + 0x2f0]
mov r13, qword [rax + 0x50]
mov qword [rsp + 0x48], rax
movabs rax, 0x1000000010000
mov qword [rbx + 0xfc], rax
test rdi, rdi
je 0x682474d8
mov eax, dword [rdi + 0x1c]
mov edx, dword [rdi + 0x40]
mov dword [rbx + 0xfc], eax
mov eax, dword [rdi + 0x20]
mov dword [rbx + 0x100], eax
cmp edx, 0xffffffff
je 0x682474d8
test sil, 8
jne 0x682474d8
mov rax, qword [rdi]
test dword [rax + 4], 0x7fff0000
jne 0x682474d8
test byte [rax + 9], 0x80
jne 0x682474d8
lea rcx, [rsp + 0x480]
mov r10, qword [rax + 0x2d0]
mov r9d, esi
mov r8d, ebp
mov qword [rsp + 0x30], rcx
lea rcx, [rbx + 0x68]
mov qword [rsp + 0x28], rcx
mov rax, qword [rax + 0xa0]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [r10 + 0x90]
test eax, eax
jne 0x682474d8
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x482]
movsx r8d, word [rsp + 0x484]
movsx edi, word [rsp + 0x486]
mov dword [rbx + 0x98], 0
shl eax, 6
mov dword [rbx + 0x60], 0x62697473
mov dword [rbx + 0x30], eax
movzx eax, word [rsp + 0x480]
shl eax, 6
mov dword [rbx + 0x34], eax
mov eax, r8d
shl eax, 6
mov dword [rbx + 0x38], eax
mov eax, edi
shl eax, 6
mov dword [rbx + 0x3c], eax
movzx eax, word [rsp + 0x488]
shl eax, 6
mov dword [rbx + 0x40], eax
movsx eax, word [rsp + 0x48a]
mov edx, eax
shl edx, 6
mov dword [rbx + 0x44], edx
movsx edx, word [rsp + 0x48c]
mov ecx, edx
shl ecx, 6
mov dword [rbx + 0x48], ecx
movzx ecx, word [rsp + 0x48e]
shl ecx, 6
and esi, 0x10
lea rsi, [rsp + 0xa0]
cmove eax, r8d
cmove edx, edi
mov dword [rbx + 0x4c], ecx
mov r9, rsi
lea rdi, [rsp + 0x90]
mov r8d, ebp
mov dword [rbx + 0x90], eax
mov rax, qword [r14 + 0x2d0]
mov rcx, r14
mov dword [rbx + 0x94], edx
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [rax + 0x140]
movzx eax, word [rsp + 0x90]
mov r10d, dword [rsp + 0x48]
mov dword [rbx + 0x50], eax
cmp byte [r14 + 0x190], 0
je 0x68247e70
cmp word [r14 + 0x1ba], 0
je 0x68247e70
mov rax, qword [r14 + 0x2d0]
mov r9, rsi
mov r8d, ebp
mov rcx, r14
mov dword [rsp + 0x48], r10d
mov edx, 1
mov qword [rsp + 0x20], rdi
call qword [rax + 0x140]
movzx eax, word [rsp + 0x90]
mov r10d, dword [rsp + 0x48]
mov dword [rbx + 0x54], eax
jmp 0x682472bd
test esi, 0x4000
jne 0x682472b7
test esi, 0x100000
jne 0x68247820
mov r15d, dword [r12 + 0x8b0]
test r15d, r15d
jne 0x68247948
mov eax, dword [r12 + 0x628]
mov byte [rsp + 0x5e], 0
movdqu xmm0, xmmword [r12 + 0x610]
mov dword [rsp + 0x58], eax
mov eax, dword [r12 + 0x62c]
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x54], eax
mov eax, esi
mov edx, esi
lea r15, [rsp + 0x480]
mov r9, rbx
shr eax, 1
and edx, 1
mov dword [rbx + 0x60], 0x6f75746c
mov r8, rdi
xor eax, 1
mov dword [rsp + 0x68], edx
mov dword [rbx + 0x98], 0
mov ecx, eax
mov eax, 1
sub eax, edx
and ecx, 1
mov rdx, r14
mov byte [rbx + 0xf9], al
lea rax, [0x68241780]
mov qword [rsp + 0x38], rax
lea rax, [0x68241bd0]
mov qword [rsp + 0x30], rax
mov eax, esi
sar eax, 0x10
mov byte [rsp + 0x5f], cl
and eax, 0xf
mov byte [rbx + 0xf8], cl
mov dword [rsp + 0x28], eax
movzx eax, cl
mov rcx, r15
mov dword [rsp + 0x20], eax
call qword [r13]
test esi, 0x100
je 0x682475c0
mov byte [rsp + 0x7f1], 1
mov eax, esi
and eax, 0x400
setne byte [rsp + 0x4da]
mov dword [rsp + 0x50], eax
mov rax, qword [r14 + 0xd0]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x68247cb0
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea r8, [rsp + 0xa0]
mov edx, ebp
call qword [rax]
mov r10d, eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x74], eax
test r10d, r10d
jne 0x682472bd
mov r8d, ebp
mov rdx, rdi
mov rcx, r15
call qword [r13 + 8]
mov r10d, eax
test eax, eax
jne 0x682472bd
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x60], rcx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rcx
call qword [r13 + 0x10]
mov rcx, qword [rsp + 0x48]
mov r10d, dword [rsp + 0x6c]
cmp al, 0xa4
mov r8d, eax
jne 0x682476aa
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rsp + 0x78]
mov dword [rsp + 0x48], r10d
mov byte [rbx + 0xf8], 0
call qword [r13 + 0x10]
mov byte [rsp + 0x5e], 1
mov r10d, dword [rsp + 0x48]
mov byte [rsp + 0x5f], 0
mov r8d, eax
mov rax, qword [r14 + 0xd0]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x68247cf0
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
mov dword [rsp + 0x60], r10d
lea r13, [rsp + 0x90]
mov rax, qword [rax]
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x90], rdx
mov edx, dword [rsp + 0x74]
mov dword [rsp + 0x98], edx
mov rdx, r13
call qword [rax + 8]
mov r8d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x60]
test r8d, r8d
jne 0x68247ce0
mov rax, qword [r14 + 0xd0]
cmp qword [rax + 0x50], 0
je 0x68247d0a
mov qword [rbx + 0xd0], 0
mov dword [rbx + 0xd8], 0
mov dword [rsp + 0x48], r10d
mov rcx, r15
call qword [rsp + 0x4f8]
mov rax, qword [r14 + 0xd0]
mov r10d, dword [rsp + 0x48]
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x682477cb
mov rax, qword [rdx]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x682477cb
mov ecx, dword [rsp + 0x4b8]
mov dword [rsp + 0x48], r10d
xor r8d, r8d
lea r9, [rsp + 0x90]
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x4c0]
mov qword [rsp + 0x98], rcx
mov rcx, qword [rdx + 8]
mov edx, ebp
call rax
mov edx, dword [rsp + 0x90]
mov r10d, dword [rsp + 0x48]
test eax, eax
mov dword [rsp + 0x4b8], edx
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x4c0], rdx
jne 0x68247e60
mov r11d, dword [rsp + 0x50]
test r11d, r11d
je 0x682479f0
mov edx, dword [rsp + 0x4b8]
mov rax, qword [rbx + 0xf0]
movdqu xmm2, xmmword [rsp + 0x80]
mov edi, dword [rsp + 0x58]
mov dword [rbx + 0x38], edx
mov edx, dword [rsp + 0x7e8]
mov dword [rbx + 0x40], edx
mov dword [rax + 0x20], edi
mov edi, dword [rsp + 0x54]
mov byte [rax + 0xc], 1
mov dword [rax + 0x24], edi
movups xmmword [rax + 0x10], xmm2
jmp 0x682472bd
mov rax, qword [rbx + 8]
cmp qword [rax + 0x4e0], 0
je 0x682474f0
test rdi, rdi
je 0x68247853
cmp word [rdi + 0x18], 0
mov r10d, 0x24
je 0x682472bd
cmp word [rdi + 0x1a], 0
je 0x682472bd
mov r15, qword [rax + 0x2d0]
mov edx, ebp
mov rcx, rbx
call qword [r15 + 0x168]
test eax, eax
jne 0x682474f0
mov dword [rsp + 0x48], eax
mov r8d, ebp
xor edx, edx
mov rcx, r14
lea rax, [rsp + 0xa0]
lea rsi, [rsp + 0x90]
mov dword [rbx + 0x60], 0x53564720
mov qword [rsp + 0x20], rax
mov r9, rsi
call qword [r15 + 0x140]
mov r9, rsi
mov r8d, ebp
mov rcx, r14
lea rax, [rsp + 0x480]
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [r15 + 0x140]
mov rax, qword [rbx + 8]
movzx ecx, word [rsp + 0xa0]
mov rdx, qword [rax + 0x80]
movzx r8d, word [rax + 0x68]
movzx edx, word [rdx + 0x18]
call fcn.680efa70
movzx ecx, word [rsp + 0x480]
mov word [rsp + 0xa0], ax
mov rax, qword [rbx + 8]
mov rdx, qword [rax + 0x80]
movzx r8d, word [rax + 0x68]
movzx edx, word [rdx + 0x1a]
call fcn.680efa70
movzx edx, word [rsp + 0xa0]
mov r10d, dword [rsp + 0x48]
shl eax, 6
shl edx, 6
and eax, 0x3fffc0
mov dword [rbx + 0x40], edx
mov dword [rbx + 0x4c], eax
jmp 0x682472bd
movzx ebp, word [rax + rbp*2]
test ebp, ebp
jne 0x682472df
jmp 0x682472b7
lea rcx, [r12 + 0x10b8]
mov edx, ebp
call fcn.682416b0
mov ecx, dword [r12 + 0x8b0]
mov byte [rsp + 0x5e], 0
movzx eax, al
mov r15d, dword [r12 + 0x624]
lea edx, [rcx - 1]
cmp eax, ecx
movzx edx, dl
cmovae rax, rdx
mov rax, qword [r12 + rax*8 + 0x8b8]
movdqu xmm1, xmmword [rax + 0x30]
mov ecx, dword [rax + 0x48]
mov r8d, dword [rax + 0x44]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], eax
movups xmmword [rsp + 0x80], xmm1
cmp r15d, r8d
je 0x68247530
mov ecx, dword [rbx + 0xfc]
mov edx, r15d
mov dword [rsp + 0x50], r8d
call fcn.680efa70
mov ecx, dword [rbx + 0x100]
mov r8d, dword [rsp + 0x50]
mov edx, r15d
mov dword [rbx + 0xfc], eax
call fcn.680efa70
mov byte [rsp + 0x5e], 1
mov dword [rbx + 0x100], eax
jmp 0x68247530
cmp word [r14 + 0x15a], 0
je 0x68247d68
mov rax, qword [r14 + 0x2d0]
xor r8d, r8d
xor r9d, r9d
xor edx, edx
lea r13, [rsp + 0x90]
mov word [rsp + 0x78], r8w
mov rcx, r14
mov r8d, ebp
mov word [rsp + 0x90], r9w
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r13
call qword [rax + 0x140]
movzx eax, word [rsp + 0x90]
movsx edx, word [rsp + 0x78]
mov dword [rbx + 0x40], eax
mov dword [rbx + 0x38], edx
mov dword [rbx + 0x50], eax
mov rax, qword [rbx + 0xf0]
mov byte [rax + 0xc], 0
cmp byte [r14 + 0x190], 0
je 0x68247a75
cmp word [r14 + 0x1ba], 0
jne 0x68247da0
cmp word [r14 + 0x208], 0xffff
je 0x68247e40
movsx eax, word [r14 + 0x24e]
movsx edx, word [r14 + 0x250]
xor ebp, ebp
sub eax, edx
mov dword [rbx + 0x4c], eax
mov dword [rbx + 0x54], eax
mov eax, 4
mov dword [rbx + 0x60], 0x6f75746c
test rdi, rdi
je 0x68247abe
cmp word [rdi + 0x1a], 0x18
sbb eax, eax
and eax, 0x100
add eax, 4
mov dword [rbx + 0xb8], eax
lea r12, [rbx + 0x98]
cmp dword [rsp + 0x80], 0x10000
jne 0x68247ae9
cmp dword [rsp + 0x8c], 0x10000
je 0x68247df0
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.680f1c80
movsxd rax, dword [rbx + 0x40]
movsxd rdx, dword [rsp + 0x80]
imul rax, rdx
cqo
lea rax, [rax + rdx + 0x8000]
movsxd rdx, dword [rsp + 0x8c]
sar rax, 0x10
mov dword [rbx + 0x40], eax
movsxd rax, dword [rbx + 0x4c]
imul rax, rdx
cqo
lea rax, [rax + rdx + 0x8000]
sar rax, 0x10
mov dword [rbx + 0x4c], eax
mov eax, dword [rsp + 0x58]
mov r15d, dword [rsp + 0x54]
mov edi, eax
or edi, r15d
je 0x68247b61
mov r8d, r15d
mov edx, eax
mov rcx, r12
mov edi, eax
call fcn.680f1d70
add dword [rbx + 0x40], edi
add dword [rbx + 0x4c], r15d
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x68247b74
cmp byte [rsp + 0x5e], 0
je 0x68247c30
cmp byte [rsp + 0x5f], 0
movsxd r8, dword [rbx + 0x100]
movsxd rcx, dword [rbx + 0xfc]
jne 0x68247d88
movsx edx, word [rbx + 0x9a]
test dx, dx
jle 0x68247bf4
mov rax, qword [rbx + 0xa0]
sub edx, 1
lea r9, [rax + rdx*8 + 8]
nop dword [rax + rax]
movsxd rdx, dword [rax]
add rax, 8
imul rdx, rcx
mov r10, rdx
sar r10, 0x3f
lea rdx, [rdx + r10 + 0x8000]
sar rdx, 0x10
mov dword [rax - 8], edx
movsxd rdx, dword [rax - 4]
imul rdx, r8
mov r10, rdx
sar r10, 0x3f
lea rdx, [rdx + r10 + 0x8000]
sar rdx, 0x10
mov dword [rax - 4], edx
cmp rax, r9
jne 0x68247bb0
movsxd rax, dword [rbx + 0x40]
imul rcx, rax
mov rax, rcx
sar rax, 0x3f
lea rax, [rcx + rax + 0x8000]
sar rax, 0x10
mov dword [rbx + 0x40], eax
movsxd rax, dword [rbx + 0x4c]
imul r8, rax
mov rax, r8
sar rax, 0x3f
lea rax, [r8 + rax + 0x8000]
sar rax, 0x10
mov dword [rbx + 0x4c], eax
mov rdx, r13
mov rcx, r12
call fcn.680f0eb0
mov eax, dword [rsp + 0x90]
mov edx, dword [rsp + 0x98]
sub edx, eax
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x30], edx
mov edx, dword [rsp + 0x9c]
mov ecx, edx
sub ecx, dword [rsp + 0x94]
mov dword [rbx + 0x3c], edx
mov dword [rbx + 0x34], ecx
test ebp, ebp
je 0x68247d48
mov ecx, dword [rbx + 0x40]
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
sub eax, edx
movsxd rdx, dword [rbx + 0x100]
mov dword [rbx + 0x44], eax
movsxd rax, dword [rbx + 0x48]
imul rax, rdx
cqo
lea rax, [rax + rdx + 0x8000]
sar rax, 0x10
mov dword [rbx + 0x48], eax
xor r10d, r10d
jmp 0x682472bd
mov rax, qword [r14 + 0x3e8]
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x78]
mov edx, ebp
lea rcx, [rax + 0x4f0]
call fcn.682421e0
mov r10d, eax
jmp 0x68247615
mov r10d, r8d
jmp 0x682472bd
mov rax, qword [r14 + 0x3e8]
cmp qword [rax + 0x518], 0
je 0x68247e10
test r8d, r8d
jne 0x68247ce0
mov rax, qword [r12 + 0x510]
test rax, rax
je 0x6824772f
mov edx, ebp
mov eax, dword [rax + rdx*4]
mov rdx, qword [r12 + 0x518]
lea rax, [rdx + rax - 1]
mov qword [rbx + 0xd0], rax
mov eax, dword [rsp + 0x74]
mov dword [rbx + 0xd8], eax
jmp 0x6824772f
and esi, 0x10
je 0x68247ca0
mov edx, dword [rbx + 0x4c]
lea rcx, [rbx + 0x30]
call fcn.68299df0
jmp 0x68247ca0
mov eax, dword [rsp + 0x7e8]
lea r13, [rsp + 0x90]
mov dword [rbx + 0x40], eax
mov dword [rbx + 0x50], eax
jmp 0x68247a51
cmp qword [rsp + 0x4e0], 0
jne 0x68247bf4
jmp 0x68247b8d
mov rax, qword [r14 + 0x2d0]
xor edx, edx
xor ecx, ecx
mov r8d, ebp
mov word [rsp + 0x78], dx
lea r9, [rsp + 0x78]
mov edx, 1
mov ebp, 1
mov word [rsp + 0x90], cx
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [rax + 0x140]
movsx eax, word [rsp + 0x78]
mov dword [rbx + 0x48], eax
movzx eax, word [rsp + 0x90]
mov dword [rbx + 0x4c], eax
jmp 0x68247a9b
mov eax, dword [rsp + 0x84]
or eax, dword [rsp + 0x88]
je 0x68247b3b
jmp 0x68247ae9
mov rcx, qword [rax + 0x4f0]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x48], r8d
call fcn.680f6430
mov r10d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x48]
jmp 0x682476ff
movsx eax, word [r14 + 0x13c]
movsx edx, word [r14 + 0x13e]
xor ebp, ebp
sub eax, edx
mov dword [rbx + 0x4c], eax
jmp 0x68247a9b
mov r10d, eax
jmp 0x682472bd
cmp word [r14 + 0x208], 0xffff
je 0x68247e95
movsx eax, word [r14 + 0x24e]
movsx edx, word [r14 + 0x250]
sub eax, edx
mov dword [rbx + 0x54], eax
jmp 0x682472bd
movsx eax, word [r14 + 0x13c]
movsx edx, word [r14 + 0x13e]
sub eax, edx
mov dword [rbx + 0x54], eax
jmp 0x682472bd