Function at 0x1800504b0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x18013d010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rdx, qword [rsi + 0x120]
mov r13, qword [rdx]
mov qword [rsp + 0x70], r13
mov r9, qword [rdx + 8]
mov qword [rsp + 0x68], r9
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x60], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x58], rax
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x70], rax
mov rax, qword [rdx + 0x28]
mov qword [rbp - 0x78], rax
xor r15d, r15d
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
xorps xmm7, xmm7
xorps xmm6, xmm6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
mov qword [rbp - 8], r15
mov qword [rbp], r15
mov dword [rbp + 8], r15d
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x78], r15
mov rax, qword [rsi + 0x1c0]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x10], r15d
mov dword [rbp - 0x38], r15d
mov dword [rbp - 0xc], r15d
mov dword [rsp + 0x44], r15d
mov eax, dword [rsi + 0x11c]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsi + 0x118]
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x41], 1
mov byte [rbp - 0x80], r15b
xor al, al
mov byte [rsp + 0x40], al
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x60], r15d
mov edi, r15d
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], al
lea r12d, [r15 + 0x10]
test r13, r13
je 0x1800508c5
mov rax, qword [r13]
lea rdx, [rbp - 0x50]
mov rcx, r13
call qword [rax + 0x40]
test eax, eax
js 0x18005157b
lea ecx, [r15 + 0x40]
call fcn.18009a38c
mov rbx, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov r14d, dword [rsi + 0x150]
mov rcx, qword [rbp - 0x50]
mov r15d, dword [rcx + 4]
mov r13d, dword [rsi + 0x168]
mov ecx, dword [rsi + 0x184]
cmp ecx, 2
jne 0x180050646
mov r8d, r12d
xor edx, edx
jmp 0x180050663
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050790
cmp ecx, 0x20
jne 0x180050759
lea r8d, [rcx + 0x20]
mov dl, 1
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
mov r9d, r13d
mov rcx, rbx
call fcn.18004ea60
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp - 0x50]
mov eax, dword [rcx + 4]
xorps xmm7, xmm7
cvtsi2ss xmm7, rax
mov eax, dword [rsi + 0x150]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm7, xmm0
mov r13, qword [rsp + 0x70]
cmp qword [rbp - 0x60], 0
jne 0x180050802
mov rax, qword [r13]
mov edx, 0x20000
mov r8d, 0x40000
mov r14d, dword [rsp + 0x5c]
mov r15d, dword [rsp + 0x58]
cmp r14d, r15d
cmove r8d, edx
xor edx, edx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov rcx, r13
call qword [rax + 0x18]
test eax, eax
js 0x180051622
mov rax, qword [r13]
lea r8, [rbp - 0x60]
lea rdx, [0x1800f8ea8]
mov rcx, r13
call qword [rax + 0x70]
test eax, eax
js 0x180051622
cmp r14d, r15d
je 0x1800507cf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r14, rax
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1800507af
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ecx, ecx
call fcn.1800a8b28
mov r13, qword [rbp - 0x28]
jmp 0x1800515b4
cmp ecx, 4
jne 0x180050769
lea r8d, [rcx + 0x14]
xor edx, edx
jmp 0x180050663
cmp ecx, 1
jne 0x180050779
lea r8d, [rcx + 7]
xor edx, edx
jmp 0x180050663
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov ecx, dword [rsi + 0x184]
xor eax, eax
mov r8d, eax
jmp 0x180050796
mov r8d, 0x20
cmp ecx, 0x10
je 0x180050661
cmp ecx, 0x20
je 0x180050661
xor edx, edx
jmp 0x180050663
mov rax, qword [r13]
mov rdx, r14
mov rcx, r13
call qword [rax + 0x68]
test eax, eax
js 0x180051622
mov rax, qword [rsi + 0x120]
mov qword [rax + 0x20], r14
mov rcx, qword [rsi + 0x120]
mov rax, qword [rbp - 0x60]
mov qword [rcx + 0x10], rax
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x60]
test eax, eax
js 0x180051622
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x50]
test eax, eax
js 0x180051622
xor r14d, r14d
mov dword [rbp - 0x34], r14d
mov rax, qword [r13]
lea rdx, [rbp - 0x34]
mov rcx, r13
call qword [rax + 0x20]
test eax, eax
js 0x180051622
mov ebx, dword [rsi + 0x168]
mov eax, dword [rsi + 0x154]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm7
call fcn.1800c7298
cvttss2si r15, xmm0
imul r15d, ebx
mov edx, dword [rbp - 0x34]
imul edx, ebx
mov dword [rbp - 0x34], edx
mov ecx, dword [rsi + 0x184]
cmp ecx, 2
jne 0x18005085e
mov r14d, ecx
jmp 0x18005089d
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050897
cmp ecx, 0x20
jne 0x180050873
lea r14d, [rcx - 0x18]
jmp 0x18005089d
cmp ecx, 4
jne 0x18005087e
lea r14d, [rcx - 1]
jmp 0x18005089d
cmp ecx, 1
jne 0x180050888
mov r14d, ecx
jmp 0x18005089d
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov edx, dword [rbp - 0x34]
jmp 0x18005089d
mov r14d, 4
lea ebx, [r15 + rdx]
xor ecx, ecx
call fcn.1800a8b28
mov ecx, ebx
mov rdx, r14
call fcn.1800ae400
mov qword [rbp - 8], rax
mov dword [rbp], ebx
xor r15d, r15d
mov qword [rbp + 4], r15
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180050b75
mov rcx, qword [r9]
mov r8, qword [rcx + 0x40]
lea rdx, [rbp - 0x48]
mov rcx, r9
call r8
test eax, eax
js 0x18005157b
mov ecx, 0x40
call fcn.18009a38c
mov rbx, rax
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov rcx, qword [rbp - 0x48]
mov r14d, dword [rcx + 4]
mov r15d, dword [rsi + 0x150]
mov r13d, dword [rsi + 0x164]
mov ecx, dword [rsi + 0x180]
cmp ecx, 2
je 0x180050b02
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050aea
cmp ecx, 0x20
jne 0x180050ab3
lea r12d, [rcx + 0x20]
mov dl, 1
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
mov r9d, r13d
mov r8d, r12d
mov rcx, rbx
call fcn.18004ea60
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp - 0x48]
mov eax, dword [rcx + 4]
xorps xmm6, xmm6
cvtsi2ss xmm6, rax
mov eax, dword [rsi + 0x150]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm6, xmm0
mov rbx, qword [rsp + 0x68]
xor r15d, r15d
cmp qword [rbp - 0x58], r15
jne 0x180050a58
mov rax, qword [rbx]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor edx, edx
mov r8d, 0x40000
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
js 0x18005157b
mov rax, qword [rbx]
lea r8, [rbp - 0x58]
lea rdx, [0x1800f8fa0]
mov rcx, rbx
call qword [rax + 0x70]
test eax, eax
js 0x18005157b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r14, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x18005157b
mov rcx, qword [rbx]
mov r8, qword [rcx + 0x68]
mov rdx, rax
mov rcx, rbx
call r8
test eax, eax
js 0x18005157b
mov rdx, qword [rsi + 0x120]
mov rcx, qword [rbp - 0x58]
mov qword [rdx + 0x18], rcx
mov rax, qword [rsi + 0x120]
mov qword [rax + 0x28], r14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x60]
test eax, eax
js 0x18005157b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
test eax, eax
js 0x18005157b
mov dword [rbp - 0x30], r15d
mov rax, qword [rbx]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
js 0x18005157b
mov ebx, dword [rsi + 0x164]
mov eax, dword [rsi + 0x154]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
call fcn.1800c7298
cvttss2si r15, xmm0
imul r15d, ebx
mov edx, dword [rbp - 0x30]
imul edx, ebx
mov dword [rbp - 0x30], edx
mov ecx, dword [rsi + 0x180]
cmp ecx, 2
jne 0x180050b09
mov r14d, ecx
jmp 0x180050b4d
cmp ecx, 4
jne 0x180050ac3
lea r12d, [rcx + 0x14]
xor edx, edx
jmp 0x18005094d
cmp ecx, 1
jne 0x180050ad3
lea r12d, [rcx + 7]
xor edx, edx
jmp 0x18005094d
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov ecx, dword [rsi + 0x180]
xor eax, eax
mov r12d, eax
jmp 0x180050af0
mov r12d, 0x20
cmp ecx, 0x10
je 0x18005094b
cmp ecx, 0x20
je 0x18005094b
xor edx, edx
jmp 0x18005094d
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050b47
cmp ecx, 0x20
jne 0x180050b1e
lea r14d, [rcx - 0x18]
jmp 0x180050b4d
cmp ecx, 4
jne 0x180050b29
lea r14d, [rcx - 1]
jmp 0x180050b4d
cmp ecx, 1
jne 0x180050b33
mov r14d, ecx
jmp 0x180050b4d
xor edx, edx
mov rcx, rsi
call fcn.180051700
xor eax, eax
mov r14d, eax
mov edx, dword [rbp - 0x30]
jmp 0x180050b4d
mov r14d, 4
lea ebx, [r15 + rdx]
xor ecx, ecx
call fcn.1800a8b28
mov ecx, ebx
mov rdx, r14
call fcn.1800ae400
mov r13, rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], ebx
xor r15d, r15d
mov qword [rbp - 0x1c], r15
jmp 0x180050b79
mov r13, qword [rbp - 0x28]
mov ecx, dword [rsi + 0x128]
cmp ecx, 1
jne 0x180050ccc
mov ebx, dword [rsi + 0x184]
cmp ebx, 2
jne 0x180050b97
mov edi, ebx
jmp 0x180050bd8
lea eax, [rbx - 8]
test eax, 0xfffffff7
je 0x180050bd3
cmp ebx, 0x20
jne 0x180050bab
lea edi, [rbx - 0x18]
jmp 0x180050bd8
cmp ebx, 4
jne 0x180050bb5
lea edi, [rbx - 1]
jmp 0x180050bd8
cmp ebx, 1
jne 0x180050bbe
mov edi, ebx
jmp 0x180050bd8
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov edi, r15d
mov ebx, dword [rsi + 0x184]
jmp 0x180050bd8
mov edi, 4
mov r15d, dword [rsi + 0x154]
mov r14d, dword [rsi + 0x168]
xorps xmm0, xmm0
cvtsi2ss xmm0, r15
mulss xmm0, xmm7
call fcn.1800c7298
xor eax, eax
movss xmm1, dword [0x180125cf8]
comiss xmm0, xmm1
jb 0x180050c1c
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180050c1c
movabs r12, 0x8000000000000000
mov rax, r12
cvttss2si rcx, xmm0
add rcx, rax
imul ecx, edi
imul ecx, r14d
mov qword [rsp + 0x60], rcx
cmp ebx, 2
jne 0x180050c47
mov edi, ebx
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
lea eax, [rbx - 8]
test eax, 0xfffffff7
je 0x180050e13
cmp ebx, 0x20
jne 0x180050c6f
mov edi, 8
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
cmp ebx, 4
jne 0x180050c89
mov edi, 3
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
cmp ebx, 1
jne 0x180050ca0
mov edi, ebx
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
xor edx, edx
mov rcx, rsi
call fcn.180051700
xor eax, eax
mov edi, eax
mov r14d, dword [rsi + 0x168]
mov r15d, dword [rsi + 0x154]
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
test ecx, ecx
jne 0x180050e28
mov ebx, dword [rsi + 0x180]
cmp ebx, 2
jne 0x180050ce3
mov edi, ebx
jmp 0x180050d24
lea eax, [rbx - 8]
test eax, 0xfffffff7
je 0x180050d1f
cmp ebx, 0x20
jne 0x180050cf7
lea edi, [rbx - 0x18]
jmp 0x180050d24
cmp ebx, 4
jne 0x180050d01
lea edi, [rbx - 1]
jmp 0x180050d24
cmp ebx, 1
jne 0x180050d0a
mov edi, ebx
jmp 0x180050d24
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov edi, r15d
mov ebx, dword [rsi + 0x180]
jmp 0x180050d24
mov edi, 4
mov r15d, dword [rsi + 0x154]
mov r14d, dword [rsi + 0x164]
xorps xmm0, xmm0
cvtsi2ss xmm0, r15
mulss xmm0, xmm6
call fcn.1800c7298
xor ecx, ecx
movss xmm1, dword [0x180125cf8]
comiss xmm0, xmm1
jb 0x180050d68
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180050d68
movabs r12, 0x8000000000000000
mov rcx, r12
cvttss2si rax, xmm0
add rax, rcx
imul eax, edi
imul eax, r14d
mov dword [rsp + 0x60], eax
cmp ebx, 2
jne 0x180050d92
mov edi, ebx
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
lea eax, [rbx - 8]
test eax, 0xfffffff7
je 0x180050e13
cmp ebx, 0x20
jne 0x180050db6
mov edi, 8
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
cmp ebx, 4
jne 0x180050dd0
mov edi, 3
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
cmp ebx, 1
jne 0x180050de7
mov edi, ebx
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
xor edx, edx
mov rcx, rsi
call fcn.180051700
xor eax, eax
mov edi, eax
mov r14d, dword [rsi + 0x164]
mov r15d, dword [rsi + 0x154]
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
mov edi, 4
imul edi, r15d
imul edi, r14d
xor r15d, r15d
jmp 0x180051024
cmp ecx, 2
jne 0x180051024
mov ecx, dword [rsi + 0x180]
cmp ecx, 2
jne 0x180050e40
mov edi, ecx
jmp 0x180050e7b
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050e76
cmp ecx, 0x20
jne 0x180050e54
lea edi, [rcx - 0x18]
jmp 0x180050e7b
cmp ecx, 4
jne 0x180050e5e
lea edi, [rcx - 1]
jmp 0x180050e7b
cmp ecx, 1
jne 0x180050e67
mov edi, ecx
jmp 0x180050e7b
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov rdi, r15
jmp 0x180050e7b
mov edi, 4
mov ebx, dword [rsi + 0x154]
xorps xmm0, xmm0
cvtsi2ss xmm0, rbx
mulss xmm0, xmm6
call fcn.1800c7298
xor eax, eax
movabs r12, 0x8000000000000000
movss xmm6, dword [0x180125cf8]
comiss xmm0, xmm6
jb 0x180050eb7
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x180050eb7
mov rax, r12
cvttss2si r14, xmm0
add r14, rax
mov eax, dword [rsi + 0x164]
imul r14, rax
imul r14, rdi
mov ecx, dword [rsi + 0x184]
cmp ecx, 2
jne 0x180050edc
mov edi, ecx
jmp 0x180050f1d
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050f18
cmp ecx, 0x20
jne 0x180050ef0
lea edi, [rcx - 0x18]
jmp 0x180050f1d
cmp ecx, 4
jne 0x180050efa
lea edi, [rcx - 1]
jmp 0x180050f1d
cmp ecx, 1
jne 0x180050f03
mov edi, ecx
jmp 0x180050f1d
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov ebx, dword [rsi + 0x154]
mov rdi, r15
jmp 0x180050f1d
mov edi, 4
xorps xmm0, xmm0
cvtsi2ss xmm0, rbx
mulss xmm0, xmm7
call fcn.1800c7298
xor eax, eax
comiss xmm0, xmm6
jb 0x180050f41
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x180050f41
mov rax, r12
cvttss2si rcx, xmm0
add rcx, rax
mov eax, dword [rsi + 0x168]
imul rcx, rax
imul rcx, rdi
cmp rcx, r14
cmovb ecx, r14d
mov dword [rsp + 0x60], ecx
mov ecx, dword [rsi + 0x180]
cmp ecx, 2
jne 0x180050f72
mov r14d, ecx
jmp 0x180050fb7
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x180050fb1
cmp ecx, 0x20
jne 0x180050f87
lea r14d, [rcx - 0x18]
jmp 0x180050fb7
cmp ecx, 4
jne 0x180050f92
lea r14d, [rcx - 1]
jmp 0x180050fb7
cmp ecx, 1
jne 0x180050f9c
mov r14d, ecx
jmp 0x180050fb7
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov r14d, r15d
mov ebx, dword [rsi + 0x154]
jmp 0x180050fb7
mov r14d, 4
imul r14d, ebx
imul r14d, dword [rsi + 0x164]
mov ecx, dword [rsi + 0x184]
cmp ecx, 2
jne 0x180050fd2
mov edi, ecx
jmp 0x180051013
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x18005100e
cmp ecx, 0x20
jne 0x180050fe6
lea edi, [rcx - 0x18]
jmp 0x180051013
cmp ecx, 4
jne 0x180050ff0
lea edi, [rcx - 1]
jmp 0x180051013
cmp ecx, 1
jne 0x180050ff9
mov edi, ecx
jmp 0x180051013
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov edi, r15d
mov ebx, dword [rsi + 0x154]
jmp 0x180051013
mov edi, 4
imul edi, dword [rsi + 0x168]
imul edi, ebx
cmp edi, r14d
cmovb edi, r14d
mov rax, qword [rsp + 0x60]
lea ecx, [rax + rax]
mov edx, 1
call fcn.1800ae400
mov qword [rsp + 0x50], rax
mov ecx, edi
mov edx, 1
call fcn.1800ae400
mov qword [rsi + 0x140], rax
cmp qword [rsp + 0x50], 0
je 0x18005157f
test rax, rax
je 0x18005157f
cmp dword [rsi + 0x12c], 1
je 0x18005157f
movss xmm6, dword [0x180125ae8]
mov r14d, dword [rsp + 0x44]
mov r12d, dword [rbp - 0x80]
test r12b, r12b
jne 0x18005130c
cmp qword [rsp + 0x70], 0
je 0x180051237
mov ebx, dword [rsi + 0x154]
xorps xmm0, xmm0
cvtsi2ss xmm0, rbx
mulss xmm0, xmm7
call fcn.1800c7e50
cvttss2si r14, xmm0
ucomiss xmm7, xmm6
jp 0x1800510b9
je 0x1800510bc
dec r14d
mov dword [rsp + 0x44], r15d
test ebx, ebx
je 0x180051304
mov r13, qword [rsp + 0x50]
nop
mov edi, dword [rsi + 0x184]
mov ebx, dword [rsi + 0x168]
mov r8d, r14d
imul r8d, ebx
mov r9d, edi
mov rdx, r13
lea rcx, [rbp - 8]
call fcn.18004e880
movzx r12d, al
test al, al
je 0x180051304
cmp edi, 2
jne 0x180051107
mov ecx, edi
jmp 0x180051149
lea eax, [rdi - 8]
test eax, 0xfffffff7
je 0x180051144
cmp edi, 0x20
jne 0x18005111b
lea ecx, [rdi - 0x18]
jmp 0x180051149
cmp edi, 4
jne 0x180051125
lea ecx, [rdi - 1]
jmp 0x180051149
cmp edi, 1
jne 0x18005112e
mov ecx, edi
jmp 0x180051149
xor edx, edx
mov rcx, rsi
call fcn.180051700
xor eax, eax
mov ecx, eax
mov ebx, dword [rsi + 0x168]
jmp 0x180051149
mov ecx, 4
imul ecx, ebx
imul ecx, r15d
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov edx, ecx
add rdx, qword [rsi + 0x140]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, r13
mov rcx, qword [rsp + 0x48]
call fcn.18004ed30
add r15d, dword [rsp + 0x44]
mov dword [rsp + 0x44], r15d
lea r14d, [rbx + 1]
mov ecx, dword [rsi + 0x154]
cmp r15d, ecx
jb 0x1800510d0
cmp byte [rsi + 0x149], bl
je 0x1800511c0
lea r9, [rsi + 0x230]
mov r8, qword [rsi + 0x140]
mov rdx, qword [rsi + 0x138]
mov rcx, rsi
call fcn.180051e50
mov r14d, r15d
jmp 0x18005123a
mov edx, dword [rsi + 0x17c]
cmp edx, 2
jne 0x1800511cf
mov eax, edx
jmp 0x180051210
lea eax, [rdx - 8]
test eax, 0xfffffff7
je 0x18005120b
cmp edx, 0x20
jne 0x1800511e3
lea eax, [rdx - 0x18]
jmp 0x180051210
cmp edx, 4
jne 0x1800511ed
lea eax, [rdx - 1]
jmp 0x180051210
cmp edx, r14d
jne 0x1800511f7
mov eax, r14d
jmp 0x180051210
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov eax, ebx
mov ecx, dword [rsi + 0x154]
jmp 0x180051210
mov eax, 4
imul ecx, dword [rsi + 0x160]
imul ecx, eax
mov r8d, ecx
mov rdx, qword [rsi + 0x140]
mov rcx, qword [rsi + 0x138]
call fcn.1800a0f40
mov r14d, dword [rsp + 0x44]
jmp 0x18005123a
mov r12b, 1
cmp byte [rsp + 0x40], 0
jne 0x180051309
mov rbx, qword [rsi + 0x1c8]
mov edi, dword [rbp - 0x10]
and edi, 1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
movaps xmm3, xmm0
mov r8d, dword [rsi + 0x154]
mov rdx, qword [rsi + 0x138]
mov rcx, qword [rsi + 0x130]
call qword [rbp - 0x68]
mov ecx, dword [rsi + 0x154]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
mov ecx, dword [rsi + 0x150]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
addsd xmm1, qword [rsi + 0x278]
movsd qword [rsi + 0x278], xmm1
xor r15d, r15d
cmp eax, 1
jne 0x1800512f6
lea r8, [0x180050470]
mov qword [rsp + 0x28], r15
mov r9, rsi
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18005157b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18005157b
mov byte [rsp + 0x40], 1
jmp 0x18005130c
cmp eax, 2
jne 0x18005130c
lea r8, [0x180050490]
jmp 0x1800512be
mov r14d, dword [rsp + 0x44]
xor r15d, r15d
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180051418
test r12b, r12b
je 0x180051418
cmp byte [rsp + 0x41], 0
jne 0x180051333
test r14d, r14d
jne 0x1800513f3
cmp byte [rsi + 0x148], 0
je 0x18005135b
lea r9, [rsi + 0x1e8]
mov r8, qword [rsi + 0x130]
mov rdx, qword [rsi + 0x140]
mov rcx, rsi
call fcn.180051e50
jmp 0x1800513c7
mov ecx, dword [rsi + 0x17c]
cmp ecx, 2
je 0x1800513a1
lea eax, [rcx - 8]
test eax, 0xfffffff7
je 0x18005139c
cmp ecx, 0x20
jne 0x18005137c
mov ecx, 8
jmp 0x1800513a1
cmp ecx, 4
jne 0x180051388
mov ecx, 3
jmp 0x1800513a1
cmp ecx, 1
je 0x1800513a1
xor edx, edx
mov rcx, rsi
call fcn.180051700
mov ecx, r15d
jmp 0x1800513a1
mov ecx, 4
mov r8d, dword [rsi + 0x15c]
imul r8d, dword [rsi + 0x154]
imul r8d, ecx
mov rdx, qword [rsi + 0x130]
mov rcx, qword [rsi + 0x140]
call fcn.1800a0f40
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x154]
mov r8, qword [rsi + 0x140]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.18004ed30
mov r14d, dword [rsp + 0x44]
mov r8d, r14d
imul r8d, dword [rsi + 0x164]
mov r9d, dword [rsi + 0x180]
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.18004e6b0
movzx edi, al
jmp 0x18005141b
mov dil, 1
mov byte [rsp + 0x41], dil
cmp qword [rsp + 0x70], 0
je 0x1800514be
test r12b, r12b
jne 0x18005144d
mov rcx, qword [rbp - 0x70]
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x5c], eax
cmove rcx, qword [rbp - 0x78]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
call qword [rax + 0x18]
test eax, eax
js 0x18005157b
mov r8d, dword [rbp - 0x38]
test r8d, r8d
je 0x1800514aa
imul r8d, dword [rsi + 0x168]
mov r9d, dword [rsi + 0x184]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 8]
call fcn.18004e6b0
mov rcx, qword [rbp - 0x60]
test al, al
mov rax, qword [rcx]
je 0x1800514b1
mov edx, dword [rbp - 0x38]
jmp 0x1800514b3
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
js 0x18005157b
test rbx, rbx
je 0x180051563
test r12b, r12b
je 0x1800514e0
test dil, dil
jne 0x1800514e0
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx]
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
js 0x18005157b
mov rax, qword [rbx]
lea rdx, [rbp - 0xc]
mov rcx, rbx
call qword [rax + 0x30]
test eax, eax
js 0x18005157b
mov edx, dword [rbp - 0x38]
sub edx, dword [rbp - 0xc]
mov dword [rbp - 0x38], edx
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
je 0x180051557
lea r8, [rbp - 0x40]
call qword [rax + 0x18]
test eax, eax
js 0x18005157b
mov ebx, dword [rbp - 0x38]
mov r8d, ebx
imul r8d, dword [rsi + 0x164]
mov r9d, dword [rsi + 0x180]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.18004e880
mov rcx, qword [rbp - 0x58]
xor r8d, r8d
test al, al
mov rax, qword [rcx]
je 0x18005155a
mov edx, ebx
jmp 0x18005155c
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
test eax, eax
js 0x18005157b
movzx r12d, r12b
test dil, dil
cmovne r12d, r15d
cmp dword [rsi + 0x12c], 1
jne 0x180051081
mov r13, qword [rbp - 0x28]
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x50]
call fcn.1800a8b28
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800515b4
mov rcx, rax
call fcn.180051630
test rbx, rbx
je 0x1800515c1
mov rcx, rbx
call fcn.180051630
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov dword [rsi + 0x12c], eax
lea rcx, [rbp + 0x10]
call fcn.1800540d0
nop
mov rcx, r13
call fcn.1800a8b28
nop
mov rcx, qword [rbp - 8]
call fcn.1800a8b28
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180099cf0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r13, qword [rbp - 0x28]
jmp 0x180051584