Function at 0x10022580
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 0x100408cc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e0
mov eax, dword [0x1004900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x158], esi
cmp dword [esi + 0x58], 0
jge 0x1002263b
test byte [esi + 4], 2
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a0], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
push eax
mov dword [ebp - 0x1a4], 0x1b00d9
je 0x1002262f
mov dword [ebp - 0x1a4], 0x20002
call fcn.100260c0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, esi
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10021fc0
xor eax, eax
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x1c0], edi
mov byte [ebp - 4], 1
lea edx, [eax + 8]
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x148], ecx
test ecx, ecx
jle 0x1002271f
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x120], eax
test eax, eax
jle 0x1002271f
mov ecx, dword [0x10049850]
test ecx, ecx
je 0x100226e7
inc dword [ecx + 0x374]
push dword [0x10049848]
imul eax, eax, 0xc4
push eax
call fcn.10004d10
mov ecx, dword [ebp - 0x120]
add esp, 8
mov dword [ebp - 0x1dc], ecx
mov edx, 8
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1e0], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x160], ecx
test ecx, ecx
jle 0x10022789
cmp ecx, 8
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x120], eax
test eax, eax
jle 0x10022789
mov ecx, dword [0x10049850]
test ecx, ecx
je 0x10022754
inc dword [ecx + 0x374]
push dword [0x10049848]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.10004d10
mov ecx, dword [ebp - 0x160]
mov edi, eax
mov eax, dword [ebp - 0x120]
add esp, 8
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x1c0], edi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c8], ecx
imul ecx, dword [ebp - 0x148], 0xc4
push ecx
push 0
push dword [ebp - 0x14c]
call fcn.100406e8
mov eax, dword [ebp - 0x160]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call fcn.100406e8
add esp, 0xc
mov dword [ebp - 0x128], 0
cmp dword [esi + 0x4c], 0
jle 0x10022923
mov edx, dword [ebp - 0x14c]
xor eax, eax
add edx, 0xa4
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x11c], edx
mov ecx, dword [esi + 0x54]
mov dword [edx - 4], 0xffffffff
add ecx, eax
xor edx, edx
mov dword [ebp - 0x144], ecx
cmp dword [esi + 0x34], edx
jle 0x10022f22
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x10022845
mov eax, dword [ebp - 0x144]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
mov eax, dword [ebp - 0x11c]
jne 0x10022833
mov dword [eax - 4], edx
mov eax, edx
jmp 0x10022836
mov eax, dword [eax - 4]
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10022810
cmp eax, 0xffffffff
je 0x10022f22
mov eax, dword [ebp - 0x144]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1001e880
mov ecx, dword [ebp - 0x11c]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x120], ecx
call fcn.100187e0
add esp, 4
test eax, eax
je 0x10022f22
mov eax, dword [ebp - 0x120]
mov esi, 0x100458d4
mov edx, dword [ebp - 0x11c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x124], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne esi, eax
mov dword [edx - 8], esi
cmp word [esi], 0
je 0x100228d4
movzx eax, word [esi + 2]
test ax, ax
je 0x100228ce
mov ecx, eax
cmp dword [edx], ecx
cmovge ecx, dword [edx]
add esi, 4
mov dword [edx], ecx
cmp word [esi], 0
jne 0x100228b3
mov ecx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x124]
inc dword [edi + ecx*8]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x134]
cmp dword [edi + esi*8 + 4], ecx
cmovge ecx, dword [edi + esi*8 + 4]
add edx, 0xc4
mov dword [edi + esi*8 + 4], ecx
add eax, 0x78
mov ecx, dword [ebp - 0x128]
mov esi, dword [ebp - 0x158]
inc ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x134], eax
cmp ecx, dword [esi + 0x4c]
jl 0x100227f0
mov eax, dword [ebp - 0x148]
xor esi, esi
mov dword [ebp - 0x13c], esi
test eax, eax
jle 0x10022c62
mov edx, dword [ebp - 0x14c]
add edx, 0xa8
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], edx
mov eax, dword [edx - 8]
lea esi, [edx + 4]
mov ecx, esi
lea edi, [eax + eax*2]
mov eax, dword [edx - 4]
add eax, 0x20
mov dword [ebp - 0x144], edi
sar eax, 5
push eax
call fcn.10016ff0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x11c]
shl eax, 2
push eax
push 0
push dword [ecx + 0xc]
call fcn.100406e8
mov eax, dword [ebp - 0x15c]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x100229c1
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.10016ff0
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
call fcn.100406e8
add esp, 0xc
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x150], eax
movzx ecx, word [eax]
test cx, cx
je 0x10022ab4
nop dword [eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x10022ab4
movzx edi, cx
cmp edi, eax
ja 0x10022a99
nop dword [eax + eax]
mov eax, dword [ebp - 0x144]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x15c]
sar esi, 5
mov dword [ebp - 0x120], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10022a80
mov ecx, dword [ebp - 0x11c]
mov edx, edi
add ecx, 0xffffff58
call fcn.10018cb0
mov edx, dword [ebp - 0x11c]
test eax, eax
je 0x10022a86
inc dword [edx]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x15c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x15c]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x144]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x13c]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x150]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10022a00
mov eax, dword [ebp - 0x150]
add eax, 4
mov dword [ebp - 0x150], eax
movzx ecx, word [eax]
test cx, cx
jne 0x100229e0
add edx, 0xc4
sub dword [ebp - 0x124], 1
mov dword [ebp - 0x11c], edx
jne 0x10022951
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
add ecx, 0xc0
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x134], eax
nop dword [eax + eax]
mov esi, dword [ecx - 0x18]
cmp esi, dword [ecx - 4]
jle 0x10022b71
mov eax, dword [0x10049850]
test eax, eax
je 0x10022b07
inc dword [eax + 0x374]
push dword [0x10049848]
lea eax, [esi*4]
push eax
call fcn.10004d10
mov ecx, dword [ebp - 0x11c]
add esp, 8
mov edi, eax
mov edx, dword [ecx]
test edx, edx
je 0x10022b6c
mov ecx, dword [ecx - 8]
shl ecx, 2
push ecx
push edx
push edi
call 0x10041043
mov eax, dword [ebp - 0x11c]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x10022b57
mov eax, dword [0x10049850]
test eax, eax
je 0x10022b57
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
mov ecx, dword [ebp - 0x11c]
add esp, 8
mov dword [ecx], edi
mov dword [ecx - 4], esi
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 0x14]
mov dword [ebp - 0x124], esi
lea eax, [esi + eax*4]
mov dword [ebp - 0x164], eax
cmp esi, eax
jae 0x10022bfd
xor edx, edx
mov dword [ebp - 0x128], edx
mov eax, dword [esi]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x10022be3
xor edi, edi
mov esi, 1
test eax, esi
je 0x10022bd5
and edx, 0xffffffe0
lea eax, [ebp - 0x120]
add edx, edi
add ecx, 0xfffffff8
push eax
mov dword [ebp - 0x120], edx
call fcn.10016a70
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x128]
inc edi
rol esi, 1
cmp edi, 0x20
jb 0x10022ba5
mov esi, dword [ebp - 0x124]
add esi, 4
add edx, 0x20
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], edx
cmp esi, dword [ebp - 0x164]
jb 0x10022b92
mov edx, dword [ecx - 0xc]
test edx, edx
je 0x10022c3d
mov eax, dword [0x10049850]
mov dword [ecx - 0x10], 0
mov dword [ecx - 0x14], 0
test eax, eax
je 0x10022c21
dec dword [eax + 0x374]
push dword [0x10049848]
push edx
call fcn.10004d30
mov ecx, dword [ebp - 0x11c]
add esp, 8
mov dword [ecx - 0xc], 0
add ecx, 0xc4
sub dword [ebp - 0x134], 1
mov dword [ebp - 0x11c], ecx
jne 0x10022af0
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x13c]
cmp dword [ebp - 0x160], 0
jle 0x10022cd2
mov esi, dword [ebp - 0x160]
lea eax, [edi + 0x14]
mov dword [ebp - 0x124], eax
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10022cbe
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x10049850]
test eax, eax
je 0x10022ca3
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
mov eax, dword [ebp - 0x124]
add esp, 8
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x124], eax
sub esi, 1
jne 0x10022c80
mov esi, dword [ebp - 0x13c]
test edi, edi
je 0x10022d16
mov eax, dword [0x10049850]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
test eax, eax
je 0x10022cf9
dec dword [eax + 0x374]
push dword [0x10049848]
push edi
call fcn.10004d30
add esp, 8
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0
xor eax, eax
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1e4], eax
push esi
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 3
call fcn.10025f40
test esi, esi
jle 0x10022db7
cmp esi, 8
mov edi, esi
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x10022db7
mov eax, dword [0x10049850]
test eax, eax
je 0x10022d8a
inc dword [eax + 0x374]
push dword [0x10049848]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.10004d10
add esp, 8
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], edi
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1cc]
shl ecx, 4
push ecx
push 0
push eax
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x144], eax
call fcn.100406e8
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x160]
call fcn.100406e8
mov ecx, dword [ebp - 0x148]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x13c], eax
add esp, 0xc
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], eax
test ecx, ecx
jle 0x10023232
mov edi, dword [ebp - 0x14c]
add edi, 0x98
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x120], ecx
nop dword [eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10023212
mov edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x160]
shl eax, 4
add eax, dword [ebp - 0x144]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [ebp - 0x13c], esi
add edx, esi
mov dword [ebp - 0x124], edx
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x158]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x128]
mov dword [ebp - 0x150], 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 [0x100464f0]
jbe 0x10022f2e
mov eax, dword [edi - 0x7c]
mov edi, dword [edi - 0x94]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x134]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [ebp - 0x134]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x10022f54
mov byte [ebp - 0x129], 0
jmp 0x10023d40
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x10046af0]
movzx edx, byte [ecx + eax + 0x12]
movzx eax, byte [ecx + eax + 0x13]
shl edx, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x154], eax
xor eax, eax
mov dword [ebp - 0x1bc], eax
movss dword [ebp - 0x140], xmm1
cmp dword [edi + 0x20], eax
jle 0x10023206
mov dword [ebp - 0x164], eax
nop dword [eax]
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.10018cb0
mov ecx, dword [ebp - 0x150]
mov edx, eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x1b8], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x17c], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x184]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x134]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [ebp - 0x170], xmm0
call fcn.100190d0
add esp, 0x10
test eax, eax
jne 0x1002302c
xor esi, esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x170], esi
jmp 0x1002316a
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x134]
mulss xmm0, dword [ebp - 0x17c]
addss xmm0, dword [0x100464f0]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x138], xmm0
fld qword [ebp - 0x138]
fstp qword [esp]
call 0x1004107f
fstp qword [ebp - 0x138]
movsd xmm0, qword [ebp - 0x138]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x184]
mulss xmm0, dword [ebp - 0x170]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x138], xmm0
fld qword [ebp - 0x138]
fstp qword [esp]
call 0x1004107f
fstp qword [ebp - 0x138]
movsd xmm0, qword [ebp - 0x138]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x188]
mov dword [ebp - 0x134], eax
mulss xmm0, dword [ebp - 0x17c]
addss xmm0, dword [0x100464f0]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x180], xmm0
fld qword [ebp - 0x180]
fstp qword [esp]
call 0x10041079
fstp qword [ebp - 0x180]
movsd xmm0, qword [ebp - 0x180]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x1b8]
mov dword [ebp - 0x17c], eax
mulss xmm0, dword [ebp - 0x170]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call 0x10041079
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x154]
movzx edx, ax
mov eax, dword [ebp - 0x150]
movss xmm1, dword [ebp - 0x140]
movzx ecx, word [eax + 0x14]
mov eax, dword [edi - 4]
sub cx, si
mov esi, dword [ebp - 0x164]
dec cx
add cx, word [ebp - 0x17c]
add cx, dx
dec dx
mov word [esi + eax + 4], cx
mov eax, dword [ebp - 0x150]
movzx ecx, word [eax + 0x18]
sub cx, word [ebp - 0x134]
add cx, word [ebp - 0x170]
mov eax, dword [edi - 4]
add cx, dx
mov edx, dword [ebp - 0x11c]
mov word [esi + eax + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x1bc]
inc eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x1bc], eax
add edx, ecx
mov dword [ebp - 0x11c], edx
cmp eax, dword [edi + 0x20]
jl 0x10022f90
jmp 0x1002320c
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x13c]
add dword [ebp - 0x128], 0x78
add edi, 0xc4
sub dword [ebp - 0x120], 1
mov dword [ebp - 0x134], edi
jne 0x10022e40
movd xmm0, edx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002324b
sqrtsd xmm0, xmm0
jmp 0x10023250
call 0x10041073
mov esi, dword [ebp - 0x158]
cvtsd2ss xmm0, xmm0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x100232a8
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [str.S:_3d]
jb 0x10023284
mov eax, 0x1000
jmp 0x100232a8
comiss xmm0, dword [0x10046680]
jb 0x10023294
mov eax, 0x800
jmp 0x100232a8
comiss xmm0, dword [str.A:_3d]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x1b4]
push 0
push eax
call fcn.100406e8
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x120], eax
mov eax, dword [0x10049850]
test eax, eax
je 0x100232df
inc dword [eax + 0x374]
push dword [0x10049848]
push 0x30
call fcn.10004d10
mov ecx, dword [0x10049850]
mov edi, eax
mov eax, dword [ebp - 0x120]
add esp, 8
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x154], eax
test ecx, ecx
je 0x10023319
inc dword [ecx + 0x374]
push dword [0x10049848]
shl eax, 3
push eax
call fcn.10004d10
add esp, 8
test edi, edi
je 0x100233b3
test eax, eax
je 0x1002339b
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1a4], edx
mov edx, dword [ebp - 0x154]
push edx
push eax
mov dword [ebp - 0x18c], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x1a0], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x198], 1
mov dword [ebp - 0x194], 1
mov dword [ebp - 0x19c], 0
call fcn.100179c0
add esp, 0xc
jmp 0x100233e2
mov eax, dword [0x10049850]
test eax, eax
je 0x100233aa
dec dword [eax + 0x374]
push dword [0x10049848]
push edi
jmp 0x100233ce
test eax, eax
je 0x100233d6
mov ecx, dword [0x10049850]
test ecx, ecx
je 0x100233c7
dec dword [ecx + 0x374]
push dword [0x10049848]
push eax
call fcn.10004d30
add esp, 8
mov edi, dword [ebp - 0x1b0]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x170], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x178]
push dword [esi + 0x40]
call fcn.10025f40
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x120], eax
shl eax, 4
push eax
push 0
push edx
call fcn.100406e8
add esp, 0xc
cmp dword [esi + 0x40], 0
jle 0x10023470
mov edx, dword [ebp - 0x170]
xor ecx, ecx
add edx, 6
xor edi, edi
mov eax, dword [esi + 0x48]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [esi + 0x48]
movzx eax, word [ecx + eax - 0x1a]
mov word [edx - 0x10], ax
cmp edi, dword [esi + 0x40]
jl 0x10023446
mov edi, dword [ebp - 0x11c]
push dword [ebp - 0x178]
mov edx, dword [ebp - 0x170]
mov ecx, edi
call fcn.10017e70
mov eax, dword [ebp - 0x178]
add esp, 4
test eax, eax
jle 0x100234e7
mov edx, dword [ebp - 0x170]
xor edi, edi
add edx, 0xa
nop dword [eax + eax]
cmp dword [edx + 2], 0
je 0x100234d6
mov eax, dword [esi + 0x48]
movzx ecx, word [edx - 2]
mov word [edi + eax + 4], cx
mov eax, dword [esi + 0x48]
movzx ecx, word [edx]
mov word [edi + eax + 6], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x120]
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 - 0x120], eax
jne 0x100234a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x10023514
mov ecx, dword [0x10049850]
test ecx, ecx
je 0x10023505
dec dword [ecx + 0x374]
push dword [0x10049848]
push eax
call fcn.10004d30
add esp, 8
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x148]
test edi, edi
jle 0x100235af
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
add edi, 0xa8
mov dword [ebp - 0x140], eax
nop
mov eax, dword [edi]
test eax, eax
je 0x1002359a
mov edx, dword [edi - 0x14]
mov ecx, dword [ebp - 0x11c]
push eax
call fcn.10017e70
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x120], ecx
cmp dword [edi], ecx
jle 0x1002359a
xor edx, edx
mov eax, dword [edi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x1002358c
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x120]
inc ecx
add edx, 0x10
mov dword [ebp - 0x120], ecx
cmp ecx, dword [edi]
jl 0x10023566
add edi, 0xc4
sub dword [ebp - 0x140], 1
jne 0x10023540
mov edi, dword [ebp - 0x148]
test byte [esi + 4], 1
mov eax, dword [esi + 0x20]
jne 0x100235dd
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
movss xmm1, dword [str.Save_config]
lea ecx, [eax + 1]
mov eax, dword [esi + 0x1c]
movaps xmm2, xmm1
mov dword [esi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
mov eax, dword [0x10049850]
movss dword [esi + 0x24], xmm2
movss dword [esi + 0x28], xmm1
test eax, eax
je 0x10023623
inc dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d10
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
push ecx
push 0
push eax
call fcn.100406e8
mov eax, dword [esi + 0x14]
add esp, 0x14
mov dword [ebp - 0x190], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1a8], eax
test edi, edi
jle 0x10023840
mov ecx, dword [ebp - 0x14c]
xor eax, eax
mov dword [ebp - 0x140], eax
mov edx, edi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x164], edi
nop dword [eax + eax]
mov edi, dword [esi + 0x54]
add edi, eax
cmp dword [ecx + 0xa8], 0
je 0x10023814
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x1b4]
call fcn.1001e3c0
movss xmm1, dword [edi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [str.Save_config]
movss dword [ebp - 0x154], xmm1
lahf
test ah, 0x44
jnp 0x100237f8
xor edi, edi
nop dword [eax]
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + str.Found_interface]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.100409d0
movss xmm1, dword [ebp - 0x154]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + edi - 0x118], dl
inc edi
cmp edi, 0x100
jb 0x100236d0
mov eax, dword [ebp - 0x11c]
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov edx, dword [eax + 0x94]
cmp dword [eax + 0xa8], ecx
jle 0x100237f8
lea eax, [edx + 6]
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x134], eax
nop word [eax + eax]
cmp dword [eax + 6], 0
je 0x100237dc
mov ecx, dword [esi + 0x1c]
movzx edx, word [eax + 4]
movzx edi, word [eax]
movzx esi, word [eax - 2]
movzx eax, word [eax + 2]
imul edx, ecx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x158]
add edx, dword [ecx + 0x14]
add edx, eax
test edi, edi
je 0x100237c8
mov eax, dword [ebp - 0x120]
nop word [eax + eax]
xor ecx, ecx
test esi, esi
je 0x100237b9
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x118]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x100237a0
mov eax, dword [ebp - 0x120]
dec edi
add edx, eax
test edi, edi
jg 0x10023790
mov esi, dword [ebp - 0x158]
jmp 0x100237ca
mov esi, ecx
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x134]
inc ecx
add eax, 0x10
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x134], eax
cmp ecx, dword [edx + 0xa8]
jl 0x10023750
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x164]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x164], edx
jne 0x10023680
mov edi, dword [ebp - 0x1b0]
jmp 0x10023846
mov edi, dword [ebp - 0x11c]
cmp dword [ebp - 0x18c], 0
je 0x1002385e
mov eax, dword [0x10049850]
test eax, eax
je 0x1002385e
dec dword [eax + 0x374]
push dword [0x10049848]
push dword [ebp - 0x18c]
call fcn.10004d30
add esp, 8
test edi, edi
je 0x10023885
mov eax, dword [0x10049850]
test eax, eax
je 0x10023885
dec dword [eax + 0x374]
push dword [0x10049848]
push edi
call fcn.10004d30
mov ecx, dword [ebp - 0x144]
add esp, 8
test ecx, ecx
je 0x100238de
mov eax, dword [0x10049850]
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
test eax, eax
je 0x100238c1
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x1cc], ecx
mov eax, dword [ebp - 0x148]
test eax, eax
jle 0x10023cd4
mov ecx, dword [ebp - 0x14c]
xor edx, edx
add ecx, 4
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x124], eax
nop dword [eax]
cmp dword [ecx + 0xa4], 0
je 0x10023c39
mov edi, dword [ecx + 0x18]
xorps xmm3, xmm3
mov eax, dword [esi + 0x54]
mov esi, dword [ecx]
add eax, edx
mov dword [ebp - 0x13c], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
mov dword [ebp - 0x128], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx eax, dx
movzx edx, byte [edi + esi + 7]
mov dword [ebp - 0x154], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov edi, dword [ebp - 0x128]
add dx, cx
mov ecx, dword [ebp - 0x154]
movsx edx, dx
mov eax, ecx
sub eax, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [ebp - 0x13c]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x10]
xor eax, eax
divss xmm2, xmm0
comiss xmm1, xmm3
mulss xmm1, xmm2
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
mov edx, dword [ebp - 0x13c]
cvttss2si eax, xmm0
movd xmm0, eax
xor eax, eax
comiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
seta al
cmp byte [edx + 0x3c], 0
mulss xmm1, xmm2
lea eax, [eax*2 - 1]
movss dword [ebp - 0x154], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si esi, xmm0
jne 0x10023a44
mov ecx, edi
call fcn.100241e0
mov edx, dword [ebp - 0x13c]
movss xmm0, dword [ebp - 0x154]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x158]
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], eax
movss dword [edi + 0x4c], xmm0
movss dword [edi + 0x50], xmm1
jmp 0x10023a49
movss xmm0, dword [edi + 0x4c]
movss xmm2, dword [0x1004655c]
inc word [edi + 0x40]
addss xmm0, xmm2
mov ecx, dword [ebp - 0x150]
movss xmm1, dword [edx + 0x28]
movss dword [ebp - 0x184], xmm1
mov dword [ebp - 0x134], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edx + 0x2c]
movss dword [ebp - 0x154], xmm0
jle 0x10023c27
xor edi, edi
nop dword [eax]
mov eax, dword [ecx + 0xbc]
mov ecx, dword [ecx + 0x94]
mov esi, dword [ebp - 0x134]
movss xmm7, dword [edx + 0x34]
movss xmm0, dword [edi + ecx + 0x10]
comiss xmm7, xmm0
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x188], eax
ja 0x10023ad4
movss xmm7, dword [edx + 0x38]
minss xmm7, xmm0
mov esi, dword [ebp - 0x158]
movaps xmm6, xmm1
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x10023b06
cmp byte [edx + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x10023b02
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [esi + 0x1c]
sub esp, 0x1c
movss xmm2, dword [str.Save_config]
movss xmm3, dword [str.Save_config]
movzx eax, word [edi + ecx]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
divss xmm2, xmm0
movzx eax, word [edi + ecx + 2]
movd xmm0, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
movzx eax, word [edi + ecx + 4]
divss xmm3, xmm0
movd xmm1, eax
movzx eax, word [edi + ecx + 6]
cvtdq2ps xmm4, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm3
mulss xmm4, xmm3
movss xmm3, dword [edi + ecx + 0xc]
mulss xmm1, xmm2
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 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 - 0x154]
mulss xmm5, xmm2
addss xmm3, xmm4
movss xmm2, dword [edi + ecx + 8]
addss xmm2, xmm4
movss dword [esp + 8], xmm5
addss xmm3, dword [ebp - 0x154]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + ecx + 0x14]
mov ecx, dword [ebp - 0x128]
addss xmm0, xmm4
addss xmm2, xmm6
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [ebp - 0x188]
call fcn.10024740
mov eax, dword [ebp - 0x134]
add edi, 0x1c
mov ecx, dword [ebp - 0x150]
inc eax
movss xmm1, dword [ebp - 0x184]
movss xmm2, dword [0x1004655c]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x134], eax
cmp eax, dword [ecx + 0xa4]
jl 0x10023aa0
jmp 0x10023c2d
mov esi, dword [ebp - 0x158]
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x11c]
add ecx, 0xc4
add edx, 0x78
sub eax, 1
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], eax
jne 0x10023910
mov edi, dword [ebp - 0x14c]
add edi, 0xb4
nop dword [eax]
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10023c99
mov eax, dword [0x10049850]
test eax, eax
je 0x10023c8a
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [edi]
test ecx, ecx
je 0x10023cc1
mov eax, dword [0x10049850]
test eax, eax
je 0x10023cb2
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
add esp, 8
mov byte [ebp - 4], 3
add edi, 0xc4
sub dword [ebp - 0x148], 1
jne 0x10023c70
mov ecx, esi
call fcn.10023dc0
mov byte [ebp - 0x129], 1
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x160]
test ecx, ecx
je 0x10023d0e
mov eax, dword [0x10049850]
test eax, eax
je 0x10023cff
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x10023d3a
mov eax, dword [0x10049850]
test eax, eax
je 0x10023d2b
dec dword [eax + 0x374]
push dword [0x10049848]
push ecx
call fcn.10004d30
add esp, 8
mov edi, dword [ebp - 0x15c]
mov byte [ebp - 4], 0xa
test edi, edi
je 0x10023d66
mov eax, dword [0x10049850]
test eax, eax
je 0x10023d57
dec dword [eax + 0x374]
push dword [0x10049848]
push edi
call fcn.10004d30
add esp, 8
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x10023d96
mov ecx, dword [0x10049850]
test ecx, ecx
je 0x10023d87
dec dword [ecx + 0x374]
push dword [0x10049848]
push eax
call fcn.10004d30
add esp, 8
mov al, byte [ebp - 0x129]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003f62c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret