Function at 0x1007d520
Capabilities:
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 + 0x1c], ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x460], 0
jge 0x1007d5a6
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 0x1007d597
mov dword [esp + 0x74], 0x20002
call fcn.100663c0
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x460], eax
cmp dword [edi + 0x464], 0
jge 0x1007d60f
test byte [edi], 4
jne 0x1007d60f
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.100663c0
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x464], eax
mov ecx, edi
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
call fcn.10063540
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov byte [esp + 0x16], 0
mov dword [esp + 0x40], 0
mov ecx, dword [esi + 0x4c]
lea eax, [edi + 8]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], edx
test ecx, ecx
jle 0x1007d6b1
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x1007d6af
mov ecx, dword [0x101bf8f4]
test ecx, ecx
je 0x1007d697
inc dword [ecx + 0x370]
imul eax, eax, 0x54
push eax
call edx
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x40], eax
mov eax, 8
jmp 0x1007d6b1
mov eax, ecx
mov esi, dword [esi + 0x34]
mov dword [esp + 0x58], esi
test esi, esi
jle 0x1007d6e9
cmp esi, 8
mov ecx, esi
cmovl ecx, eax
test ecx, ecx
jle 0x1007d6e9
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007d6d7
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x4c], eax
mov edi, eax
imul ecx, dword [esp + 0x54], 0x54
push ecx
push 0
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + esi*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], eax
cmp dword [edx + 0x4c], 0
jle 0x1007d849
mov esi, dword [esp + 0x40]
xor ecx, ecx
add esi, 0x34
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], esi
nop
mov eax, dword [edx + 0x54]
xor edx, edx
add eax, ecx
mov dword [esi - 4], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
cmp dword [ecx + 0x34], edx
jle 0x1007d89e
mov edi, dword [esp + 0x20]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x1007d793
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 0x1007d783
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 + 0x34]
jl 0x1007d766
mov edi, dword [esp + 0x4c]
cmp ecx, 0xffffffff
je 0x1007d89e
push dword [ebp + 8]
mov esi, dword [esp + 0x24]
push eax
push dword [esp + 0x24]
lea ecx, [esi - 0x34]
call fcn.1007cd00
test al, al
je 0x1007d89e
mov ecx, dword [esp + 0x34]
mov edx, 0x101adb18
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [esp + 0x16], al
mov eax, dword [esi - 4]
lea eax, [eax + eax*2]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1007d80b
nop dword [eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1007d80b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x1007d7f0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
inc dword [edi + edx*8]
mov ecx, dword [esi]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
inc eax
mov dword [edi + edx*8 + 4], ecx
add esi, 0x54
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
sub ecx, 0xffffff80
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], ecx
cmp eax, dword [edx + 0x4c]
jl 0x1007d740
mov eax, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x18], esi
test eax, eax
jle 0x1007dbdd
mov esi, dword [esp + 0x40]
add esi, 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
nop word [eax + eax]
mov eax, dword [esi - 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [esi - 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi - 0x10]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jle 0x1007d8c1
test eax, eax
je 0x1007d8a8
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esi - 4]
jmp 0x1007d8ad
mov byte [esp + 0x16], 0
jmp 0x1007e841
mov edx, 8
cmp edx, ecx
mov eax, ecx
lea ecx, [esi - 8]
cmovg eax, edx
push eax
call fcn.1005ebf0
mov ecx, dword [esp + 0x1c]
lea eax, [esi - 8]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [esi]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [edx*8 + 0xc]
add eax, edi
mov dword [esp + 0x20], eax
cmp dword [eax], 0
jne 0x1007d959
mov ecx, dword [edi + edx*8 + 4]
mov edx, dword [eax + 4]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], edx
cmp ecx, edx
jle 0x1007d93a
test edx, edx
je 0x1007d91c
mov eax, edx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esp + 0x1c]
jmp 0x1007d921
mov edx, 8
cmp edx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x20]
cmovg eax, edx
push eax
call fcn.1005ebf0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
mov eax, dword [esp + 0x24]
push 0
push dword [eax + 8]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [esi - 0x18]
mov dword [esp + 0x20], eax
cmp word [eax], 0
je 0x1007da2f
nop word [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x1007da27
movzx edi, word [eax]
cmp edi, ecx
ja 0x1007da0e
mov eax, dword [esp + 0x4c]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x1007d9f9
mov eax, dword [esp + 0x38]
push edi
push dword [eax - 0x2c]
call fcn.100b0560
add esp, 8
test eax, eax
je 0x1007d9f9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x18]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x20]
inc edi
mov edx, dword [esp + 0x28]
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1007d988
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x20], eax
cmp word [eax], 0
jne 0x1007d970
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
add esi, 0x54
sub dword [esp + 0x34], 1
mov dword [esp + 0x38], esi
jne 0x1007d870
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
add esi, 0x50
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], eax
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x1007dab9
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007da6b
inc dword [eax + 0x370]
mov eax, edi
shl eax, 5
push eax
call dword [esp + 0x28]
mov edx, dword [esi]
add esp, 4
mov dword [esp + 0x1c], eax
test edx, edx
je 0x1007dab4
mov ecx, dword [esi - 8]
shl ecx, 5
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x1007daa8
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007daa8
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x54]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esi], eax
mov dword [esi - 4], edi
mov ecx, dword [esi - 0xc]
mov edx, ecx
mov eax, dword [esi - 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x6c], eax
cmp ecx, eax
jae 0x1007db8e
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1007db7d
xor edi, edi
nop dword [eax + eax]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x1c], eax
je 0x1007db73
mov ecx, dword [esi - 8]
mov eax, edx
sub eax, dword [esp + 0x48]
xorps xmm0, xmm0
shl eax, 3
and eax, 0xffffffe0
movaps xmmword [esp + 0x80], xmm0
add eax, edi
movzx eax, ax
mov dword [esp + 0x88], eax
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x1007db55
inc ecx
test eax, eax
je 0x1007db3b
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi - 4]
jmp 0x1007db40
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
call fcn.1007e980
mov edx, dword [esp + 0x34]
xorps xmm0, xmm0
mov eax, dword [esi - 8]
shl eax, 5
add eax, dword [esi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [eax + 0x10], xmm0
inc dword [esi - 8]
mov esi, dword [esp + 0x30]
inc edi
cmp edi, 0x20
jb 0x1007daf0
add edx, 4
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x6c]
jb 0x1007dad8
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x1007dbc1
mov eax, dword [0x101bf8f4]
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
test eax, eax
je 0x1007dbb2
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x54]
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [esp + 0x44], 1
mov dword [esp + 0x30], esi
jne 0x1007da54
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
jmp 0x1007dbe3
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x58], 0
jle 0x1007dc47
mov esi, dword [esp + 0x50]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x34], eax
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1007dc33
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007dc23
dec dword [eax + 0x370]
push ecx
call esi
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x34], eax
sub edi, 1
jne 0x1007dc00
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x1007dc6a
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007dc5a
dec dword [eax + 0x370]
push edi
call dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x4c], 0
xor ecx, ecx
mov dword [esp + 0x34], ecx
test esi, esi
jle 0x1007dcaa
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1007dcaa
mov ecx, dword [0x101bf8f4]
test ecx, ecx
je 0x1007dc95
inc dword [ecx + 0x370]
mov edi, dword [esp + 0x24]
shl eax, 4
push eax
call edi
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
jmp 0x1007dcae
mov edi, dword [esp + 0x24]
shl esi, 4
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007dcd2
inc dword [eax + 0x370]
push 0x40000
call edi
mov ecx, dword [0x101bf8f4]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x1007dcee
inc dword [ecx + 0x370]
push 0x20
call edi
movss xmm0, dword [0x101b63d0]
xor ecx, ecx
mov dword [esp + 0x24], 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 + 0x54]
mov dword [esp + 0xa8], 8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x60], edi
test eax, eax
jle 0x1007e037
mov esi, dword [esp + 0x40]
xor edx, edx
add esi, 0x48
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], esi
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x1007e00a
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [esp + 0x34]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
mov dword [esp + 0x60], edi
movss dword [esp + 0x1c], xmm1
lahf
test ah, 0x44
jnp 0x1007dddb
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 + 0x101b68e0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1010f560
movss xmm1, dword [esp + 0x1c]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + edi + 0xe0], dl
inc edi
cmp edi, 0x100
jb 0x1007dd93
jmp 0x1007dde0
mov byte [esp + 0x17], 0
cmp dword [esi], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
jle 0x1007e006
xor ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x58], ecx
nop word [eax + eax]
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x30]
call fcn.100b0560
add esp, 8
test eax, eax
je 0x1007dfe5
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.100b0f10
add esp, 0xc
test eax, eax
jne 0x1007dfe5
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x30], eax
je 0x1007de5f
push eax
call fcn.100b7d70
mov eax, dword [esp + 0x34]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x1007de6e
push eax
call fcn.100b7e70
add esp, 4
mov eax, dword [esp + 0x30]
add eax, 0x18
je 0x1007dfe5
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [esp + 0x24], eax
call fcn.100b31e0
add esp, 8
test eax, eax
jne 0x1007dfe5
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
add eax, 0x4c
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 4]
mov dword [edi], ecx
mov eax, dword [eax]
mov dword [esp + 0x28], 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 + 0x1c]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esp + 0x38]
sar eax, 6
movd xmm0, eax
mov eax, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm0
cmp byte [eax + 0x12], 7
sete al
mov byte [edi + 0x14], al
mov eax, dword [esp + 0x28]
imul eax, ecx
shl eax, 2
mov dword [esp + 0x28], eax
add eax, edx
cmp eax, 0x40000
jle 0x1007df6b
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007df2e
inc dword [eax + 0x370]
push 0x40000
call dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xa4]
push eax
call fcn.1005ec70
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x68], ecx
jmp 0x1007df73
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xe0]
add ecx, edx
add edx, dword [esp + 0x28]
mov dword [esp + 0x38], 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 + 0x3c]
call fcn.1007cee0
mov eax, dword [esp + 0x48]
movzx ecx, word [edi]
movzx edx, ax
mov eax, dword [esi - 0x20]
add cx, dx
mov esi, dword [esp + 0x18]
mov word [esi + eax + 4], cx
mov esi, dword [esp + 0x64]
movzx ecx, word [edi + 4]
add cx, dx
mov edx, dword [esp + 0x18]
mov eax, dword [esi - 0x20]
mov word [edx + eax + 6], cx
mov eax, dword [esi - 0x20]
movzx ecx, word [edx + eax + 6]
movzx eax, word [edx + eax + 4]
imul ecx, eax
add dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
inc eax
add dword [esp + 0x18], 0x10
add ecx, 0x20
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], ecx
cmp eax, dword [esi]
jl 0x1007de10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
add esi, 0x54
movss xmm0, dword [0x101b63d0]
sub edx, 0xffffff80
sub dword [esp + 0x3c], 1
mov edi, dword [esp + 0x60]
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], edx
jne 0x1007dd56
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 8]
mov dword [edx + 0x20], 0
test edi, edi
jg 0x1007e094
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
sqrtss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x101b65e4]
jb 0x1007e070
mov edi, 0x1000
jmp 0x1007e094
comiss xmm0, dword [0x101b65e0]
jb 0x1007e080
mov edi, 0x800
jmp 0x1007e094
comiss xmm0, dword [0x101b65d8]
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 + 0x1c], ecx
test edi, edi
jle 0x1007e0da
cmp edi, 8
mov eax, edi
mov esi, 8
cmovl eax, esi
test eax, eax
jle 0x1007e0da
mov ecx, dword [0x101bf8f4]
test ecx, ecx
je 0x1007e0c5
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], 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.1007d3b0
mov ecx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x1007e13f
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1007e13f
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e130
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x18], 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 0x1007e18e
mov edx, dword [esp + 0x18]
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 [ecx + eax - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1007e166
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push edi
call fcn.1005f510
add esp, 4
test edi, edi
jle 0x1007e1f7
mov edx, dword [esp + 0x18]
xor esi, esi
add edx, 0xa
nop
cmp dword [edx + 2], 0
je 0x1007e1ec
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 4], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 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 0x1007e1b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007e217
mov ecx, dword [0x101bf8f4]
test ecx, ecx
je 0x1007e20f
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x54]
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x1007e287
mov esi, dword [esp + 0x40]
add esi, 0x38
mov dword [esp + 0x60], eax
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x1007e27d
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xb0]
push eax
call fcn.1005f510
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1007e27d
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0xc], 0
je 0x1007e275
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 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 0x1007e251
add esi, 0x54
sub dword [esp + 0x60], 1
jne 0x1007e230
mov edi, dword [esp + 0x10]
test byte [edi], 1
mov eax, dword [edi + 0x20]
jne 0x1007e2b8
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 [0x101b63d0]
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 [0x101bf8f4]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
je 0x1007e310
shl esi, 2
test eax, eax
je 0x1007e306
inc dword [eax + 0x370]
push esi
call dword [esp + 0x28]
mov dword [edi + 0x18], eax
jmp 0x1007e322
test eax, eax
je 0x1007e31a
inc dword [eax + 0x370]
push esi
call dword [esp + 0x28]
mov dword [edi + 0x14], eax
add esp, 4
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x60]
xor al, al
add esp, 0xc
mov byte [esp + 0x17], al
test ecx, ecx
jle 0x1007e6fb
mov eax, dword [esp + 0x40]
xor esi, esi
add eax, 8
mov dword [esp + 0x6c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ecx
nop dword [eax + eax]
cmp dword [eax + 0x30], 0
je 0x1007e6d8
mov ecx, dword [esp + 0x10]
movss xmm0, dword [eax - 4]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax]
mov edx, dword [ecx + 0x54]
add edx, esi
movss dword [esp + 0x5c], xmm0
mov dword [esp + 0x60], edx
cmp byte [edx + 0x3c], 0
mov edi, dword [edx + 0x7c]
mov dword [esp + 0x38], edi
jne 0x1007e3d4
mov ecx, edi
call fcn.10064400
mov edx, dword [esp + 0x60]
mov ecx, edi
movss xmm0, dword [esp + 0x3c]
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 + 0x5c]
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 [0x101b6388]
inc word [edi + 0x38]
movss xmm1, dword [edx + 0x28]
movss dword [esp + 0x24], 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 + 0x30]
cmp dword [eax + 0x30], 0
addss xmm0, dword [edx + 0x2c]
movss dword [esp + 0x28], xmm0
jle 0x1007e6c9
xor edx, edx
xor esi, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], esi
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, esi
add eax, edx
cmp word [eax + 4], 0
jne 0x1007e44e
cmp word [eax + 6], 0
je 0x1007e6a1
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 + 0x4c], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x5c], 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 [0x101b63d0]
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x4c]
divss xmm1, xmm0
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
lea eax, [esi + ecx]
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 + 0x5c]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x58]
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 + 0x84]
call fcn.10064a50
cmp byte [edi + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
lea eax, [eax + eax*4]
je 0x1007e564
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 + 0x18], esi
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x5c], eax
imul eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x1007e602
add eax, ecx
add eax, dword [esp + 0x2c]
cmp dword [edi + 4], 0
mov dword [esp + 0x2c], eax
jle 0x1007e691
lea ecx, [edx*4]
mov dword [esp + 0x98], ecx
nop
xor ecx, ecx
test edx, edx
jle 0x1007e5dc
add esi, 3
nop dword [eax]
mov edx, dword [esp + 0x2c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x1007e5c0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x5c]
inc ecx
add esi, dword [esp + 0x98]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
cmp ecx, dword [edi + 4]
jl 0x1007e5b0
jmp 0x1007e691
mov ecx, dword [esp + 0x2c]
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 + 0x2c], ecx
jle 0x1007e691
mov eax, dword [esp + 0x5c]
shl eax, 2
mov dword [esp + 0x5c], eax
lea eax, [edx*4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x18]
nop dword [eax]
xor esi, esi
test edx, edx
jle 0x1007e670
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov eax, dword [eax + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [esp + 0x98]
cmp esi, edx
jl 0x1007e651
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add ecx, dword [esp + 0x5c]
inc esi
add eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
cmp esi, dword [edi + 4]
jl 0x1007e640
mov ecx, dword [esp + 0x10]
movss xmm1, dword [esp + 0x24]
movss xmm0, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
inc edx
add dword [esp + 0x44], 0x20
add dword [esp + 0x58], 0x10
mov esi, dword [esp + 0x44]
cmp edx, dword [eax + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x58]
jl 0x1007e432
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 + 0x30], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x48], ecx
jne 0x1007e360
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x17]
xor esi, esi
mov byte [edi + 0x12], al
cmp dword [esp + 0x68], esi
jle 0x1007e739
mov edi, dword [esp + 0x20]
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1007e726
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e726
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x54]
inc esi
add esp, 4
cmp esi, dword [esp + 0x68]
jl 0x1007e710
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x1007e7ab
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
add esi, 0x18
nop dword [eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1007e76c
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e766
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1007e788
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e782
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x1007e79d
push eax
call fcn.100b00d0
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x54], 1
jne 0x1007e750
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x1007e7d6
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e7c2
dec dword [eax + 0x370]
mov esi, dword [esp + 0x50]
push ecx
call esi
add esp, 4
mov dword [esp + 0x40], 0
jmp 0x1007e7da
mov esi, dword [esp + 0x50]
mov ecx, edi
call fcn.10064100
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x16], 1
test ecx, ecx
je 0x1007e803
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e7fd
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1007e820
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e81a
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1007e83d
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e837
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x1007e860
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1007e854
dec dword [eax + 0x370]
mov esi, dword [esp + 0x50]
push edi
call esi
add esp, 4
jmp 0x1007e864
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1007e882
mov ecx, dword [0x101bf8f4]
test ecx, ecx
je 0x1007e87c
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