Function at 0x1005d890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ba50
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x102a67c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp + 8]
lea edx, [ecx + 4]
mov dword [ebp - 0x94], ecx
push 0x8c
push 0
mov eax, dword [eax]
push edx
mov dword [ebp - 0x100], edx
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edi, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx + 4]
movss xmm0, dword [eax]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + 0x10]
movss dword [ebp - 0x94], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x98]
xorps xmm0, xmm0
lea edx, [ecx + 0x48]
add esp, 0xc
mov word [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x44], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
movups xmmword [ecx + 0x54], xmm0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0xf
mov byte [ecx + 0x54], 0
movups xmmword [ecx + 0x6c], xmm0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x80], 0xf
mov byte [ecx + 0x6c], 0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 8], esi
mov esi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 4], 0
mov dword [esi + 0x34], ecx
movq xmm0, qword [edi]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 8]
lea edi, [esi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x84]
movq xmm0, qword [eax]
movq qword [esi + 0x18], xmm0
mov eax, dword [eax + 8]
movss xmm0, dword [0x101a5bc4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 0xd
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
add ecx, 0xffffffd5
movss xmm3, dword [0x101a0e20]
addss xmm0, xmm3
cvttss2si eax, xmm0
mov dword [ebp - 0x90], eax
neg eax
mov dword [esi + 0x40], eax
cmp ecx, 5
ja case.default.0x1005da8e
jmp dword [ecx*4 + 0x1005e31c]
movss xmm0, dword [0x101a1044]
jmp 0x1005db08
mov eax, dword [0x102a7958]
movss xmm0, dword [0x101a0e2c]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
addss xmm0, xmm0
jmp 0x1005db22
mov dword [esi + 0x2c], 0x3fc00000
jmp 0x1005db00
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov ecx, dword [eax + 0x240]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x2c]
xor eax, ecx
mov dword [ebp - 0x84], eax
movss xmm0, dword [ebp - 0x84]
movss dword [esi + 0x2c], xmm0
movss xmm0, dword [0x101a62ec]
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
addss xmm0, xmm3
cvttss2si eax, xmm0
mov dword [esi + 0x3c], eax
mov eax, dword [0x102a7958]
movss xmm0, dword [0x101a630c]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov ecx, dword [esi + 0x38]
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
addss xmm0, xmm3
cvttss2si eax, xmm0
cmp ecx, eax
jge 0x1005e26b
cmp dword [esi + 0x3c], ecx
jg 0x1005dc87
mov eax, dword [esi + 0x34]
add eax, 0xffffffd5
cmp eax, 5
ja case.default.0x1005db7a
jmp dword [eax*4 + 0x1005e334]
movss xmm1, dword [esi + 0x1c]
movss xmm2, dword [esi + 0x18]
movss xmm0, dword [esi + 0x20]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss xmm0, dword [0x101a0ee8]
comiss xmm0, xmm2
jb case.default.0x1005db7a
jmp 0x1005dc10
movss xmm1, dword [esi + 0x1c]
movss xmm2, dword [esi + 0x18]
movss xmm0, dword [esi + 0x20]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss xmm0, dword [0x101a62f0]
comiss xmm0, xmm2
jb case.default.0x1005db7a
jmp 0x1005dc10
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
movd xmm0, ecx
xor eax, 0x5b1c6e88
cvtdq2ps xmm0, xmm0
mov eax, dword [eax + 0x10c]
mulss xmm0, dword [eax + 0x20]
comiss xmm0, dword [esi + 0x2c]
jbe case.default.0x1005db7a
mov byte [esi + 4], 1
mov dword [esi + 0x40], ecx
mov ecx, dword [edx + 4]
mov byte [ebp - 0x7d], 0
cmp ecx, dword [edx + 8]
je 0x1005dc3d
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov byte [ecx + 0xc], 0
add dword [edx + 4], 0x10
mov dword [ecx + 8], eax
jmp case.default.0x1005db7a
lea eax, [ebp - 0x7d]
push eax
push edi
push ecx
mov ecx, edx
call fcn.1005e350
movss xmm3, dword [0x101a0e20]
lea edx, [esi + 0x48]
mov eax, dword [0x102a7958]
movss xmm0, dword [0x101a6268]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov ecx, dword [esi + 0x38]
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
addss xmm0, xmm3
cvttss2si eax, xmm0
add eax, ecx
mov dword [esi + 0x3c], eax
cmp ecx, dword [ebp - 0x9c]
jl 0x1005e232
cmp byte [esi + 4], 0
jne 0x1005e26b
mov edx, dword [0x102a7958]
add edx, 0xabc5fa12
movss xmm2, dword [esi + 0x20]
xor edx, 0x5b1c6e88
mov ecx, dword [edx + 0x208]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x2c]
xor eax, ecx
mov ecx, 0x8400b
mov dword [ebp - 0x84], eax
mov eax, dword [edx + 0x10c]
movss xmm0, dword [ebp - 0x84]
mulss xmm0, dword [0x101a62fc]
mov edx, dword [esi + 0x28]
cmp edx, 1
movss xmm3, dword [eax + 0x20]
mov eax, 0x4208608b
movaps xmm5, xmm3
mov dword [ebp - 0x5c], 0
mulss xmm5, dword [esi + 0x18]
movaps xmm6, xmm3
cmove eax, ecx
mulss xmm6, dword [esi + 0x1c]
mov dword [ebp - 0x84], eax
mulss xmm0, xmm3
movss dword [ebp - 0xa4], xmm5
movss dword [ebp - 0xa8], xmm6
subss xmm2, xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
movaps xmm4, xmm2
movaps xmm0, xmm5
addss xmm4, dword [esi + 0x20]
movss dword [esi + 0x20], xmm2
addss xmm0, dword [edi]
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
mulss xmm4, xmm3
xor eax, 0x5b1c6e88
movss dword [ebp - 0xb4], xmm0
movaps xmm0, xmm6
addss xmm0, dword [edi + 4]
mulss xmm4, dword [0x101a0e20]
movss dword [ebp - 0xb0], xmm0
movaps xmm0, xmm4
addss xmm0, dword [edi + 8]
movss dword [ebp - 0x8c], xmm4
movss dword [ebp - 0xac], xmm0
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x7c]
push eax
push edx
push dword [esi + 8]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x40000000
push dword [ebp - 0x84]
mov dword [ebp - 0xbc], 0x40000000
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xb8], 0x40000000
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xcc], 0xc0000000
push eax
push edi
mov dword [ebp - 0xc8], 0xc0000000
mov dword [ebp - 0xc4], 0xc0000000
call fcn.1011c650
cmp byte [ebp - 0x45], 0
je 0x1005dee0
test dword [ebp - 0x4c], 0x80000
je 0x1005dee0
push 0x54
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x3f800000
lea eax, [ebp - 0x28]
mov ecx, 0x102937a0
push eax
call fcn.1002f1a0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0xf
cmova eax, edx
mov dword [ebp - 0x40], eax
jbe 0x1005de5e
push ecx
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100163b0
add esp, 0xc
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0x28]
mov eax, dword [ebp - 0x84]
push dword [esi + 8]
and eax, 0xfff7ffff
mov dword [ebp - 0xd8], 0x40000000
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd4], 0x40000000
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xd0], 0x40000000
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xe4], 0xc0000000
push eax
push edi
mov dword [ebp - 0xe0], 0xc0000000
mov dword [ebp - 0xdc], 0xc0000000
call fcn.1011c650
movss xmm0, dword [0x101a0e2c]
comiss xmm0, dword [ebp - 0x50]
ja 0x1005defe
cmp byte [ebp - 0x46], 0
jne 0x1005defe
cmp byte [ebp - 0x45], 0
je 0x1005e086
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x88], ecx
test ecx, ecx
je 0x1005dfc7
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x9e
push eax
push ecx
lea eax, [ebp - 0x104]
push eax
call fcn.100ee230
mov ecx, dword [ebp - 0x88]
add esp, 0xc
mov eax, dword [eax]
call eax
test al, al
je 0x1005dfbe
push 0x54
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x3f800000
lea eax, [ebp - 0x28]
mov ecx, 0x102937a0
push eax
call fcn.1002f1a0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0xf
cmova eax, edx
mov dword [ebp - 0x40], eax
jbe 0x1005df89
push ecx
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100163b0
add esp, 0xc
mov ecx, dword [0x102a7958]
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0x28]
add ecx, 0xabc5fa12
lea eax, [ebp - 0xb4]
push dword [esi + 8]
xor ecx, 0x5b1c6e88
push dword [ebp - 0x84]
push eax
mov ecx, dword [ecx + 0x114]
push edi
call fcn.1011c6d0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x88], ecx
cmp byte [ebp - 0x45], 0
je 0x1005e08f
movss xmm0, dword [ebp - 0xa4]
mov dword [esi + 0x28], 3
mov eax, dword [0x102a7958]
movss xmm3, dword [edi]
add eax, 0xabc5fa12
movss xmm2, dword [edi + 4]
addss xmm0, xmm3
movss xmm1, dword [edi + 8]
xor eax, 0x5b1c6e88
subss xmm3, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x7c]
movss dword [ebp - 0xf0], xmm0
movaps xmm0, xmm2
addss xmm0, dword [ebp - 0xa8]
subss xmm2, dword [ebp - 0xa8]
push eax
push 3
push dword [esi + 8]
movss dword [ebp - 0xec], xmm0
lea eax, [ebp - 0xf0]
movaps xmm0, xmm1
movss dword [ebp - 0xfc], xmm3
addss xmm0, dword [ebp - 0x8c]
subss xmm1, dword [ebp - 0x8c]
push 0x8400b
push eax
lea eax, [ebp - 0xfc]
movss dword [ebp - 0xf8], xmm2
push eax
movss dword [ebp - 0xe8], xmm0
movss dword [ebp - 0xf4], xmm1
call fcn.1011c6d0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x88], ecx
movss xmm0, dword [ebp - 0x50]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1005e0af
movq xmm0, qword [ebp - 0x70]
mov eax, dword [ebp - 0x68]
movq qword [edi], xmm0
mov dword [edi + 8], eax
test ecx, ecx
je 0x1005e17c
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x9e
push eax
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.100ee230
mov ecx, dword [ebp - 0x88]
add esp, 0xc
mov eax, dword [eax]
call eax
test al, al
jne 0x1005e17c
mov eax, dword [esi + 0x34]
cmp eax, 0x44
je 0x1005e13e
cmp eax, 0x2e
je 0x1005e100
cmp eax, 0x30
jne 0x1005e17c
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov ecx, dword [eax + 0x23c]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x2c]
xor eax, ecx
mov dword [ebp - 0x8c], eax
movss xmm0, dword [ebp - 0x8c]
mulss xmm0, dword [0x101a0eec]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
comiss xmm0, dword [ebp - 0x5c]
ja 0x1005e17c
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x48]
mov byte [esi + 4], 1
mov dword [esi + 0x40], eax
mov edx, dword [ecx + 4]
mov byte [ebp - 0x7d], 1
cmp edx, dword [ecx + 8]
je 0x1005e171
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov byte [edx + 0xc], 1
add dword [ecx + 4], 0x10
mov dword [edx + 8], eax
jmp 0x1005e17f
lea eax, [ebp - 0x7d]
push eax
push edi
push edx
call fcn.1005e350
lea ecx, [esi + 0x48]
cmp byte [esi + 4], 0
jne 0x1005e26b
movss xmm0, dword [ebp - 0x50]
ucomiss xmm0, dword [0x101a0e2c]
lahf
test ah, 0x44
jnp 0x1005e1de
mov eax, dword [esi + 0x38]
mov dword [esi + 0x40], eax
mov edx, dword [ecx + 4]
mov byte [ebp - 0x7d], 1
cmp edx, dword [ecx + 8]
je 0x1005e1c7
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov byte [edx + 0xc], 1
add dword [ecx + 4], 0x10
mov dword [edx + 8], eax
jmp 0x1005e1d2
lea eax, [ebp - 0x7d]
push eax
push edi
push edx
call fcn.1005e350
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 4]
call fcn.10061c40
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x48]
add eax, dword [ebp - 0x90]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jg 0x1005e22a
mov dword [esi + 0x40], ecx
mov ecx, dword [edx + 4]
mov byte [ebp - 0x7d], 0
cmp ecx, dword [edx + 8]
je 0x1005e21a
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov byte [ecx + 0xc], 0
add dword [edx + 4], 0x10
mov dword [ecx + 8], eax
jmp 0x1005e22a
lea eax, [ebp - 0x7d]
push eax
push edi
push ecx
mov ecx, edx
call fcn.1005e350
lea edx, [esi + 0x48]
movss xmm3, dword [0x101a0e20]
mov ecx, dword [esi + 0x38]
movss xmm0, dword [0x101a630c]
inc ecx
mov dword [esi + 0x38], ecx
mov eax, dword [0x102a7958]
add eax, 0xabc5fa12
xor eax, 0x5b1c6e88
mov eax, dword [eax + 0x10c]
divss xmm0, dword [eax + 0x20]
addss xmm0, xmm3
cvttss2si eax, xmm0
cmp ecx, eax
jl 0x1005db62
mov eax, dword [esi + 0x40]
add eax, dword [ebp - 0x90]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jg 0x1005e2b5
mov dword [esi + 0x40], ecx
lea edx, [esi + 0xc]
mov ecx, dword [esi + 0x4c]
mov byte [ebp - 0x7d], 0
cmp ecx, dword [esi + 0x50]
je 0x1005e2a7
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov byte [ecx + 0xc], 0
add dword [esi + 0x4c], 0x10
mov dword [ecx + 8], eax
jmp 0x1005e2b5
lea eax, [ebp - 0x7d]
push eax
push edx
push ecx
lea ecx, [esi + 0x48]
call fcn.1005e350
mov ecx, dword [0x102a7958]
mov eax, esi
movd xmm0, dword [esi + 0x38]
add ecx, 0xabc5fa12
cvtdq2ps xmm0, xmm0
xor ecx, 0x5b1c6e88
mov ecx, dword [ecx + 0x10c]
divss xmm0, dword [ecx + 0x20]
addss xmm0, dword [0x101a0e20]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp - 0x94]
movss dword [esi + 0x30], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10184b39
mov esp, ebp
pop ebp
ret 0x10