Function at 0x10046c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7c5d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1a40
call fcn.100e4d20
mov eax, dword [0x10114008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x1a48], esi
lea ecx, [eax + eax*4]
mov eax, dword [0x1011985c]
shl ecx, 2
mov dword [ebp - 0x1a44], ecx
mov eax, dword [ecx + eax + 0x30]
test eax, eax
je 0x1004706f
cmp eax, 2
jb 0x1004706f
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
push 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100e38f8
lea ecx, [ebp - 0x28]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
mov dword [eax], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1e8]
vxorps xmm0, xmm0, xmm0
push 0x74
push 0
vmovups ymmword [ebp - 0x1a40], ymm0
vmovups ymmword [ebp - 0x1a20], ymm0
vmovss dword [ebp - 0x1a00], xmm0
vmovss dword [ebp - 0x19fc], xmm0
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov byte [ebp - 0x1ec], 0
push eax
vzeroupper
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x168], 0
lea eax, [ebp - 0x15c]
push 0x11c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
vmovss xmm1, dword [0x10102c90]
add esp, 0xc
lea eax, [ebp - 0x174]
mov ecx, 7
nop dword [eax]
lea eax, [eax + 0x2c]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [eax - 0x14], xmm0
mov dword [eax - 4], 0
mov dword [eax - 0x2c], 0
vmovss dword [eax - 0x28], xmm0
vmovss dword [eax - 0x24], xmm0
mov dword [eax - 0x20], 0
vmovss dword [eax - 0x1c], xmm1
vmovss dword [eax - 0x18], xmm0
sub ecx, 1
jne 0x10046d70
mov edx, dword [ebp - 0x1a44]
xor edi, edi
mov eax, dword [0x1011985c]
mov dword [ebp - 0x40], ecx
vmovups xmmword [ebp - 0x3c], xmm0
cmp dword [edx + eax + 0x30], edi
jbe 0x10046f5f
nop dword [eax]
mov ecx, dword [edx + eax + 0x2c]
mov eax, dword [0x1011985c]
add ecx, edi
mov eax, dword [edx + eax + 0x28]
dec eax
and ecx, eax
mov eax, dword [0x1011985c]
mov eax, dword [edx + eax + 0x24]
mov edx, dword [eax + ecx*4]
mov eax, 0x1a14
call fcn.100e4d20
mov ecx, esp
push edx
call fcn.10046780
call fcn.100449b0
test al, al
je 0x10046f49
mov edx, dword [ebp - 0x1a44]
test edi, edi
je 0x10046e7c
cmp byte [ebp - 0x1ec], 0
je 0x10046e7c
mov eax, dword [0x1011985c]
lea ecx, [eax + 0x20]
add ecx, edx
mov dword [ebp - 0x1a48], ecx
mov ecx, dword [edx + eax + 0x2c]
mov eax, dword [edx + eax + 0x28]
add ecx, edi
dec eax
and ecx, eax
mov eax, dword [0x1011985c]
mov eax, dword [edx + eax + 0x24]
mov eax, dword [eax + ecx*4]
vmovss xmm0, dword [eax]
vsubss xmm2, xmm0, dword [ebp - 0x1a40]
vmovss xmm0, dword [eax + 4]
vsubss xmm0, xmm0, dword [ebp - 0x1a3c]
vmulss xmm1, xmm0, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vcomiss xmm0, dword [0x10102f00]
ja 0x10047008
mov eax, dword [0x1011985c]
mov ecx, dword [edx + eax + 0x2c]
mov eax, dword [edx + eax + 0x28]
add ecx, edi
dec eax
and ecx, eax
mov eax, dword [0x1011985c]
mov eax, dword [edx + eax + 0x24]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x1a40]
call fcn.10025270
mov edx, dword [0x1011985c]
mov eax, dword [ebp - 0x1a44]
mov ecx, dword [eax + edx + 0x2c]
mov eax, dword [eax + edx + 0x28]
add ecx, edi
dec eax
and ecx, eax
mov eax, dword [ebp - 0x1a44]
mov eax, dword [eax + edx + 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1a48], eax
lea eax, [edx + 1]
cmp ecx, eax
ja 0x10046eed
push ecx
lea ecx, [ebp - 0x28]
call fcn.10048d60
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
dec ecx
and eax, ecx
mov dword [ebp - 0x1c], eax
add eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1a4c], eax
cmp dword [ecx + eax*4], 0
jne 0x10046f38
push 0x1a37
call fcn.100e38f8
add esp, 4
test eax, eax
je 0x10047069
mov edx, dword [ebp - 0x1a4c]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
mov eax, edx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x1a48]
mov ecx, dword [ecx + eax*4]
call fcn.10046780
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x1a44]
inc edi
mov eax, dword [0x1011985c]
cmp edi, dword [edx + eax + 0x30]
jb 0x10046dd0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100e38f8
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi]
mov dword [esi], ecx
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x10046fa9
mov dword [ecx], esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10046fb2
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100281f0
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x28], 0
call fcn.100e3d5c
add esp, 8
jmp 0x100470a6
mov ecx, dword [ebp - 0x1a48]
call fcn.100281f0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100e38f8
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
call fcn.100281f0
mov ecx, dword [ebp - 0x28]
push 8
push ecx
mov dword [ebp - 0x28], 0
call fcn.100e3d5c
add esp, 8
jmp 0x100470a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100e38f8
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e38ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8