Function at 0x1006d1b0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
push esi
push edi
mov edi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x460], 0
jge 0x1006d236
test byte [edi], 2
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [edi + 0x40]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
push eax
mov dword [esp + 0x74], 0x1b00d9
je 0x1006d227
mov dword [esp + 0x74], 0x20002
call fcn.10053ca0
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x460], eax
cmp dword [edi + 0x464], 0
jge 0x1006d29f
test byte [edi], 4
jne 0x1006d29f
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0xffffffff
push eax
lea ecx, [edi + 0x40]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x74], 0x400041
call fcn.10053ca0
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x464], eax
mov ecx, dword [edi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [edi + 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x1006d2fa
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d2f0
dec dword [eax + 0x370]
push ecx
call edx
mov edx, dword [esp + 0x3c]
add esp, 4
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x1006d316
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d310
dec dword [eax + 0x370]
push ecx
call edx
add esp, 4
mov ecx, dword [edi + 0x4c]
xor esi, esi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x12], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x1006d382
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x1006d382
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006d371
inc dword [ecx + 0x370]
imul eax, eax, 0x54
push eax
call edx
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x1006d3bf
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x1006d3bf
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d3ad
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x44], eax
mov esi, eax
imul ecx, dword [esp + 0x4c], 0x54
push ecx
push 0
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x38]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x24], 0
cmp dword [edi + 0x4c], 0
jle 0x1006d509
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x50], ecx
add edi, 0x34
nop dword [eax + eax]
mov esi, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esi + 0x54]
add eax, ecx
mov dword [edi - 4], 0xffffffff
mov dword [esp + 0x40], eax
cmp dword [esi + 0x34], edx
jle 0x1006d55a
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x1006d45f
mov ecx, dword [esp + 0x10]
or esi, esi
mov eax, dword [eax + 0x7c]
mov ecx, dword [ecx + 0x3c]
cmp eax, dword [ecx + edx*4]
jne 0x1006d44f
mov dword [edi - 4], edx
mov esi, edx
mov eax, dword [esp + 0x10]
inc edx
mov ecx, esi
cmp edx, dword [eax + 0x34]
mov eax, dword [esp + 0x40]
jl 0x1006d432
cmp ecx, 0xffffffff
je 0x1006d55a
push dword [ebp + 8]
lea ecx, [edi - 0x34]
push eax
push dword [esp + 0x30]
call fcn.1006c970
test al, al
je 0x1006d55a
mov ecx, dword [esp + 0x40]
mov edx, 0x10129680
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [esp + 0x16], al
mov eax, dword [edi - 4]
lea eax, [eax + eax*2]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [edi - 8], edx
cmp word [edx], 0
je 0x1006d4cb
movzx eax, word [edx + 2]
test ax, ax
je 0x1006d4cb
mov ecx, eax
cmp dword [edi], ecx
cmovge ecx, dword [edi]
add edx, 4
mov dword [edi], ecx
cmp word [edx], 0
jne 0x1006d4b0
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
inc dword [esi + edx*8]
mov ecx, dword [edi]
cmp dword [esi + edx*8 + 4], ecx
cmovge ecx, dword [esi + edx*8 + 4]
add edi, 0x54
mov dword [esi + edx*8 + 4], ecx
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
inc esi
sub ecx, 0xffffff80
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], ecx
cmp esi, dword [eax + 0x4c]
jl 0x1006d410
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x20], esi
test eax, eax
jle 0x1006d892
mov esi, dword [esp + 0x3c]
add esi, 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
nop word [eax + eax]
mov eax, dword [esi - 0x14]
mov edi, dword [esi - 0x10]
add edi, 0x20
sar edi, 5
lea ecx, [eax + eax*2]
mov eax, dword [esi - 4]
mov dword [esp + 0x18], ecx
cmp edi, eax
jle 0x1006d579
test eax, eax
je 0x1006d564
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esi - 4]
jmp 0x1006d569
mov byte [esp + 0x16], 0
jmp 0x1006e4ed
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
lea ecx, [esi - 8]
push eax
call fcn.1004ba10
lea eax, [esi - 8]
mov dword [eax], edi
lea eax, [edi*4]
push eax
push 0
push dword [esi]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x44]
lea ecx, [edx*8 + 0xc]
add ecx, eax
mov dword [esp + 0x40], ecx
cmp dword [ecx], 0
jne 0x1006d607
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [ecx + 4]
add edi, 0x20
sar edi, 5
mov dword [esp + 0x28], eax
cmp edi, eax
jle 0x1006d5ec
test eax, eax
je 0x1006d5d2
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x28]
jmp 0x1006d5d7
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.1004ba10
mov ecx, dword [esp + 0x40]
lea eax, [edi*4]
mov dword [ecx], edi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esi - 0x18]
mov dword [esp + 0x58], eax
cmp word [eax], 0
je 0x1006d6db
nop dword [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x1006d6d7
movzx edi, word [eax]
cmp edi, ecx
ja 0x1006d6be
mov eax, dword [esp + 0x44]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0x28], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x1006d6a9
mov eax, dword [esp + 0x30]
push edi
push dword [eax - 0x2c]
call fcn.10081170
add esp, 8
test eax, eax
je 0x1006d6a9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x20]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x58]
inc edi
mov edx, dword [esp + 0x18]
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1006d638
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x58], eax
cmp word [eax], 0
jne 0x1006d620
mov esi, dword [esp + 0x30]
add esi, 0x54
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
jne 0x1006d530
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
add edx, 0x50
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov esi, dword [edx - 0x18]
cmp esi, dword [edx - 4]
jle 0x1006d771
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d717
inc dword [eax + 0x370]
mov eax, esi
shl eax, 5
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x28], eax
mov edi, dword [edx]
test edi, edi
je 0x1006d76c
mov ecx, dword [edx - 8]
shl ecx, 5
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [edx]
test ecx, ecx
je 0x1006d75c
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d75c
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [edx], eax
mov dword [edx - 4], esi
mov ecx, dword [edx - 0xc]
mov esi, ecx
mov eax, dword [edx - 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x6c], eax
cmp ecx, eax
jae 0x1006d843
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1006d832
xor edi, edi
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x28], eax
je 0x1006d828
mov ecx, dword [edx - 8]
mov eax, esi
sub eax, dword [esp + 0x48]
lea esi, [edx - 8]
shl eax, 3
xorps xmm0, xmm0
and eax, 0xffffffe0
movaps xmmword [esp + 0x80], xmm0
add eax, edi
movzx eax, ax
mov dword [esp + 0x88], eax
mov eax, dword [edx - 4]
cmp ecx, eax
jne 0x1006d80b
inc ecx
test eax, eax
je 0x1006d7f2
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, dword [edx - 4]
jmp 0x1006d7f7
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1006e630
mov edx, dword [esp + 0x18]
xorps xmm0, xmm0
mov eax, dword [esi]
shl eax, 5
add eax, dword [esi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [eax + 0x10], xmm0
inc dword [esi]
mov esi, dword [esp + 0x40]
inc edi
cmp edi, 0x20
jb 0x1006d7a0
add esi, 4
mov dword [esp + 0x40], esi
cmp esi, dword [esp + 0x6c]
jb 0x1006d790
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x1006d87a
mov eax, dword [0x10132b9c]
mov dword [edx - 0x10], 0
mov dword [edx - 0x14], 0
test eax, eax
je 0x1006d867
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edx - 0xc], 0
add edx, 0x54
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], edx
jne 0x1006d700
mov esi, dword [esp + 0x20]
jmp 0x1006d898
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x2c], 0
jle 0x1006d8f3
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add edi, 0x14
mov esi, dword [esp + 0x38]
nop
mov ecx, dword [edi]
test ecx, ecx
je 0x1006d8e3
mov eax, dword [0x10132b9c]
mov dword [edi - 4], 0
mov dword [edi - 8], 0
test eax, eax
je 0x1006d8d3
dec dword [eax + 0x370]
push ecx
call esi
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [edi], 0
add edi, 0x18
sub eax, 1
mov dword [esp + 0x2c], eax
jne 0x1006d8b0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1006d91b
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006d90b
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x44], 0
xor ecx, ecx
mov dword [esp + 0x40], ecx
test esi, esi
jle 0x1006d95b
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1006d95b
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006d946
inc dword [ecx + 0x370]
mov edi, dword [esp + 0x1c]
shl eax, 4
push eax
call edi
mov ecx, eax
add esp, 4
mov dword [esp + 0x40], ecx
jmp 0x1006d95f
mov edi, dword [esp + 0x1c]
shl esi, 4
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006d983
inc dword [eax + 0x370]
push 0x40000
call edi
mov ecx, dword [0x10132b9c]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x1006d99f
inc dword [ecx + 0x370]
push 0x20
call edi
movss xmm0, dword [0x1012c844]
xor ecx, ecx
mov dword [esp + 0x5c], eax
xor edi, edi
mov dword [esp + 0xb0], eax
add esp, 4
mov dword [eax], esi
mov eax, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa8], 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x5c], edi
test eax, eax
jle 0x1006dce7
mov esi, dword [esp + 0x3c]
xor edx, edx
add esi, 0x48
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], esi
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x1006dcba
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [esp + 0x40]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
mov dword [esp + 0x5c], edi
movss dword [esp + 0x28], xmm1
lahf
test ah, 0x44
jnp 0x1006da8c
mov byte [esp + 0x17], 1
xor edi, edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1012cb50]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.100d7e10
movss xmm1, dword [esp + 0x28]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + edi + 0xe0], dl
inc edi
cmp edi, 0x100
jb 0x1006da44
jmp 0x1006da91
mov byte [esp + 0x17], 0
cmp dword [esi], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
jle 0x1006dcb6
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x60], ecx
nop dword [eax + eax]
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x30]
call fcn.10081170
add esp, 8
test eax, eax
je 0x1006dc95
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.10081a50
add esp, 0xc
test eax, eax
jne 0x1006dc95
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x24], eax
je 0x1006db0f
push eax
call fcn.100886b0
mov eax, dword [esp + 0x28]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x1006db1e
push eax
call fcn.100887b0
add esp, 4
mov eax, dword [esp + 0x24]
add eax, 0x18
je 0x1006dc95
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [esp + 0x30], eax
call fcn.10083d30
add esp, 8
test eax, eax
jne 0x1006dc95
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
add eax, 0x4c
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 4]
mov dword [edi], ecx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [edi + 4], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esp + 0x30]
sar eax, 6
movd xmm0, eax
mov eax, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm0
cmp byte [eax + 0x12], 7
sete al
mov byte [edi + 0x14], al
mov eax, dword [esp + 0x2c]
imul eax, ecx
shl eax, 2
mov dword [esp + 0x2c], eax
add eax, edx
cmp eax, 0x40000
jle 0x1006dc1b
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006dbde
inc dword [eax + 0x370]
push 0x40000
call dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa4]
push eax
call fcn.1004b7e0
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], ecx
jmp 0x1006dc23
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x68]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xe0]
add ecx, edx
add edx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
xor edx, edx
cmp byte [esp + 0x17], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [esp + 0x30]
call fcn.1006cb50
mov eax, dword [esp + 0x48]
movzx ecx, word [edi]
movzx edx, ax
mov eax, dword [esi - 0x20]
add cx, dx
mov esi, dword [esp + 0x20]
mov word [eax + esi + 4], cx
mov esi, dword [esp + 0x64]
movzx ecx, word [edi + 4]
add cx, dx
mov edx, dword [esp + 0x20]
mov eax, dword [esi - 0x20]
mov word [eax + edx + 6], cx
mov eax, dword [esi - 0x20]
movzx ecx, word [eax + edx + 6]
movzx eax, word [eax + edx + 4]
imul ecx, eax
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
inc eax
add dword [esp + 0x20], 0x10
add ecx, 0x20
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], ecx
cmp eax, dword [esi]
jl 0x1006dac0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
add esi, 0x54
movss xmm0, dword [0x1012c844]
sub edx, 0xffffff80
sub dword [esp + 0x34], 1
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x54], edx
jne 0x1006da07
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 8]
mov dword [edx + 0x20], 0
test edi, edi
jg 0x1006dd44
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
sqrtss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1012c9c0]
jb 0x1006dd20
mov edi, 0x1000
jmp 0x1006dd44
comiss xmm0, dword [0x1012c9bc]
jb 0x1006dd30
mov edi, 0x800
jmp 0x1006dd44
comiss xmm0, dword [0x1012c9b4]
mov edi, 0x200
mov eax, 0x400
cmovae edi, eax
mov dword [edx + 0x1c], edi
xor ecx, ecx
sub edi, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
test edi, edi
jle 0x1006dd8a
cmp edi, 8
mov eax, edi
mov esi, 8
cmovl eax, esi
test eax, eax
jle 0x1006dd8a
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006dd75
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x1c]
push edi
push ecx
mov ecx, 0x8000
sub edx, esi
sub ecx, esi
push ecx
lea ecx, [esp + 0xbc]
call fcn.1006d040
mov ecx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], eax
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x1006ddef
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1006ddef
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006dde0
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x1c]
xor esi, esi
add esp, 0xc
cmp dword [eax + 0x40], esi
jle 0x1006de3e
mov edx, dword [esp + 0x20]
xor ecx, ecx
add edx, 6
mov edi, eax
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [eax + ecx - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1006de16
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xb0]
push edi
call fcn.1004c8f0
add esp, 4
test edi, edi
jle 0x1006dea7
mov edx, dword [esp + 0x20]
xor esi, esi
add edx, 0xa
nop
cmp dword [edx + 2], 0
je 0x1006de9c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx - 2]
mov word [ecx + esi + 4], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx]
mov word [ecx + esi + 6], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub edi, 1
jne 0x1006de60
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006dec7
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006debf
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x1006df37
mov esi, dword [esp + 0x3c]
add esi, 0x38
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x1006df2d
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xb0]
push eax
call fcn.1004c8f0
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1006df2d
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [eax + edx + 0xc], 0
je 0x1006df25
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x1006df01
add esi, 0x54
sub dword [esp + 0x5c], 1
jne 0x1006dee0
mov edi, dword [esp + 0x10]
test byte [edi], 1
mov eax, dword [edi + 0x20]
jne 0x1006df68
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov esi, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x1012c844]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, esi
cvtdq2ps xmm0, xmm0
imul esi, eax
cmp byte [esp + 0x16], 0
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x10132b9c]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
je 0x1006dfc0
shl esi, 2
test eax, eax
je 0x1006dfb6
inc dword [eax + 0x370]
push esi
call dword [esp + 0x20]
mov dword [edi + 0x18], eax
jmp 0x1006dfd2
test eax, eax
je 0x1006dfca
inc dword [eax + 0x370]
push esi
call dword [esp + 0x20]
mov dword [edi + 0x14], eax
add esp, 4
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x58]
xor al, al
add esp, 0xc
mov byte [esp + 0x17], al
test ecx, ecx
jle 0x1006e3ab
mov eax, dword [esp + 0x3c]
xor esi, esi
add eax, 8
mov dword [esp + 0x6c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
nop dword [eax + eax]
cmp dword [eax + 0x30], 0
je 0x1006e388
mov ecx, dword [esp + 0x10]
movss xmm0, dword [eax - 4]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax]
mov edx, dword [ecx + 0x54]
add edx, esi
movss dword [esp + 0x54], xmm0
mov dword [esp + 0x5c], edx
cmp byte [edx + 0x3c], 0
mov edi, dword [edx + 0x7c]
mov dword [esp + 0x30], edi
jne 0x1006e084
mov ecx, edi
call fcn.10051b60
mov edx, dword [esp + 0x5c]
mov ecx, edi
movss xmm0, dword [esp + 0x34]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, edi
xor ecx, ecx
movss dword [edi + 0x48], xmm0
movss xmm0, dword [esp + 0x54]
mov word [edi + 0x38], cx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
movss dword [eax + 0x4c], xmm0
movss xmm0, dword [edi + 0x48]
addss xmm0, dword [0x1012c800]
inc word [edi + 0x38]
movss xmm1, dword [edx + 0x28]
movss dword [esp + 0x18], xmm1
mov dword [esp + 0x64], 0
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [ecx + 0xc]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x30], 0
addss xmm0, dword [edx + 0x2c]
movss dword [esp + 0x2c], xmm0
jle 0x1006e379
xor edx, edx
xor esi, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], esi
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, esi
add eax, edx
cmp word [eax + 4], 0
jne 0x1006e0fe
cmp word [eax + 6], 0
je 0x1006e351
movd xmm4, dword [edi + 0xc]
sub esp, 0x20
movd xmm3, dword [edi + 8]
movzx esi, word [eax + 8]
add esi, dword [esp + 0xbc]
movzx eax, word [eax + 0xa]
add eax, dword [esp + 0xbc]
cvtdq2ps xmm4, xmm4
mov edx, dword [edi + 4]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x54], eax
add eax, edx
cvtdq2ps xmm3, xmm3
addss xmm4, xmm0
movd xmm0, dword [ecx + 0x20]
cvtdq2ps xmm0, xmm0
mov ecx, dword [edi]
addss xmm3, xmm1
movss xmm1, dword [0x1012c844]
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x3c]
divss xmm1, xmm0
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
lea eax, [ecx + esi]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x18], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, word [edi + 0x18]
mulss xmm0, xmm1
movss dword [esp + 0x14], xmm0
movd xmm0, dword [esp + 0x54]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x50]
mulss xmm0, xmm1
movss dword [esp + 0xc], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, xmm4
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push eax
push dword [esp + 0x80]
call fcn.100521b0
cmp byte [edi + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
lea eax, [eax + eax*4]
je 0x1006e214
or dword [ecx + eax*8 - 0x28], 1
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 0x1c]
mov edx, dword [edi]
mov dword [esp + 0x20], esi
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x54], eax
imul eax, dword [esp + 0x34]
mov dword [esp + 0x34], 0
test ecx, ecx
je 0x1006e2b2
add eax, ecx
add eax, dword [esp + 0x1c]
cmp dword [edi + 4], 0
mov dword [esp + 0x1c], eax
jle 0x1006e341
lea ecx, [edx*4]
mov dword [esp + 0x98], ecx
nop
xor ecx, ecx
test edx, edx
jle 0x1006e28c
add esi, 3
nop dword [eax]
mov edx, dword [esp + 0x1c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x1006e270
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add eax, dword [esp + 0x54]
inc ecx
add esi, dword [esp + 0x98]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
cmp ecx, dword [edi + 4]
jl 0x1006e260
jmp 0x1006e341
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp dword [edi + 4], 0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x1c], ecx
jle 0x1006e341
mov eax, dword [esp + 0x54]
shl eax, 2
mov dword [esp + 0x54], eax
lea eax, [edx*4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x20]
nop dword [eax]
xor esi, esi
test edx, edx
jle 0x1006e320
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + eax]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [esp + 0x98]
cmp esi, edx
jl 0x1006e301
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
add ecx, dword [esp + 0x54]
inc esi
add eax, dword [esp + 0xa0]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
jl 0x1006e2f0
mov ecx, dword [esp + 0x10]
movss xmm1, dword [esp + 0x18]
movss xmm0, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
inc edx
add dword [esp + 0x50], 0x20
add dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x50]
cmp edx, dword [eax + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x60]
jl 0x1006e0e2
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x20], 0
add eax, 0x54
sub esi, 0xffffff80
sub ecx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x48], ecx
jne 0x1006e010
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x17]
xor esi, esi
mov byte [edi + 0x12], al
cmp dword [esp + 0x68], esi
jle 0x1006e3e9
mov edi, dword [esp + 0x58]
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1006e3d6
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e3d6
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x3c]
inc esi
add esp, 4
cmp esi, dword [esp + 0x68]
jl 0x1006e3c0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x1006e45b
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
add esi, 0x18
nop dword [eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1006e41c
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e416
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1006e438
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e432
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x1006e44d
push eax
call fcn.10080d10
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x4c], 1
jne 0x1006e400
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1006e486
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e472
dec dword [eax + 0x370]
mov esi, dword [esp + 0x38]
push ecx
call esi
add esp, 4
mov dword [esp + 0x3c], 0
jmp 0x1006e48a
mov esi, dword [esp + 0x38]
mov ecx, edi
call fcn.100517f0
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x16], 1
test ecx, ecx
je 0x1006e4b3
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e4ad
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x1006e4d0
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e4ca
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x1006e4ed
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1006e4e7
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1006e511
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006e505
dec dword [ecx + 0x370]
mov esi, dword [esp + 0x38]
push eax
call esi
add esp, 4
jmp 0x1006e515
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1006e533
mov ecx, dword [0x10132b9c]
test ecx, ecx
je 0x1006e52d
dec dword [ecx + 0x370]
push eax
call esi
add esp, 4
mov al, byte [esp + 0x16]
pop edi
pop esi
mov esp, ebp
pop ebp
ret