Function at 0x10108230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10176409
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1c0
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
cmp dword [esi + 0x58], 0
jge 0x101082c0
test byte [esi + 4], 2
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x80], bind
push eax
mov dword [ebp - 0x7c], 0x1b00d9
je 0x101082b4
mov dword [ebp - 0x7c], 0x20002
call fcn.1010ba70
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x28], ecx
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], ecx
mov ecx, esi
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], eax
call fcn.10107b00
xor edx, edx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x54], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x98], edi
mov byte [ebp - 4], 1
lea edx, [edi + 8]
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x50], ecx
test ecx, ecx
jle 0x101083a7
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x101083a7
mov ecx, dword [0x1078597c]
test ecx, ecx
je 0x10108378
inc dword [ecx + 0x374]
push dword [0x10785978]
imul eax, eax, 0xc4
push eax
call fcn.100eacb0
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0xbc], ecx
mov edx, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x101083fe
cmp eax, 8
mov esi, eax
cmovl esi, edx
test esi, esi
jle 0x101083fe
mov eax, dword [0x1078597c]
test eax, eax
je 0x101083d2
inc dword [eax + 0x374]
push dword [0x10785978]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.100eacb0
mov ecx, dword [ebp - 0x50]
mov edi, eax
mov eax, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
mov esi, dword [ebp - 0x54]
imul ecx, ecx, 0xc4
mov dword [ebp - 0xa0], eax
push ecx
push 0
push esi
call fcn.1013a920
mov eax, dword [ebp - 0x34]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call fcn.1013a920
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x20], 0
cmp dword [ecx + 0x4c], 0
jle 0x10108558
xor edx, edx
add esi, 0xa4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], esi
mov eax, dword [ecx + 0x54]
add eax, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x34], edx
jle 0x101085aa
or eax, 0xffffffff
nop dword [eax]
cmp eax, 0xffffffff
jne 0x1010849f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1010848a
mov dword [esi - 4], edx
mov eax, edx
jmp 0x1010848d
mov eax, dword [esi - 4]
mov ecx, dword [ebp - 0x2c]
inc edx
cmp edx, dword [ecx + 0x34]
jl 0x10108470
cmp eax, 0xffffffff
je 0x101085aa
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.10104740
mov ecx, dword [ebp - 0x3c]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x18], ecx
call fcn.100fe8d0
add esp, 4
test eax, eax
je 0x101085aa
mov eax, dword [ebp - 0x18]
mov edx, 0x10749a3c
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1010851e
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1010851b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10108500
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x20]
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, 0xc4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
add edx, 0x78
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], edx
cmp eax, dword [ecx + 0x4c]
jl 0x10108450
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [ebp - 0x38], esi
test eax, eax
jle 0x10108824
mov edx, dword [ebp - 0x54]
add edx, 0xa8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x40], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x18], eax
cmp ecx, eax
jle 0x101085d2
test eax, eax
je 0x101085b3
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jmp 0x101085ba
mov byte [ebp - 0x2d], 0
jmp 0x10109591
mov dword [ebp - 0x24], 8
cmp dword [ebp - 0x24], ecx
mov eax, ecx
lea ecx, [edx + 4]
cmovg eax, dword [ebp - 0x24]
push eax
call fcn.100fd130
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx*4]
mov dword [edx + 4], ecx
push eax
push 0
push dword [edx + 0xc]
call fcn.1013a920
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x1c], ecx
cmp dword [ecx], 0
jne 0x1010864e
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x18], eax
cmp esi, eax
jle 0x10108637
test eax, eax
je 0x1010861f
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x18]
jmp 0x10108624
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.100fd130
mov ecx, dword [ebp - 0x1c]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call fcn.1013a920
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
test cx, cx
je 0x101086fd
movzx eax, word [eax + 2]
test ax, ax
je 0x101086fa
movzx edi, cx
cmp edi, eax
ja 0x101086e5
mov eax, dword [ebp - 0x3c]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x58]
sar esi, 5
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x101086d6
mov ecx, dword [ebp - 0x14]
mov edx, edi
add ecx, 0xffffff58
call fcn.100fedd0
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x101086d9
inc dword [edx]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x58]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x58]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10108677
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
test cx, cx
jne 0x10108663
mov edi, dword [ebp - 0x58]
add edx, 0xc4
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x14], edx
jne 0x10108577
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
add esi, 0xb8
mov dword [ebp - 0x24], edi
nop
push dword [esi - 0x10]
mov ecx, esi
call fcn.100fd130
mov edx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x20], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x60], eax
cmp edx, eax
jae 0x101087d2
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x101087ba
xor edx, edx
mov edi, 1
mov dword [ebp - 0x1c], edx
nop dword [eax]
test eax, edi
je 0x101087ac
mov eax, dword [esi + 4]
and ecx, 0xffffffe0
add ecx, edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x10108798
inc ecx
test eax, eax
je 0x10108784
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x10108789
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100fd130
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
inc edx
rol edi, 1
mov dword [ebp - 0x1c], edx
cmp edx, 0x20
jb 0x10108760
mov edx, dword [ebp - 0x20]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], ecx
cmp edx, dword [ebp - 0x60]
jb 0x10108746
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x1010880c
mov eax, dword [0x1078597c]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x101087f6
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
mov dword [esi - 4], 0
add esi, 0xc4
sub edi, 1
mov dword [ebp - 0x24], edi
jne 0x10108720
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 0
jle 0x1010887c
mov esi, dword [ebp - 0x34]
lea eax, [edi + 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1010886e
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1078597c]
test eax, eax
je 0x10108856
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x1c], eax
sub esi, 1
jne 0x10108833
mov esi, dword [ebp - 0x38]
test edi, edi
je 0x101088bd
mov eax, dword [0x1078597c]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
test eax, eax
je 0x101088a3
dec dword [eax + 0x374]
push dword [0x10785978]
push edi
call fcn.100eacc0
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa4], 0
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0xc4], eax
push esi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.1010b8f0
test esi, esi
jle 0x10108958
cmp esi, 8
mov edi, esi
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x10108958
mov eax, dword [0x1078597c]
test eax, eax
je 0x1010892e
inc dword [eax + 0x374]
push dword [0x10785978]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.100eacb0
add esp, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc8], edi
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa4]
shl ecx, 4
push ecx
push 0
push eax
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0x24], eax
call fcn.1013a920
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x3c]
call fcn.1013a920
mov edx, dword [ebp - 0x50]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x28], esi
xor ecx, ecx
mov dword [ebp - 0x34], eax
add esp, 0xc
mov dword [ebp - 0x38], ecx
test edx, edx
jle 0x10108bd4
mov edi, dword [ebp - 0x54]
add edi, 0x98
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0x10]
test edx, edx
je 0x10108bbd
add dword [ebp - 0x34], edx
add dword [ebp - 0x38], edx
shl eax, 4
add eax, dword [ebp - 0x24]
mov dword [edi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x2c]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], edx
mov eax, dword [edx + 0x10]
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x1074b780]
jbe 0x10108a84
mov esi, dword [ebp - 0x14]
mov eax, 0x100
mov edi, dword [edi - 0x7c]
cwde
mov esi, dword [esi - 0x94]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
movsx ecx, cx
imul ecx, eax
mov eax, 0x100
cwde
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
movsx edx, dx
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x10108aaa
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x1074bfa0]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0xb0], eax
xor eax, eax
mov dword [ebp - 0x60], eax
movss dword [ebp - 0x40], xmm1
cmp dword [edi + 0x20], eax
jle 0x10108bb7
mov dword [ebp - 0x20], eax
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.100fedd0
lea ecx, [ebp - 0x44]
mov edx, eax
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, dword [ebp - 0x94]
sub esp, 8
movd xmm3, dword [ecx + 0x18]
movd xmm2, dword [ecx + 0x14]
lea ecx, [edi - 0x98]
cvtdq2ps xmm3, xmm3
mov dword [esp + 4], 0
mov dword [esp], 0
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm1
mulss xmm2, xmm1
call fcn.10101240
mov esi, dword [ebp - 0x94]
add esp, 0x18
mov eax, dword [ebp - 0xb0]
movzx edx, ax
mov eax, dword [edi - 4]
movzx ecx, word [esi + 0x14]
sub cx, word [ebp - 0xb4]
mov edi, dword [ebp - 0x20]
dec cx
add cx, dx
movss xmm1, dword [ebp - 0x40]
add cx, word [ebp - 0x64]
dec dx
mov word [edi + eax + 4], cx
movzx ecx, word [esi + 0x18]
sub cx, word [ebp - 0x5c]
mov edi, dword [ebp - 0x14]
add cx, dx
mov edx, dword [ebp - 0x20]
add cx, word [ebp - 0x44]
mov esi, dword [ebp - 0x28]
mov eax, dword [edi - 4]
mov word [edx + eax + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [edx + eax + 6]
movzx eax, word [edx + eax + 4]
add edx, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x60], eax
add esi, ecx
mov dword [ebp - 0x28], esi
cmp eax, dword [edi + 0x20]
jl 0x10108ad3
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
add dword [ebp - 0x1c], 0x78
add edi, 0xc4
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edi
jne 0x101089c2
movd xmm0, esi
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10108bed
sqrtsd xmm0, xmm0
jmp 0x10108bf2
call fcn.1015e480
mov esi, dword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x10108c47
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1074b9bc]
jb 0x10108c23
mov eax, 0x1000
jmp 0x10108c47
comiss xmm0, dword [0x1074b9b8]
jb 0x10108c33
mov eax, 0x800
jmp 0x10108c47
comiss xmm0, dword [0x1074b9a0]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.1013a920
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1078597c]
test eax, eax
je 0x10108c78
inc dword [eax + 0x374]
push dword [0x10785978]
push 0x30
call fcn.100eacb0
mov ecx, dword [0x1078597c]
mov edi, eax
mov eax, dword [ebp - 0x18]
add esp, 8
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x10108ca6
inc dword [ecx + 0x374]
push dword [0x10785978]
shl eax, 3
push eax
call fcn.100eacb0
add esp, 8
test edi, edi
je 0x10108d21
test eax, eax
je 0x10108d09
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x44]
push edx
push eax
mov dword [ebp - 0x68], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x7c], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x78], 0
call fcn.100fdad0
add esp, 0xc
jmp 0x10108d4d
mov eax, dword [0x1078597c]
test eax, eax
je 0x10108d18
dec dword [eax + 0x374]
push dword [0x10785978]
push edi
jmp 0x10108d3c
test eax, eax
je 0x10108d44
mov ecx, dword [0x1078597c]
test ecx, ecx
je 0x10108d35
dec dword [ecx + 0x374]
push dword [0x10785978]
push eax
call fcn.100eacc0
add esp, 8
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
push dword [esi + 0x40]
call fcn.1010b8f0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
shl eax, 4
push eax
push 0
push edx
call fcn.1013a920
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x40], edi
jle 0x10108dbc
mov edx, dword [ebp - 0x44]
xor ecx, ecx
add edx, 6
mov eax, dword [esi + 0x48]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x10]
movzx eax, word [eax + ecx - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [esi + 0x48]
movzx eax, word [eax + ecx - 0x16]
mov word [edx - 0x10], ax
cmp edi, dword [esi + 0x40]
jl 0x10108d98
push dword [ebp - 0x4c]
mov edi, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [ebp - 0x44]
call fcn.100fdf80
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
jle 0x10108e24
mov edx, dword [ebp - 0x44]
xor edi, edi
add edx, 0xa
nop
cmp dword [edx + 2], 0
je 0x10108e13
mov eax, dword [esi + 0x48]
movzx ecx, word [edx - 2]
mov word [eax + edi + 8], cx
mov eax, dword [esi + 0x48]
movzx ecx, word [edx]
mov word [eax + edi + 0xa], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
add edi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x18], eax
jne 0x10108de0
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10108e4e
mov ecx, dword [0x1078597c]
test ecx, ecx
je 0x10108e3f
dec dword [ecx + 0x374]
push dword [0x10785978]
push eax
call fcn.100eacc0
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
test eax, eax
jle 0x10108ed1
mov esi, dword [ebp - 0x54]
add esi, 0xa8
mov dword [ebp - 0x18], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x10108ebf
mov edx, dword [esi - 0x14]
mov ecx, edi
push eax
call fcn.100fdf80
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x10108ebf
xor edx, edx
nop dword [eax]
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x10108eb7
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x20], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x10108e90
mov edi, dword [ebp - 0x14]
add esi, 0xc4
sub dword [ebp - 0x18], 1
jne 0x10108e70
mov esi, dword [ebp - 0x2c]
test byte [esi + 4], 1
mov eax, dword [esi + 0x20]
jne 0x10108eff
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 edx, dword [esi + 0x1c]
lea edi, [eax + 1]
movss xmm1, dword [0x1074b838]
movaps xmm2, xmm1
mov dword [esi + 0x20], edi
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm2
divss xmm1, xmm0
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [0x1078597c]
imul edi, edx
movss dword [ebp - 0x44], xmm1
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x28], ecx
test eax, eax
je 0x10108f51
inc dword [eax + 0x374]
push dword [0x10785978]
push edi
call fcn.100eacb0
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
push ecx
push 0
push eax
call fcn.1013a920
mov eax, dword [esi + 0x14]
add esp, 0x14
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x84], eax
test edx, edx
jle 0x10109116
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], edx
nop dword [eax + eax]
mov edi, dword [esi + 0x54]
add edi, eax
cmp dword [ecx + 0xa8], 0
je 0x101090ee
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.10104290
movss xmm1, dword [edi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x1074b838]
movss dword [ebp - 0x44], xmm1
lahf
test ah, 0x44
jnp 0x101090db
xor esi, esi
nop word [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1074bf50]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1015cb70
movss xmm1, dword [ebp - 0x44]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x1d0], dl
inc esi
cmp esi, 0x100
jb 0x10108ff0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x10109111
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
cmp dword [ecx + 6], 0
je 0x101090c6
mov eax, dword [ebp - 0x2c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x28]
add edx, eax
test edi, edi
je 0x101090c0
mov eax, dword [ebp - 0x1c]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x101090b6
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x1d0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x101090a0
mov eax, dword [ebp - 0x1c]
dec edi
add edx, eax
test edi, edi
jg 0x10109090
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
inc eax
add ecx, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
cmp eax, dword [edx + 0xa8]
jl 0x10109058
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], edx
jne 0x10108fa0
mov edi, dword [ebp - 0x8c]
jmp 0x10109119
mov esi, dword [ebp - 0x2c]
jmp 0x101090de
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x68], 0
je 0x1010912e
mov eax, dword [0x1078597c]
test eax, eax
je 0x1010912e
dec dword [eax + 0x374]
push dword [0x10785978]
push dword [ebp - 0x68]
call fcn.100eacc0
add esp, 8
test edi, edi
je 0x10109152
mov eax, dword [0x1078597c]
test eax, eax
je 0x10109152
dec dword [eax + 0x374]
push dword [0x10785978]
push edi
call fcn.100eacc0
mov ecx, dword [ebp - 0x24]
add esp, 8
test ecx, ecx
je 0x101091a5
mov eax, dword [0x1078597c]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
test eax, eax
je 0x1010918b
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0x50]
test eax, eax
jle 0x10109531
mov ecx, dword [ebp - 0x54]
xor edx, edx
add ecx, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], eax
cmp dword [ecx + 0xa4], 0
je 0x101094a6
mov edi, dword [ecx + 0x18]
xorps xmm3, xmm3
mov eax, dword [esi + 0x54]
mov esi, dword [ecx]
add eax, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
mov dword [ebp - 0x34], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx eax, dx
movzx edx, byte [edi + esi + 5]
mov dword [ebp - 0x44], eax
mov eax, 0x100
mov edi, dword [ebp - 0x5c]
cwde
movsx ecx, cx
imul ecx, eax
movss xmm2, dword [edi + 0x10]
add dx, cx
movsx ecx, dx
mov edx, dword [ebp - 0x44]
mov eax, ecx
sub eax, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm3
divss xmm2, xmm0
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
xor eax, eax
comiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
seta al
cmp byte [edi + 0x3c], 0
mulss xmm1, xmm2
lea eax, [eax*2 - 1]
movss dword [ebp - 0x44], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si esi, xmm0
jne 0x101092cf
mov ecx, dword [ebp - 0x34]
call fcn.10109a40
mov edx, dword [ebp - 0x34]
mov eax, dword [edi + 0x10]
movss xmm0, dword [ebp - 0x44]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x3c], edi
mov dword [edx + 0x38], eax
movss dword [edx + 0x4c], xmm0
movss dword [edx + 0x50], xmm1
jmp 0x101092d7
mov edx, dword [ebp - 0x34]
movss xmm0, dword [edx + 0x4c]
movss xmm2, dword [0x1074b800]
inc word [edx + 0x40]
addss xmm0, xmm2
mov ecx, dword [ebp - 0x20]
movss xmm1, dword [edi + 0x28]
mov esi, dword [ebp - 0x2c]
movss dword [ebp - 0x64], xmm1
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
mov dword [ebp - 0x1c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x2c]
movss dword [ebp - 0x44], xmm0
jle 0x101094a0
mov dword [ebp - 0x14], 0
nop word [eax + eax]
mov eax, dword [ecx + 0xbc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x94]
movss xmm7, dword [edi + 0x34]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
movss xmm0, dword [eax + ecx + 0x10]
comiss xmm7, xmm0
ja 0x10109361
movss xmm7, dword [edi + 0x38]
minss xmm7, xmm0
mov edx, dword [ebp - 0x34]
movaps xmm6, xmm1
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x10109390
cmp byte [edi + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x1010938c
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [esi + 0x1c]
sub esp, 0x1c
mov eax, dword [ebp - 0x14]
movss xmm2, dword [0x1074b838]
movss xmm3, dword [0x1074b838]
cvtdq2ps xmm0, xmm0
movzx eax, word [eax + ecx]
movd xmm5, eax
mov eax, dword [ebp - 0x14]
divss xmm2, xmm0
movzx eax, word [eax + ecx + 2]
movd xmm0, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
mov eax, dword [ebp - 0x14]
divss xmm3, xmm0
movzx eax, word [eax + ecx + 4]
movd xmm1, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm4, xmm4
movzx eax, word [eax + ecx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm4, xmm3
mulss xmm0, xmm3
movss xmm3, dword [eax + ecx + 0xc]
mulss xmm1, xmm2
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x14], xmm0
movss xmm0, dword [eax + 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 - 0x44]
mulss xmm5, xmm2
addss xmm3, xmm4
movss xmm2, dword [eax + ecx + 8]
addss xmm2, xmm4
movss dword [esp + 8], xmm5
addss xmm3, dword [ebp - 0x44]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + ecx + 0x14]
mov ecx, edx
addss xmm0, xmm4
addss xmm2, xmm6
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [ebp - 0x5c]
call fcn.10109f20
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc eax
add dword [ebp - 0x14], 0x1c
movss xmm1, dword [ebp - 0x64]
movss xmm2, dword [0x1074b800]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ecx + 0xa4]
jl 0x10109330
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
add ecx, 0xc4
add edx, 0x78
sub eax, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], eax
jne 0x101091c1
mov edi, dword [ebp - 0x54]
add edi, 0xb4
nop word [eax + eax]
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x101094f9
mov eax, dword [0x1078597c]
test eax, eax
je 0x101094ea
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [edi]
test ecx, ecx
je 0x10109521
mov eax, dword [0x1078597c]
test eax, eax
je 0x10109512
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
mov byte [ebp - 4], 3
add edi, 0xc4
sub dword [ebp - 0x50], 1
jne 0x101094d0
mov ecx, esi
call fcn.10109600
mov byte [ebp - 0x2d], 1
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10109565
mov eax, dword [0x1078597c]
test eax, eax
je 0x10109556
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1010958e
mov eax, dword [0x1078597c]
test eax, eax
je 0x1010957f
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
add esp, 8
mov edi, dword [ebp - 0x58]
mov byte [ebp - 4], 0xa
test edi, edi
je 0x101095b7
mov eax, dword [0x1078597c]
test eax, eax
je 0x101095a8
dec dword [eax + 0x374]
push dword [0x10785978]
push edi
call fcn.100eacc0
add esp, 8
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x101095e4
mov ecx, dword [0x1078597c]
test ecx, ecx
je 0x101095d5
dec dword [ecx + 0x374]
push dword [0x10785978]
push eax
call fcn.100eacc0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x2d]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret