Function at 0x10020140
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x100870c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10c], edi
cmp dword [edi + 0x4c], 0
jg 0x1002017c
push 0x6ab
push 0x10082560
push 0x10082a30
call dword [fcn.1003e26c]
add esp, 0xc
cmp dword [edi + 0x58], 0
jge 0x100201ee
test byte [edi + 4], 2
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x194], 0xffffffff
lea ecx, [edi + 0x40]
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x19c], 0x80000000
push eax
mov dword [ebp - 0x198], 0x1b00d9
je 0x100201e2
mov dword [ebp - 0x198], 0x20002
call fcn.10022fe0
mov eax, dword [edi + 0x40]
dec eax
mov dword [edi + 0x58], eax
mov ecx, edi
mov dword [edi + 8], 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.1001f8d0
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x12c], eax
xor esi, esi
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x150], ebx
test eax, eax
jle 0x100202be
xor edi, edi
cmp esi, eax
jl 0x1002025d
push 0x4ef
push 0x1007fa10
push 0x10081dd8
call dword [fcn.1003e26c]
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ecx + 0x54]
mov edx, dword [eax + edi + 0x30]
test edx, edx
jne 0x1002027b
mov dword [eax + edi + 0x30], 0x10083144
mov edx, 0x10083144
cmp word [edx], 0
je 0x100202a7
movzx ecx, word [edx + 2]
test cx, cx
je 0x100202a1
movzx eax, word [edx]
inc ebx
inc dword [ebp - 0x12c]
add edx, 4
sub ecx, eax
add ebx, ecx
cmp word [edx], 0
jne 0x10020281
mov dword [ebp - 0x150], ebx
mov eax, dword [ebp - 0x10c]
inc esi
add edi, 0x74
mov eax, dword [eax + 0x4c]
cmp esi, eax
jl 0x1002025d
mov edi, dword [ebp - 0x10c]
mov esi, dword [edi + 0xc]
test esi, esi
jg 0x100202f6
cmp ebx, 0xfa0
jle 0x100202d4
mov esi, 0x1000
jmp 0x100202f6
cmp ebx, 0x7d0
jle 0x100202e3
mov esi, 0x800
jmp 0x100202f6
cmp ebx, 0x3e8
mov esi, 0x200
mov eax, 0x400
cmovg esi, eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x130], eax
mov eax, dword [0x1008794c]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0
test eax, eax
je 0x10020318
inc dword [eax + 0x388]
push 0x30
call dword [fcn.1003e22c]
mov edi, eax
mov ebx, esi
sub ebx, dword [ebp - 0x130]
add esp, 4
mov eax, dword [0x1008794c]
mov dword [ebp - 0x118], edi
test eax, eax
je 0x10020342
inc dword [eax + 0x388]
lea eax, [ebx*8]
push eax
call dword [fcn.1003e22c]
add esp, 4
mov dword [ebp - 0x134], eax
test edi, edi
je 0x1002120e
test eax, eax
je 0x100211fc
mov ecx, dword [ebp - 0x130]
mov edx, ebx
push ebx
push eax
mov dword [ebp - 0x15c], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x16c], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x174], 0x8000
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x170], esi
call fcn.10016280
mov esi, dword [ebp - 0x10c]
mov ebx, 1
add esp, 0xc
mov dword [ebp - 0x110], ebx
mov eax, ebx
mov edx, edi
mov ecx, esi
mov dword [ebp - 0x128], eax
call fcn.10021240
imul ecx, dword [esi + 0x4c], 0x8c
mov eax, dword [0x1008794c]
test eax, eax
je 0x100203f9
inc dword [eax + 0x388]
push ecx
call dword [fcn.1003e22c]
mov ecx, dword [esi + 0x4c]
add esp, 4
mov edx, eax
xor edi, edi
mov dword [ebp - 0x148], edx
test ecx, ecx
jle 0x100204f5
xor eax, eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], eax
cmp edi, ecx
jl 0x10020448
push 0x4ef
push 0x1007fa10
push 0x10081dd8
call dword [fcn.1003e26c]
mov eax, dword [ebp - 0x138]
add esp, 0xc
mov esi, dword [esi + 0x54]
add esi, eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x10020463
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1002047b
cmp eax, dword [ebp - 0x10c]
je 0x1002047b
push 0x6de
push 0x10082560
push 0x10082a68
call dword [fcn.1003e26c]
add esp, 0xc
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
call fcn.10017200
mov dword [ebp - 0x114], eax
test eax, eax
jns 0x100204ad
push 0x6e1
push 0x10082560
push 0x10082b10
call dword [fcn.1003e26c]
mov eax, dword [ebp - 0x114]
add esp, 0xc
mov edx, dword [esi]
mov esi, dword [ebp - 0x130]
mov ecx, esi
push eax
call fcn.10017500
add esp, 4
test eax, eax
je 0x1002096c
mov eax, dword [ebp - 0x138]
add esi, 0x8c
mov dword [ebp - 0x130], esi
inc edi
mov esi, dword [ebp - 0x10c]
add eax, 0x74
mov dword [ebp - 0x138], eax
mov ecx, dword [esi + 0x4c]
cmp edi, ecx
jl 0x10020448
mov eax, dword [0x1008794c]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x124], 0
test eax, eax
je 0x10020522
inc dword [eax + 0x388]
mov esi, dword [ebp - 0x150]
lea edi, [esi*8]
sub edi, esi
shl edi, 2
push edi
call dword [fcn.1003e22c]
mov ecx, dword [0x1008794c]
add esp, 4
mov dword [ebp - 0x158], eax
test ecx, ecx
je 0x10020554
inc dword [ecx + 0x388]
mov eax, esi
shl eax, 4
push eax
mov dword [ebp - 0x114], eax
call dword [fcn.1003e22c]
mov ecx, dword [0x1008794c]
add esp, 4
mov dword [ebp - 0x13c], eax
test ecx, ecx
je 0x1002057f
inc dword [ecx + 0x388]
mov eax, dword [ebp - 0x12c]
lea esi, [eax + eax*2]
shl esi, 3
push esi
call dword [fcn.1003e22c]
add esp, 4
mov dword [ebp - 0x130], eax
push edi
push 0
push dword [ebp - 0x158]
call fcn.1003cb9c
add esp, 0xc
push dword [ebp - 0x114]
push 0
push dword [ebp - 0x13c]
call fcn.1003cb9c
add esp, 0xc
push esi
push 0
push dword [ebp - 0x130]
call fcn.1003cb9c
mov esi, dword [ebp - 0x10c]
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x140], edx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jle 0x100209ad
mov edi, dword [ebp - 0x148]
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x144], edi
cmp edx, ecx
jl 0x1002061c
push 0x4ef
push 0x1007fa10
push 0x10081dd8
call dword [fcn.1003e26c]
add esp, 0xc
mov ecx, dword [esi + 0x54]
xor esi, esi
add ecx, ebx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x118], esi
mov edx, dword [ecx + 0x30]
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x10020687
mov edi, esi
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1002066f
add edx, 4
mov ecx, eax
movzx eax, bx
inc edi
sub ecx, eax
inc esi
add edi, ecx
movzx ebx, word [edx]
test bx, bx
jne 0x10020650
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x138], edi
mov edi, dword [ebp - 0x144]
mov dword [ebp - 0x118], esi
mov edx, dword [ebp - 0x124]
mov ebx, dword [ebp - 0x130]
mov dword [edi + 0x88], esi
lea eax, [edx + edx*2]
add edx, esi
lea eax, [ebx + eax*8]
mov dword [ebp - 0x124], edx
xor ebx, ebx
mov dword [edi + 0x84], eax
test esi, esi
jle 0x1002072d
xor eax, eax
mov dword [ebp - 0x134], eax
nop dword [eax + eax]
mov edx, dword [ecx + 0x30]
mov esi, dword [edi + 0x84]
mov edi, dword [ebp - 0x158]
add esi, eax
mov eax, dword [ecx + 0x10]
mov dword [esi], eax
movzx eax, word [edx + ebx*4]
mov dword [esi + 4], eax
movzx eax, word [edx + ebx*4]
movzx ecx, word [edx + ebx*4 + 2]
inc ebx
mov edx, dword [ebp - 0x120]
sub ecx, eax
inc ecx
mov dword [esi + 0xc], ecx
lea eax, [edx*8]
sub eax, edx
add edx, ecx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x120], edx
lea eax, [edi + eax*4]
mov edi, dword [ebp - 0x144]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x134]
add eax, 0x18
mov dword [ebp - 0x134], eax
cmp ebx, dword [ebp - 0x118]
jl 0x100206c0
mov edx, dword [ebp - 0x154]
mov eax, edx
mov ecx, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x138]
add edx, ebx
shl eax, 4
add ecx, eax
mov dword [edi + 0x80], ebx
mov eax, dword [ebp - 0x14c]
mov dword [edi + 0x7c], ecx
mov dword [ebp - 0x154], edx
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x118], eax
cmp eax, 8
jbe 0x10020789
push 0xee2
push 0x10082028
push 0x100824b4
call dword [fcn.1003e26c]
mov ecx, dword [edi + 0x7c]
add esp, 0xc
cmp esi, 8
jbe 0x100207a9
push 0xee3
push 0x10082028
push 0x100824d8
call dword [fcn.1003e26c]
mov ecx, dword [edi + 0x7c]
add esp, 0xc
cmp dword [ebp - 0x118], 8
mov edx, edi
mov eax, dword [ebp - 0x110]
cmovbe eax, dword [ebp - 0x118]
cmp esi, 8
push ecx
push dword [edi + 0x88]
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x180]
mov eax, dword [ebp - 0x128]
push dword [edi + 0x84]
cmovbe eax, esi
mov dword [ebp - 0x164], eax
call fcn.1001c3a0
add esp, 0xc
mov dword [ebp - 0x110], eax
cmp eax, ebx
je 0x10020814
push 0x712
push 0x10082560
push 0x10082ba0
call dword [fcn.1003e26c]
add esp, 0xc
xor edx, edx
xor esi, esi
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x134], esi
cmp dword [edi + 0x88], edx
jle 0x100208ab
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov eax, dword [edi + 0x84]
xor ebx, ebx
cmp dword [ecx + eax + 0xc], ebx
jle 0x10020893
mov esi, edx
shl esi, 4
mov edx, dword [eax + ecx + 4]
mov ecx, edi
add edx, ebx
call fcn.10017aa0
test eax, eax
jne 0x1002086a
mov eax, dword [edi + 0x7c]
xor ecx, ecx
mov word [esi + eax + 6], cx
mov eax, dword [edi + 0x7c]
mov word [esi + eax + 4], cx
mov eax, dword [edi + 0x84]
inc ebx
mov ecx, dword [ebp - 0x144]
add esi, 0x10
mov edx, dword [ebp - 0x118]
inc edx
mov dword [ebp - 0x118], edx
cmp ebx, dword [ecx + eax + 0xc]
jl 0x10020847
mov esi, dword [ebp - 0x134]
inc esi
add ecx, 0x18
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], ecx
cmp esi, dword [edi + 0x88]
jl 0x10020834
mov eax, dword [ebp - 0x17c]
mov ecx, eax
mov ebx, dword [ebp - 0x110]
mov edx, dword [edi + 0x7c]
push ebx
mov dword [ebp - 0x118], eax
call fcn.10016850
add esp, 4
test ebx, ebx
jle 0x1002091a
xor edx, edx
mov eax, dword [edi + 0x7c]
cmp word [edx + eax + 4], 0
jne 0x100208ec
cmp word [edx + eax + 6], 0
jne 0x100208ec
mov dword [edx + eax + 0xc], 0
mov eax, dword [edi + 0x7c]
cmp dword [edx + eax + 0xc], 0
je 0x10020912
movzx ecx, word [edx + eax + 0xa]
mov esi, dword [ebp - 0x10c]
movzx eax, word [edx + eax + 6]
add ecx, eax
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
add edx, 0x10
sub ebx, 1
jne 0x100208d1
mov esi, dword [ebp - 0x10c]
add edi, 0x8c
mov edx, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x114]
inc edx
mov eax, dword [ebp - 0x164]
add ebx, 0x74
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x128], eax
cmp edx, ecx
jge 0x1002099f
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x110], eax
jmp 0x10020600
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x148]
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
test ecx, ecx
je 0x10020999
mov eax, dword [0x1008794c]
test eax, eax
je 0x10020999
dec dword [eax + 0x388]
push ecx
jmp 0x10021223
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x168]
jmp 0x100209b3
mov esi, dword [ebp - 0x134]
mov edi, dword [ebp - 0x150]
cmp dword [ebp - 0x154], edi
je 0x100209d9
push 0x729
push 0x10082560
push 0x10082bd0
call dword [fcn.1003e26c]
add esp, 0xc
cmp dword [ebp - 0x120], edi
mov edi, dword [fcn.1003e26c]
je 0x100209fb
push 0x72a
push 0x10082560
push 0x10082c18
call edi
add esp, 0xc
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x124], eax
je 0x10020a1d
push 0x72b
push 0x10082560
push 0x10082c68
call edi
add esp, 0xc
mov edi, dword [ebp - 0x10c]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10020a51
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 ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x10083d78]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x1008794c]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x10020a95
inc dword [eax + 0x388]
push ecx
call dword [fcn.1003e22c]
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call fcn.1003cb9c
mov eax, dword [edi + 0x14]
xor edx, edx
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov dword [ebp - 0x160], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x114], edx
test ecx, ecx
jle 0x10020cee
mov edi, dword [ebp - 0x148]
sub edi, 0xffffff80
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edi
nop
cmp edx, ecx
jl 0x10020b0c
push 0x4ef
push 0x1007fa10
push 0x10081dd8
call dword [fcn.1003e26c]
add esp, 0xc
mov eax, dword [ebp - 0x10c]
mov esi, dword [eax + 0x54]
add esi, dword [ebp - 0x124]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x140], eax
cmp eax, 8
jbe 0x10020b50
push 0xee2
push 0x10082028
push 0x100824b4
call dword [fcn.1003e26c]
mov ecx, dword [ebp - 0x110]
add esp, 0xc
cmp ecx, 8
jbe 0x10020b73
push 0xee3
push 0x10082028
push 0x100824d8
call dword [fcn.1003e26c]
mov ecx, dword [ebp - 0x110]
add esp, 0xc
cmp dword [ebp - 0x140], 8
lea edx, [edi - 0x80]
push dword [edi - 4]
cmovbe ebx, dword [ebp - 0x140]
cmp ecx, 8
push dword [edi + 8]
mov eax, dword [ebp - 0x128]
push dword [edi + 4]
cmovbe eax, ecx
mov dword [ebp - 0x168], ebx
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x164], eax
call fcn.1001c6b0
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x10083d78]
movss dword [ebp - 0x110], xmm1
lahf
test ah, 0x44
jnp 0x10020c95
xor esi, esi
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10084080]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1003cd00
movss xmm1, dword [ebp - 0x110]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x108], dl
inc esi
cmp esi, 0x100
jb 0x10020bd3
mov eax, dword [edi]
mov ebx, dword [edi - 4]
shl eax, 4
add eax, ebx
cmp ebx, eax
je 0x10020c95
mov ecx, dword [ebp - 0x170]
nop
cmp dword [ebx + 0xc], 0
je 0x10020c86
movzx eax, word [ebx + 0xa]
movzx edx, word [ebx + 8]
movzx edi, word [ebx + 6]
movzx esi, word [ebx + 4]
imul eax, ecx
add eax, dword [ebp - 0x160]
add edx, eax
test edi, edi
je 0x10020c80
xor ecx, ecx
test esi, esi
je 0x10020c73
nop dword [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x108]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10020c60
mov ecx, dword [ebp - 0x170]
dec edi
add edx, ecx
test edi, edi
jg 0x10020c55
mov edi, dword [ebp - 0x120]
mov eax, dword [edi]
add ebx, 0x10
shl eax, 4
add eax, dword [edi - 4]
cmp ebx, eax
jne 0x10020c30
mov ebx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x114]
add dword [ebp - 0x124], 0x74
inc edx
mov dword [edi - 4], 0
add edi, 0x8c
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x120], edi
cmp edx, ecx
jge 0x10020ce0
mov eax, dword [ebp - 0x164]
mov ebx, dword [ebp - 0x168]
mov dword [ebp - 0x128], eax
jmp 0x10020af0
mov esi, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x17c]
jmp 0x10020cfa
mov edi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x10c]
test esi, esi
je 0x10020d0d
mov eax, dword [0x1008794c]
test eax, eax
je 0x10020d0d
dec dword [eax + 0x388]
push esi
mov esi, dword [fcn.1003e228]
call esi
add esp, 4
test edi, edi
je 0x10020d2c
mov eax, dword [0x1008794c]
test eax, eax
je 0x10020d2c
dec dword [eax + 0x388]
push edi
call esi
mov ecx, dword [ebp - 0x13c]
add esp, 4
test ecx, ecx
je 0x10020d4b
mov eax, dword [0x1008794c]
test eax, eax
je 0x10020d4b
dec dword [eax + 0x388]
push ecx
call esi
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x140], ecx
test eax, eax
jle 0x10021185
mov esi, dword [ebp - 0x148]
xor edx, edx
add esi, 4
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x128], esi
cmp ecx, eax
jl 0x10020d9d
push 0x4ef
push 0x1007fa10
push 0x10081dd8
call dword [fcn.1003e26c]
mov edx, dword [ebp - 0x120]
add esp, 0xc
mov edi, dword [ebx + 0x54]
mov ebx, dword [edi + edx + 0x70]
add edi, edx
mov dword [ebp - 0x13c], ebx
mov al, byte [edi + 0x3c]
mov byte [ebp - 0x119], al
test al, al
je 0x10020dc9
mov ecx, ebx
call fcn.10021a60
mov al, byte [edi + 0x3c]
mov byte [ebp - 0x119], al
mov edx, dword [ebp - 0x128]
mov eax, 0x100
mov esi, dword [esi + 0x18]
cwde
movss xmm1, dword [edi + 0x10]
mov edx, dword [edx]
movzx ecx, byte [esi + edx + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx + 7]
add cx, ax
movsx eax, cx
movzx ecx, byte [esi + edx + 4]
mov dword [ebp - 0x110], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx + 5]
add cx, ax
movsx esi, cx
mov eax, esi
sub eax, dword [ebp - 0x110]
cmp byte [ebp - 0x119], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x114], xmm1
jne 0x10020ed0
mov ecx, ebx
call fcn.10021990
mov eax, dword [edi + 0x10]
xorps xmm3, xmm3
mov dword [ebx], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebx + 0x44], eax
xor eax, eax
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov dword [ebx + 0x40], edi
comiss xmm1, xmm3
mulss xmm1, dword [ebp - 0x114]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [ebp - 0x110]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
xor eax, eax
comiss xmm1, xmm3
mulss xmm1, dword [ebp - 0x114]
cvtdq2ps xmm0, xmm0
seta al
lea eax, [eax*2 - 1]
movss dword [ebx + 0x48], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x4c], xmm0
movss xmm0, dword [ebx + 0x48]
xor ecx, ecx
movss xmm2, dword [0x10083d44]
inc word [ebx + 0x3e]
addss xmm0, xmm2
mov esi, dword [ebp - 0x128]
movss xmm1, dword [edi + 0x28]
movss dword [ebp - 0x134], xmm1
mov dword [ebp - 0x110], ecx
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x2c]
movss dword [ebp - 0x118], xmm0
cmp dword [esi + 0x84], ecx
jle 0x10021146
xor eax, eax
mov dword [ebp - 0x114], eax
nop dword [eax]
mov ebx, dword [esi + 0x80]
add ebx, eax
xor eax, eax
mov dword [ebp - 0x124], eax
cmp dword [ebx + 0xc], eax
jle 0x10021124
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebx + 0x10]
add edx, ecx
cmp word [edx], 0
jne 0x10020f75
cmp word [edx + 4], 0
jne 0x10020f75
cmp word [edx + 2], 0
jne 0x10020f75
cmp word [edx + 6], 0
je 0x100210ff
mov esi, dword [ebx + 4]
add esi, eax
cmp byte [edi + 0x3c], 0
je 0x10020fb6
mov eax, dword [ebp - 0x13c]
movzx ecx, si
cmp ecx, dword [eax + 0x28]
jge 0x10020fb6
mov eax, dword [eax + 0x30]
movzx eax, word [eax + ecx*2]
mov ecx, 0xffff
cmp ax, cx
je 0x10020fb6
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*8]
test eax, eax
jne 0x100210f3
movss xmm0, dword [edx + 0x10]
movss xmm7, dword [edi + 0x34]
comiss xmm7, xmm0
ja 0x10020fce
movss xmm7, dword [edi + 0x38]
minss xmm7, xmm0
ucomiss xmm0, xmm7
movaps xmm6, xmm1
lahf
test ah, 0x44
jnp 0x10020ffa
cmp byte [edi + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x10020ff6
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
mov eax, dword [ebp - 0x10c]
sub esp, 0x1c
movss xmm3, dword [0x10083d78]
mov ecx, dword [ebx + 0x10]
add ecx, dword [ebp - 0x12c]
movd xmm0, dword [eax + 0x1c]
movss xmm2, dword [0x10083d78]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm7
divss xmm3, xmm0
movd xmm0, dword [eax + 0x20]
movzx eax, word [ecx]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
movzx eax, word [ecx + 2]
divss xmm2, xmm0
movd xmm4, eax
movzx eax, word [ecx + 4]
cvtdq2ps xmm4, xmm4
movd xmm1, eax
movzx eax, word [ecx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm4, xmm2
mulss xmm0, xmm2
movss xmm2, dword [ecx + 8]
mulss xmm1, xmm3
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ecx + 0x18]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
xorps xmm4, xmm4
addss xmm0, xmm4
cvtdq2ps xmm5, xmm5
addss xmm0, dword [ebp - 0x118]
mulss xmm5, xmm3
addss xmm2, xmm4
movss xmm3, dword [ecx + 0xc]
addss xmm3, xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm0
addss xmm2, xmm6
movss xmm0, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x13c]
addss xmm0, xmm4
addss xmm3, dword [ebp - 0x118]
addss xmm0, xmm6
movss dword [esp], xmm0
push esi
call fcn.10021ec0
movss xmm1, dword [ebp - 0x134]
movss xmm2, dword [0x10083d44]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x124]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], ecx
cmp eax, dword [ebx + 0xc]
jl 0x10020f51
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x114]
inc ecx
add eax, 0x18
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], eax
cmp ecx, dword [esi + 0x84]
jl 0x10020f30
mov ebx, dword [ebp - 0x10c]
add esi, 0x8c
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x120]
inc ecx
add edx, 0x74
mov dword [ebp - 0x140], ecx
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x128], esi
cmp ecx, eax
jl 0x10020d9d
mov esi, dword [fcn.1003e228]
mov ecx, dword [ebp - 0x158]
test ecx, ecx
je 0x1002119e
mov eax, dword [0x1008794c]
test eax, eax
je 0x1002119e
dec dword [eax + 0x388]
push ecx
call esi
mov ecx, dword [ebp - 0x130]
add esp, 4
test ecx, ecx
je 0x100211bd
mov eax, dword [0x1008794c]
test eax, eax
je 0x100211bd
dec dword [eax + 0x388]
push ecx
call esi
mov ecx, dword [ebp - 0x148]
add esp, 4
test ecx, ecx
je 0x100211dc
mov eax, dword [0x1008794c]
test eax, eax
je 0x100211dc
dec dword [eax + 0x388]
push ecx
call esi
add esp, 4
mov ecx, ebx
call fcn.10021720
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bcd0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1008794c]
test eax, eax
je 0x1002120b
dec dword [eax + 0x388]
push edi
jmp 0x10021223
test eax, eax
je 0x1002122c
mov ecx, dword [0x1008794c]
test ecx, ecx
je 0x10021222
dec dword [ecx + 0x388]
push eax
call dword [fcn.1003e228]
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bcd0
mov esp, ebp
pop ebp
ret