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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1fc8
call fcn.1000cf00
mov eax, dword [0x10011008]
xor eax, esp
mov dword [esp + 0x1fc4], eax
cmp dword [ebp + 8], 0
push esi
push edi
mov dword [esp + 0x14], ecx
je 0x100039f5
mov eax, 5
pop edi
pop esi
mov ecx, dword [esp + 0x1fc4]
xor ecx, esp
call fcn.1000bfa0
mov esp, ebp
pop ebp
ret 4
cmp byte [ecx + 0x158], 0
je 0x10003a19
call fcn.10005300
pop edi
pop esi
mov ecx, dword [esp + 0x1fc4]
xor ecx, esp
call fcn.1000bfa0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 0x144]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x14578]
mov dword [esp + 0xe8], edx
mov eax, dword [eax + 0x1457c]
mov dword [esp + 0xec], eax
test edx, edx
jne 0x10003a5d
test eax, eax
jne 0x10003a5d
lea eax, [edx + 7]
pop edi
pop esi
mov ecx, dword [esp + 0x1fc4]
xor ecx, esp
call fcn.1000bfa0
mov esp, ebp
pop ebp
ret 4
cmp dword [ecx + 0x150], 0
jne 0x10003a7b
cmp dword [ecx + 0x154], 0
jne 0x10003a7b
mov dword [ecx + 0x150], edx
mov dword [ecx + 0x154], eax
cmp edx, dword [ecx + 0x150]
jne 0x10003aa6
cmp eax, dword [ecx + 0x154]
jne 0x10003aa6
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x1fc4]
xor ecx, esp
call fcn.1000bfa0
mov esp, ebp
pop ebp
ret 4
mov dword [ecx + 0x154], eax
lea esi, [esp + 0x250]
mov dword [ecx + 0x150], edx
lea edi, [esp + 0x258]
xorps xmm0, xmm0
lea eax, [esp + 0x250]
movlpd qword [esp + 0x250], xmm0
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
push eax
mov ecx, dword [edi + 0x144]
call 0x100023a0
mov eax, dword [edi]
lea ecx, [edi + 0xc]
mov dword [edi + 4], eax
lea edx, [edi + 0xfc]
lea eax, [edi + 0x3c]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x40], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [edi + 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x54]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x6c]
mov dword [edi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esp + 0x20], ecx
lea ecx, [edi + 0x24]
mov dword [esp + 0x60], ecx
lea ecx, [edi + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x78]
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x84]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x9c]
mov dword [edi + 0xa0], eax
mov eax, dword [edi + 0xa8]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0x90]
mov dword [esp + 0x54], ecx
lea ecx, [edi + 0x84]
mov dword [edi + 0x94], eax
lea eax, [edi + 0xb4]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xb4]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xc0]
mov dword [edi + 0xc4], eax
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xe8], eax
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x30], ecx
lea ecx, [edi + 0xe4]
mov dword [edi + 0xf4], eax
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x84], ecx
lea ecx, [edi + 0xf0]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + 0xcc]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x8c], ecx
lea ecx, [edi + 0xd8]
mov dword [ecx + 4], eax
mov eax, dword [edx]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x88], edx
mov dword [edx + 4], eax
mov eax, dword [edi + 0x108]
lea edx, [edi + 0x108]
mov dword [edx + 4], eax
lea esi, [esp + 0x250]
mov eax, dword [edi + 0x12c]
mov dword [edi + 0x130], eax
mov eax, dword [ecx]
mov dword [esp + 0x74], edx
lea edx, [edi + 0x12c]
mov dword [ecx + 4], eax
lea ecx, [edi + 0x138]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x114]
mov dword [esp + 0x70], edx
mov dword [esp + 0x80], ecx
mov dword [edi + 0x118], eax
mov dword [esp + 0x10], esi
nop dword [eax]
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
or eax, edx
je 0x1000430a
sub esp, 8
mov dword [esp + 0x1b0], 0x10010
lea eax, [esp + 0x400]
mov dword [esp + 0x1c8], 0x10020
mov dword [esp + 0x1c0], 0x10038
mov dword [esp + 0x1e8], 0x10010
push edx
push ecx
mov ecx, dword [edi + 0x144]
push eax
mov dword [esp + 0x20c], 0x10020
mov dword [esp + 0x204], 0x10038
mov dword [esp + 0x22c], 0x10010
mov dword [esp + 0x244], 0x10020
mov dword [esp + 0x23c], 0x10038
mov dword [esp + 0x104], 0x10010
mov dword [esp + 0x11c], 0x10020
mov dword [esp + 0x114], 0x10038
mov dword [esp + 0x174], 0x10010
mov dword [esp + 0x18c], 0x10020
mov dword [esp + 0x184], 0x10038
mov dword [esp + 0x2ec], 0x10010
mov dword [esp + 0x2fc], _Mtx_init_in_situ
call fcn.10002490
movd xmm0, dword [esp + 0x408]
mov edi, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x400]
mov esi, dword [esp + 0x3f8]
mov eax, dword [esp + 0x3fc]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x1b0], edi
mov dword [esp + 0x1e8], edi
mov dword [esp + 0x220], edi
mov edi, dword [esp + 0x3f8]
mov dword [esp + 0x238], edi
mov edi, dword [esp + 0xe8]
movsd qword [esp + 0x1d8], xmm0
movd xmm0, dword [esp + 0x550]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0xf8], edi
mov edi, dword [esp + 0x3f8]
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x200], esi
mov esi, dword [esp + 0x3fc]
mov dword [esp + 0x110], edi
mov edi, dword [esp + 0xe8]
movsd qword [esp + 0x210], xmm0
movsd xmm0, qword [esp + 0x4b0]
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x404]
mov dword [esp + 0x1d0], ecx
mov dword [esp + 0x1ec], edx
mov dword [esp + 0x208], ecx
mov dword [esp + 0x224], edx
mov dword [esp + 0x240], ecx
mov dword [esp + 0xfc], edx
mov dword [esp + 0x118], ecx
mov dword [esp + 0x16c], edx
mov edx, dword [esp + 0xbd4]
mov dword [esp + 0x188], ecx
mov ecx, dword [esp + 0xbd0]
mov dword [esp + 0x204], esi
mov dword [esp + 0x23c], esi
mov dword [esp + 0x114], esi
mov esi, dword [esp + 0x3f8]
mov dword [esp + 0x168], edi
mov edi, dword [esp + 0x3fc]
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x244], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x180], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x18c], eax
movsd qword [esp + 0x248], xmm0
call fcn.1000d280
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x1000ecf0]
cvtss2sd xmm0, xmm0
mov dword [esp + 0x2f4], edi
lea ecx, [esp + 0x2f8]
movsd qword [esp + 0x120], xmm0
lea edi, [esp + 0xbe0]
movsd xmm0, qword [esp + 0xbd8]
mov eax, ecx
mov dword [esp + 0x2f0], esi
mov edx, 0x100
mov esi, dword [esp + 0x10]
sub edi, eax
movsd qword [esp + 0x190], xmm0
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x10003f3d
mov al, byte [ecx + edi]
test al, al
je 0x10003f3d
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10003f24
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, dword [esp + 0x14]
mov byte [eax], 0
lea eax, [esp + 0x1a8]
push eax
call fcn.100072c0
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x1e0]
push eax
call fcn.100072c0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x218]
push eax
call fcn.100072c0
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x2d8]
mov eax, dword [edi + 4]
cmp ecx, eax
jae 0x10003fd4
mov edx, dword [edi]
cmp edx, ecx
ja 0x10003fd4
sub ecx, edx
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [edi + 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
cmp ecx, dword [edi + 8]
jne 0x10003fc1
push ecx
mov ecx, edi
call fcn.10007b10
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 4]
test edx, edx
je 0x10004000
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [edi]
mov edi, edx
jmp 0x10003ff1
cmp eax, dword [edi + 8]
jne 0x10003fe1
push ecx
mov ecx, edi
call fcn.10007b10
mov eax, dword [edi + 4]
test eax, eax
je 0x10004000
lea esi, [esp + 0x2d8]
mov edi, eax
mov ecx, 0x48
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x120]
xorps xmm1, xmm1
add dword [edi + 4], 0x120
comisd xmm0, xmm1
jb 0x1000402a
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xf0]
push eax
call fcn.100072c0
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x160]
push eax
call fcn.10007200
cmp dword [esp + 0x978], 0
lea eax, [esp + 0xe8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x1c], 0
jbe 0x100041db
mov eax, dword [esp + 0x4c4]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1000ed00]
movsd qword [esp + 0x78], xmm0
nop dword [eax]
mov eax, dword [esp + 0xe8]
mov ecx, dword [edi + 4]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0xf0], 0x10010
mov dword [esp + 0x100], 0x10020
movsd qword [esp + 0x108], xmm0
cmp eax, ecx
jae 0x10004116
mov edx, dword [edi]
cmp edx, eax
ja 0x10004116
sub eax, edx
sar eax, 5
mov dword [esp + 0x1c], eax
cmp ecx, dword [edi + 8]
jne 0x100040fa
push 1
mov ecx, edi
call fcn.10007880
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10004142
shl eax, 5
add eax, dword [edi]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
jmp 0x10004142
cmp ecx, dword [edi + 8]
jne 0x10004124
push 1
mov ecx, edi
call fcn.10007880
mov eax, dword [edi + 4]
test eax, eax
je 0x10004142
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x100]
movups xmmword [eax + 0x10], xmm0
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x30]
add dword [edi + 4], 0x20
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + esi*4 + 0x4c8]
mov dword [esp + 0x160], 0x20030
mov dword [esp + 0x190], 0x20048
mov dword [esp + 0x1a0], 0x10de
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x1a4], esi
addsd xmm0, qword [eax*8 + 0x1000ed00]
lea eax, [esp + 0x160]
push eax
movsd qword [esp + 0x19c], xmm0
call fcn.10007000
movsd xmm0, qword [esp + 0x78]
inc esi
cmp esi, dword [esp + 0x978]
jb 0x10004090
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0x10de
lea eax, [esp + 0x83c]
push eax
lea ecx, [esp + 0x60]
call fcn.10005050
push 0x1002
lea eax, [esp + 0x5b4]
push eax
lea ecx, [esp + 0x60]
call fcn.10005050
mov eax, dword [esp + 0xe8]
xorps xmm1, xmm1
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x99c]
mov dword [esp + 0x130], 0x10010
mov dword [esp + 0x140], 0x10020
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1000ed00]
comisd xmm0, xmm1
movsd qword [esp + 0x148], xmm0
jb 0x1000430a
movsd xmm1, qword [0x1000ecd0]
comisd xmm1, xmm0
jb 0x1000430a
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x130]
mov eax, dword [ecx + 4]
cmp edx, eax
jae 0x100042d8
mov edx, dword [ecx]
lea esi, [esp + 0x130]
cmp edx, esi
mov esi, dword [esp + 0x10]
ja 0x100042d8
lea edi, [esp + 0x130]
sub edi, edx
cmp eax, dword [ecx + 8]
jne 0x100042b8
push 1
call fcn.10007880
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100042d2
and edi, 0xffffffe0
add edi, dword [ecx]
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
mov edi, dword [esp + 0x14]
jmp 0x10004306
cmp eax, dword [ecx + 8]
jne 0x100042e8
push 1
call fcn.10007880
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 4]
test eax, eax
je 0x10004306
movups xmm0, xmmword [esp + 0x130]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x140]
movups xmmword [eax + 0x10], xmm0
add dword [ecx + 4], 0x20
add esi, 8
lea eax, [esp + 0x2d0]
mov dword [esp + 0x10], esi
cmp esi, eax
jne 0x10003c70
mov edx, dword [edi + 0x144]
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], 0
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x14570]
xchg dword [ecx], eax
imul ecx, dword [esp + 0xe4], 0x12e8
mov eax, dword [edx + 4]
push 0x12e8
add ecx, 0x11fa0
add eax, ecx
push eax
lea eax, [esp + 0xce8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0xe4], 0x55e47126
lea eax, [esp + 0xe4]
lea ecx, [edi + 0x16c]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.10008c30
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x1fa0]
push esi
push str.glamdata.numSamples___d_n
mov eax, dword [eax + 0x14]
push 4
mov dword [esp + 0x60], eax
call fcn.10002c80
add esp, 0xc
push dword [esp + 0x54]
push dword [edi + 0x1a4]
push dword [edi + 0x190]
push str.m_GlamDeque.size___llu__m_GlamDeque2.size___llu__windowSize___d_n
push 4
call fcn.10002c80
add esp, 0x14
cmp dword [edi + 0x1a4], 0
je 0x100043f9
lea ecx, [edi + 0x194]
call fcn.10006770
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0xe4], eax
jmp 0x10004415
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
cmp dword [edi + 0x190], 0
je 0x10004430
lea ecx, [edi + 0x180]
call fcn.10006770
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10004441
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push dword [esp + 0xe4]
push dword [esp + 0x24]
push eax
push ecx
push str.m_GlamDeque.back__.timestamp___llu__m_GlamDeque2.back__.timestamp___llu_n
push 4
call fcn.10002c80
push dword [0x10011524]
push dword [0x10011520]
push str.g_ullLastGlamSampleTimeStamp___llu_n
push 4
call fcn.10002c80
add esp, 0x28
cmp dword [edi + 0x1a4], 0
jne 0x10004489
mov ecx, 0x10011520
mov dword [esp + 0xc], ecx
jmp 0x10004498
lea ecx, [edi + 0x194]
call fcn.10006770
mov dword [esp + 0xc], eax
cmp dword [edi + 0x190], 0
jne 0x100044a8
mov edx, 0x10011520
jmp 0x100044b5
lea ecx, [edi + 0x180]
call fcn.10006770
mov edx, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 4]
ja 0x100044cf
jb 0x100044d1
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ecx]
mov eax, ecx
jb 0x100044d1
mov eax, edx
mov ecx, dword [eax]
mov dword [0x10011520], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push str.g_ullLastGlamSampleTimeStamp___llu_n
push 4
mov dword [0x10011524], eax
call fcn.10002c80
mov edx, dword [0x10011524]
add esp, 0x10
cmp dword [0x10011520], 0xffffffff
jne 0x1000451b
cmp edx, 0xffffffff
jne 0x1000451b
push str.ERROR_:_g_ullLastGlamSampleTimeStamp_is__1_n
push 1
call fcn.10002c80
mov edx, dword [0x10011524]
add esp, 8
or eax, 0xffffffff
xor ecx, ecx
mov dword [esp + 0xc], eax
test esi, esi
jle 0x10004558
lea eax, [esp + 0xce0]
nop
cmp dword [eax + 4], edx
ja 0x10004552
jb 0x10004545
mov edi, dword [0x10011520]
cmp dword [eax], edi
mov edi, dword [esp + 0x14]
ja 0x10004552
inc ecx
add eax, 0x18
cmp ecx, esi
jl 0x10004530
or eax, 0xffffffff
jmp 0x10004558
mov eax, ecx
mov dword [esp + 0xc], ecx
push eax
push str.newGlamSampleIndex___d_n
push 4
call fcn.10002c80
add esp, 0xc
cmp dword [esp + 0xc], 0
jl 0x10004ffc
mov eax, dword [esp + 0xe8]
lea ecx, [edi + 0xc0]
cmp dword [esp + 0x1fb4], 0
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xec]
setne byte [esp + 0x104]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf0]
push eax
mov dword [esp + 0xf4], 0x10010
mov dword [esp + 0x104], ConvertStringSecurityDescriptorToSecurityDescriptorA
call fcn.10006d70
mov eax, dword [esp + 0xe8]
lea ecx, [edi + 0x114]
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x1fa4]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x1fa8]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x1fac]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x1fb0]
mov dword [esp + 0x150], eax
lea eax, [esp + 0x130]
push eax
mov dword [esp + 0x134], 0x10010
mov dword [esp + 0x144], 0x10028
call fcn.10006af0
mov eax, esi
lea ecx, [edi + 0xcc]
sub eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], eax
call fcn.100069d0
push dword [esp + 0x18]
lea ecx, [edi + 0xd8]
call fcn.10006c50
push dword [esp + 0x18]
lea ecx, [edi + 0xe4]
call fcn.10006a40
push dword [esp + 0x18]
lea ecx, [edi + 0xf0]
call fcn.10006cc0
push dword [esp + 0x18]
lea ecx, [edi + 0xfc]
call fcn.100069d0
push dword [esp + 0x18]
lea ecx, [edi + 0x108]
call fcn.10006c50
push dword [esp + 0x18]
lea ecx, [edi + 0x120]
mov dword [esp + 0x5c], ecx
call fcn.100069d0
push dword [esp + 0x18]
lea ecx, [edi + 0x12c]
call fcn.10006a40
push dword [esp + 0x18]
lea ecx, [edi + 0x138]
call fcn.100069d0
mov eax, dword [esp + 0xc]
cmp eax, esi
jge 0x10004ffc
lea eax, [eax + eax*2]
mov dword [esp + 0xe4], 0
lea eax, [esp + eax*8 + 0xcec]
mov dword [esp + 0x20], 0
lea edx, [edi + 0x180]
mov dword [esp + 0x1c], 0
lea ecx, [edi + 0x194]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1000479f
test eax, eax
je 0x1000479f
mov eax, dword [edx + 0x10]
inc eax
cmp dword [edx + 8], eax
ja 0x10004742
push ecx
mov ecx, edx
call fcn.100076b0
lea edx, [edi + 0x180]
mov eax, dword [edx + 8]
dec eax
and dword [edx + 0xc], eax
mov esi, dword [edx + 0x10]
mov eax, dword [edx + 8]
add esi, dword [edx + 0xc]
dec eax
and esi, eax
mov eax, dword [edx + 4]
cmp dword [eax + esi*4], 0
jne 0x10004777
push 0x18
call fcn.1000bfb1
mov ecx, dword [edi + 0x184]
lea edx, [edi + 0x180]
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [edx + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10004796
mov ecx, dword [esp + 0xc]
movups xmm0, xmmword [ecx - 0xc]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 4]
movq qword [eax + 0x10], xmm0
inc dword [edx + 0x10]
lea ecx, [edi + 0x194]
mov eax, dword [esp + 0x54]
cmp dword [edi + 0x190], eax
jle 0x100047bd
add dword [edx + 0x10], 0xffffffff
jne 0x100047ba
mov dword [edx + 0xc], 0
jmp 0x100047bd
inc dword [edx + 0xc]
mov eax, dword [ecx + 0x10]
inc eax
cmp dword [ecx + 8], eax
ja 0x100047d2
push ecx
call fcn.100076b0
lea ecx, [edi + 0x194]
mov eax, dword [ecx + 8]
dec eax
and dword [ecx + 0xc], eax
mov esi, dword [ecx + 0x10]
mov eax, dword [ecx + 8]
add esi, dword [ecx + 0xc]
dec eax
and esi, eax
mov eax, dword [ecx + 4]
cmp dword [eax + esi*4], 0
jne 0x10004807
push 0x18
call fcn.1000bfb1
mov ecx, dword [edi + 0x198]
add esp, 4
mov dword [ecx + esi*4], eax
lea ecx, [edi + 0x194]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10004826
movups xmm0, xmmword [edx - 0xc]
movups xmmword [eax], xmm0
movq xmm0, qword [edx + 4]
movq qword [eax + 0x10], xmm0
inc dword [ecx + 0x10]
mov eax, dword [esp + 0x54]
cmp dword [edi + 0x1a4], eax
jle 0x10004847
add dword [ecx + 0x10], 0xffffffff
jne 0x10004844
mov dword [ecx + 0xc], 0
jmp 0x10004847
inc dword [ecx + 0xc]
movd xmm2, dword [edx]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
movd xmm1, dword [edx - 4]
mov eax, dword [ecx]
cvtdq2pd xmm2, xmm2
mov dword [esp + 0x24], 0x7fffffff
mov dword [esp + 0x28], 0x7fffffff
mov dword [esp + 0x2c], 0x7fffffff
mov dword [esp + 0x34], 0x80000000
cvtdq2pd xmm1, xmm1
movsd qword [eax + esi + 0x38], xmm2
mov ecx, dword [ecx]
mov eax, dword [esp + 0xe8]
movd xmm0, dword [edx + 4]
mov edx, dword [esp + 0xe4]
mov dword [ecx + esi + 8], eax
mov eax, dword [esp + 0xec]
mov dword [ecx + esi + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
cvtdq2pd xmm0, xmm0
movsd qword [ecx + eax + 0x38], xmm1
mov eax, dword [edi]
mov edi, dword [esp + 0x1fb8]
mov dword [ecx + eax + 0x40], edi
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x1fbc]
mov eax, dword [eax]
mov dword [ecx + eax + 0x44], edi
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0xe8]
mov dword [edi + ecx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [edi + ecx + 0xc], eax
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x84]
mov eax, dword [ecx]
movsd qword [esi + eax + 0x38], xmm0
mov ecx, dword [ecx]
mov eax, dword [esp + 0xe8]
mov dword [esi + ecx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [esi + ecx + 0xc], eax
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx]
movsd qword [edx + eax + 0x18], xmm2
xorps xmm2, xmm2
mov ecx, dword [ecx]
movaps xmm5, xmm2
mov eax, dword [esp + 0xe8]
movaps xmm4, xmm2
movaps xmm6, xmm2
mov dword [edx + ecx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x1fb8]
movsd qword [eax + esi + 0x18], xmm1
mov eax, dword [edi]
mov dword [eax + esi + 0x20], ecx
mov eax, dword [edi]
mov ecx, dword [esp + 0x1fbc]
mov dword [eax + esi + 0x24], ecx
mov ecx, dword [edi]
mov eax, dword [esp + 0xe8]
mov dword [ecx + esi + 8], eax
mov eax, dword [esp + 0xec]
mov dword [ecx + esi + 0xc], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
movsd qword [eax + edx + 0x18], xmm0
mov ecx, dword [ecx]
mov eax, dword [esp + 0xe8]
mov dword [ecx + edx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [ecx + edx + 0xc], eax
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x3c], 0x80000000
mov dword [esp + 0x34], 0x80000000
lea ecx, [edi + 0x180]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x64], 0
call fcn.100067e0
lea eax, [esp + 0xc0]
push eax
lea ecx, [edi + 0x180]
call fcn.100067c0
mov edx, dword [esp + 0x98]
cmp edx, dword [esp + 0xc8]
je 0x10004aee
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x40]
test esi, esi
jne 0x10004a3a
xor eax, eax
jmp 0x10004a3c
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x10004a88
test eax, eax
je 0x10004a88
mov edi, dword [esp + 0x24]
cmp eax, edi
movd xmm0, eax
cmovl edi, eax
mov dword [esp + 0x24], edi
mov eax, edi
mov edi, dword [esp + 0x34]
cmp edi, dword [ecx + 0xc]
cvtdq2pd xmm0, xmm0
cmovl edi, dword [ecx + 0xc]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], eax
addsd xmm5, xmm0
jmp 0x10004a8d
inc edi
mov dword [esp + 0x40], edi
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x10004ad1
test eax, eax
je 0x10004ad1
mov esi, dword [esp + 0x2c]
cmp eax, esi
movd xmm0, eax
cmovl esi, eax
mov eax, esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x90]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x30], ecx
addsd xmm6, xmm0
jmp 0x10004ad5
inc dword [esp + 0x60]
inc edx
cmp edx, dword [esp + 0xc8]
jne 0x10004a32
mov edi, dword [esp + 0x14]
mov dword [esp + 0x98], edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [edi + 0x194]
call fcn.100067e0
lea eax, [esp + 0xcc]
push eax
lea ecx, [edi + 0x194]
call fcn.100067c0
mov edx, dword [esp + 0xa4]
cmp edx, dword [esp + 0xd4]
je 0x10004ba4
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x48]
test esi, esi
jne 0x10004b3b
xor eax, eax
jmp 0x10004b3d
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x10004b8a
test eax, eax
je 0x10004b8a
mov edi, dword [esp + 0x28]
cmp eax, edi
movd xmm0, eax
cmovl edi, eax
mov eax, edi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x48]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x38], ecx
addsd xmm4, xmm0
jmp 0x10004b8f
inc edi
mov dword [esp + 0x48], edi
inc edx
cmp edx, dword [esp + 0xd4]
jne 0x10004b33
mov edi, dword [esp + 0x14]
mov dword [esp + 0xa4], edx
mov eax, dword [edi + 0x190]
sub eax, dword [esp + 0x40]
je 0x10004be6
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1000ed00]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1b0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x1b4], eax
divsd xmm5, xmm0
movsd qword [edi + 0x1a8], xmm5
jmp 0x10004c02
mov eax, dword [edi + 0x1b0]
movsd xmm5, qword [edi + 0x1a8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x1b4]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x1a4]
sub eax, dword [esp + 0x48]
je 0x10004c44
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1000ed00]
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c0], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x1c4], eax
divsd xmm4, xmm0
movsd qword [edi + 0x1b8], xmm4
jmp 0x10004c60
mov eax, dword [edi + 0x1c0]
movsd xmm4, qword [edi + 0x1b8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1c4]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x190]
movsd qword [esp + 0x48], xmm4
sub eax, dword [esp + 0x60]
je 0x10004ca0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1000ed00]
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x1d0], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x1d4], eax
divsd xmm6, xmm0
jmp 0x10004cbc
mov eax, dword [edi + 0x1d0]
movsd xmm6, qword [edi + 0x1c8]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x1d4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa8]
movsd qword [esp + 0x40], xmm6
push eax
lea ecx, [edi + 0x180]
movsd qword [esp + 0x64], xmm2
movaps xmm3, xmm2
movsd qword [esp + 0x7c], xmm2
movaps xmm1, xmm2
call fcn.100067e0
lea eax, [esp + 0xd8]
push eax
lea ecx, [edi + 0x180]
call fcn.100067c0
mov edx, dword [esp + 0xb0]
cmp edx, dword [esp + 0xe0]
je 0x10004d7e
mov esi, dword [esp + 0xa8]
test esi, esi
jne 0x10004d19
xor eax, eax
jmp 0x10004d1b
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x10004d47
test eax, eax
je 0x10004d47
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, xmm5
mulsd xmm0, xmm0
addsd xmm3, xmm0
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x10004d67
test eax, eax
je 0x10004d67
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, xmm6
mulsd xmm0, xmm0
addsd xmm2, xmm0
inc edx
cmp edx, dword [esp + 0xe0]
jne 0x10004d11
mov dword [esp + 0xb0], edx
movsd qword [esp + 0x78], xmm2
lea eax, [esp + 0xb4]
push eax
lea ecx, [edi + 0x194]
call fcn.100067e0
lea eax, [esp + 0xf0]
push eax
lea ecx, [edi + 0x194]
call fcn.100067c0
mov edx, dword [esp + 0xbc]
cmp edx, dword [esp + 0xf8]
je 0x10004e0d
mov esi, dword [esp + 0xb4]
nop dword [eax + eax]
test esi, esi
jne 0x10004dc8
xor eax, eax
jmp 0x10004dca
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x10004df6
test eax, eax
je 0x10004df6
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, xmm4
mulsd xmm0, xmm0
addsd xmm1, xmm0
inc edx
cmp edx, dword [esp + 0xf8]
jne 0x10004dc0
mov dword [esp + 0xbc], edx
movsd qword [esp + 0x60], xmm1
mov esi, dword [esp + 0x20]
movaps xmm0, xmm3
movd xmm1, dword [esp + 0x24]
movsd qword [edi + 0x1b8], xmm4
movsd qword [edi + 0x1c8], xmm6
mov edi, dword [esp + 0x6c]
cvtdq2pd xmm1, xmm1
mov eax, dword [edi]
movsd qword [eax + esi + 0x20], xmm5
mov eax, dword [edi]
movsd qword [eax + esi + 0x10], xmm1
movd xmm1, dword [esp + 0x34]
mov eax, dword [edi]
cvtdq2pd xmm1, xmm1
movsd qword [eax + esi + 0x18], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [edi]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
movd xmm1, dword [esp + 0x28]
movsd qword [eax + esi + 0x28], xmm0
mov eax, dword [edi]
movsd xmm0, qword [esp + 0x48]
cvtdq2pd xmm1, xmm1
movsd qword [ecx + eax + 0x20], xmm0
mov eax, dword [edi]
movsd xmm0, qword [esp + 0x60]
movsd qword [ecx + eax + 0x10], xmm1
movd xmm1, dword [esp + 0x38]
mov eax, dword [edi]
cvtdq2pd xmm1, xmm1
movsd qword [ecx + eax + 0x18], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x74]
movd xmm1, dword [esp + 0x2c]
cvtdq2pd xmm1, xmm1
movsd qword [ecx + eax + 0x28], xmm0
mov eax, dword [edi]
movsd xmm0, qword [esp + 0x40]
movsd qword [esi + eax + 0x20], xmm0
mov eax, dword [edi]
movsd xmm0, qword [esp + 0x78]
movsd qword [esi + eax + 0x10], xmm1
movd xmm1, dword [esp + 0x30]
mov eax, dword [edi]
cvtdq2pd xmm1, xmm1
movsd qword [esi + eax + 0x18], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [edi]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0xe4]
movsd qword [esi + eax + 0x28], xmm0
mov ecx, dword [edi]
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
movsd xmm0, qword [eax + esi + 0x20]
movsd qword [edx + ecx + 0x18], xmm0
mov ecx, dword [edi]
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0x10]
mov dword [edx + ecx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
mov ecx, dword [ecx]
movsd xmm0, qword [edi + eax + 0x20]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
movsd qword [edi + ecx + 0x18], xmm0
mov eax, dword [eax]
mov ecx, dword [esp + 0x1fc0]
mov dword [edi + eax + 0x20], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov eax, dword [esp + 0xe8]
mov dword [edi + ecx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [edi + ecx + 0xc], eax
add edi, 0x28
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x10], 0x48
mov dword [esp + 0x1c], edi
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x14]
movsd xmm0, qword [esi + eax + 0x20]
add esi, 0x40
mov eax, dword [esp + 0x80]
movsd qword [ecx + edx + 0x18], xmm0
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
mov eax, dword [esp + 0xe8]
mov dword [ecx + edx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [ecx + edx + 0xc], eax
add edx, 0x20
mov eax, dword [esp + 0xc]
lea ecx, [edi + 0x194]
add eax, 0x18
mov dword [esp + 0xe4], edx
sub dword [esp + 0x18], 1
lea edx, [edi + 0x180]
mov dword [esp + 0xc], eax
jne 0x10004720
lea ecx, [edi + 0x15c]
mov edx, edi
call fcn.10002d40
mov ecx, dword [edi + 4]
mov eax, 0x92492493
sub ecx, dword [edi]
imul ecx
pop edi
add edx, ecx
mov ecx, dword [esp + 0x1fc8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
neg eax
pop esi
sbb eax, eax
xor ecx, esp
and eax, 0xfffffffd
add eax, 3
call fcn.1000bfa0
mov esp, ebp
pop ebp
ret 4