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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
cmp dword [ebx + 0x54], 0
jge 0x100310bb
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x70], connect
mov dword [ebp - 0x6c], 0x20002
cmp ecx, dword [ebx + 0x44]
je 0x10031091
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x18], eax
add dword [ebx + 0x40], 0x1c
jmp 0x1003109e
lea eax, [ebp - 0x70]
push eax
push ecx
lea ecx, [ebx + 0x3c]
call fcn.10032ab0
mov ecx, dword [ebx + 0x40]
mov eax, 0x92492493
sub ecx, dword [ebx + 0x3c]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
test eax, eax
je 0x100310fc
push eax
call fcn.101ee4ad
add esp, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1003110c
push eax
call fcn.101ee4ad
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, 0x88888889
movss xmm3, dword [0x1026bac0]
xor esi, esi
mov dword [ebx + 0x10], 0
xor edi, edi
mov dword [ebx + 0x14], 0
movaps xmm1, xmm3
mov ecx, dword [ecx + 0x4c]
mov ebx, dword [ebx + 0x48]
sub ecx, ebx
imul ecx
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 0x10], xmm3
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10031220
xor eax, eax
mov dword [ebp - 0x14], eax
nop dword [eax]
add ebx, eax
mov eax, dword [ebp - 0xc]
push ecx
push ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [eax + edi*8]
call fcn.1002f8d0
test al, al
je 0x10031239
mov eax, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x1c]
mov eax, dword [eax + edi*8]
movss xmm0, dword [eax + 0x14]
comiss xmm0, xmm1
ja 0x10031198
movss xmm1, xmm1
jmp 0x1003119c
movss xmm1, xmm0
mov edx, dword [ebx + 0x30]
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x1c], xmm1
subss xmm0, dword [eax + 8]
maxss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x10], xmm0
test edx, edx
jne 0x100311c8
mov dword [ebx + 0x30], 0x1025ab40
mov edx, 0x1025ab40
cmp word [edx], 0
je 0x100311ea
nop
movzx ecx, word [edx + 2]
test cx, cx
je 0x100311ea
movzx eax, word [edx]
inc esi
add edx, 4
sub ecx, eax
add esi, ecx
cmp word [edx], 0
jne 0x100311d0
mov eax, dword [ebp - 0xc]
inc edi
add dword [ebp - 0x14], 0x78
mov ecx, dword [eax + 0x4c]
mov ebx, dword [eax + 0x48]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0x14]
jb 0x10031160
movss xmm3, dword [0x1026bac0]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 8]
test edi, edi
jne 0x10031266
cmp esi, 0xfa0
jle 0x10031244
mov edi, 0x1000
jmp 0x10031266
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x7d0
jle 0x10031253
mov edi, 0x800
jmp 0x10031266
cmp esi, 0x3e8
mov edi, 0x200
mov ecx, 0x400
cmovg edi, ecx
mov dword [eax + 0x18], edi
addss xmm1, xmm3
mov ecx, dword [eax + 0x40]
sub esp, 8
sub ecx, dword [eax + 0x3c]
mov eax, 0x92492493
imul ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mov eax, edi
add edx, ecx
shr eax, 0x1f
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
addsd xmm0, qword [eax*8 + 0x1026c3b0]
add ebx, edx
add ebx, esi
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movss dword [ebp - 0x20], xmm2
addsd xmm0, qword [eax*8 + 0x1026c3b0]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x24], xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x34], xmm0
fld qword [ebp - 0x34]
fstp qword [esp]
call fcn.10207f20
movss xmm1, dword [ebp - 0x24]
fstp qword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x34]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x34], xmm0
fld qword [ebp - 0x34]
fstp qword [esp]
call fcn.10207f20
movss xmm1, dword [ebp - 0x10]
add esp, 8
addss xmm1, dword [0x1026bac0]
fstp qword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x34]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10209560
mov esi, dword [ebp - 0xc]
test byte [esi + 2], 1
je 0x1003133e
lea edx, [eax + 1]
jmp 0x10031364
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 edx, ecx
sar edx, 0x10
or edx, ecx
inc edx
movss xmm1, dword [0x1026bac0]
mov eax, edx
movd xmm0, edx
movaps xmm2, xmm1
divss xmm2, dword [ebp - 0x20]
shr eax, 0x1f
mov dword [esi + 0x1c], edx
cvtdq2pd xmm0, xmm0
imul edx, edi
addsd xmm0, qword [eax*8 + 0x1026c3b0]
movss dword [esi + 0x20], xmm2
push edx
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esi + 0x24], xmm1
call fcn.101eea6e
mov edi, esi
add esp, 4
mov ecx, dword [edi + 0x1c]
imul ecx, dword [edi + 0x18]
mov dword [edi + 0x10], eax
push ecx
push 0
push eax
call fcn.101e3600
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
test ebx, ebx
je 0x100313e2
lea eax, [ebp - 5]
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.10033330
mov eax, dword [ebp - 0x7c]
mov edx, dword [edi + 0x18]
lea ecx, [ebp - 0xc4]
push ebx
push eax
push dword [edi + 0x1c]
call fcn.1002eef0
add esp, 0xc
lea edx, [ebp - 0xc4]
mov ecx, edi
call fcn.10031a60
mov ecx, dword [edi + 0x4c]
mov eax, 0x88888889
mov esi, dword [edi + 0x48]
sub ecx, esi
imul ecx
mov dword [ebp - 0x14], 0
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100319cd
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ebx, [esi + eax]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10031452
lock inc dword [eax + 4]
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x24], eax
mov cl, byte [ebx + 0x3c]
mov esi, dword [ebx + 0x70]
mov dword [ebp - 0x18], esi
test cl, cl
je 0x10031469
mov ecx, esi
call fcn.1002fa90
mov cl, byte [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + eax*8]
movss xmm0, dword [eax + 4]
movss xmm1, dword [eax + 8]
test cl, cl
jne 0x100314ec
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x54], eax
xor eax, eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x28], 0
mov word [esi + 0x72], ax
mov dword [esi + 0x88], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov byte [esi + 0x84], 1
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], edi
movss dword [esi + 0x7c], xmm0
movss dword [esi + 0x80], xmm1
jmp 0x100314f5
movzx eax, word [esi + 0x72]
movss xmm0, dword [esi + 0x7c]
addss xmm0, dword [0x1026ba54]
inc eax
mov word [esi + 0x72], ax
movss xmm1, dword [ebx + 0x28]
movss dword [ebp - 0x88], xmm1
movss xmm1, dword [ebx + 0x44]
ucomiss xmm1, dword [0x1026bac0]
cvttss2si eax, xmm0
movss dword [ebp - 0x20], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
addss xmm0, dword [ebx + 0x2c]
movss dword [ebp - 0x8c], xmm0
test ah, 0x44
jnp 0x1003158e
mov byte [ebp - 5], 1
xor esi, esi
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1026c3b0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10209560
movss xmm1, dword [ebp - 0x20]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x1c4], dl
inc esi
cmp esi, 0x100
jb 0x10031544
mov esi, dword [ebp - 0x18]
jmp 0x10031592
mov byte [ebp - 5], 0
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x48], ecx
movzx eax, word [ecx]
test ax, ax
je 0x10031974
nop dword [eax]
nop dword [eax + eax]
movzx ecx, word [ecx + 2]
test cx, cx
je 0x10031971
movzx edi, ax
mov dword [ebp - 0x20], edi
cmp edi, ecx
ja 0x1003195b
nop dword [eax + eax]
cmp byte [ebx + 0x3c], 0
je 0x10031606
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
sub eax, ecx
movzx edx, di
sar eax, 1
cmp edx, eax
jae 0x10031606
movzx eax, word [ecx + edx*2]
mov ecx, 0xffff
cmp ax, cx
je 0x10031606
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*8]
test eax, eax
jne 0x10031946
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0
push edi
mov esi, dword [ecx + eax*8]
push dword [esi + 0x20]
call fcn.10183e80
add esp, 8
test eax, eax
je 0x10031943
push dword [esi + 0x24]
push eax
push dword [esi + 0x20]
call fcn.10184840
add esp, 0xc
test eax, eax
jne 0x10031943
mov eax, dword [esi + 0x20]
mov ebx, dword [eax + 0x54]
mov eax, dword [esi + 0x18]
test al, 0x20
je 0x1003165a
push ebx
call fcn.1018bff0
mov eax, dword [esi + 0x18]
add esp, 4
test al, 0x40
je 0x10031667
push ebx
call fcn.1018c0f0
add esp, 4
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.10182d20
add esp, 8
test eax, eax
jne 0x10031940
push 1
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10182e50
add esp, 0x10
test eax, eax
jne 0x10031940
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 0xc4]
mov edi, dword [ebp - 0x10]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
movd xmm0, dword [edi + 0x14]
cvtdq2ps xmm0, xmm0
push 1
lea esi, [edx + eax]
mov eax, dword [edi + 0x18]
neg eax
sar esi, 6
lea edx, [ebp - 0x64]
mov dword [ebp - 0x84], esi
movss dword [ebp - 0x90], xmm0
movd xmm3, eax
mov eax, dword [edi + 0x20]
cvtdq2ps xmm3, xmm3
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x40], xmm3
addsd xmm0, qword [eax*8 + 0x1026c3b0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x30], xmm1
addsd xmm0, qword [eax*8 + 0x1026c3b0]
cvtpd2ps xmm2, xmm0
movaps xmm0, xmm1
addss xmm0, dword [0x1026bac0]
movss dword [ebp - 0x94], xmm2
cvttss2si eax, xmm0
movaps xmm0, xmm2
addss xmm0, dword [0x1026bac0]
mov word [ebp - 0x60], ax
cvttss2si eax, xmm0
mov word [ebp - 0x5e], ax
call fcn.1002f3a0
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c4]
xor ebx, ebx
add esp, 4
cmp byte [ebp - 5], bl
mov eax, dword [edx + 0x18]
cmove ecx, ebx
movzx ebx, word [ebp - 0x5a]
imul ebx, eax
mov dword [ebp - 0x50], eax
movzx eax, word [ebp - 0x5c]
mov dword [ebp - 0x38], ecx
add ebx, eax
mov eax, dword [edi + 0x1c]
add ebx, dword [edx + 0x10]
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x24]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x80], edi
jbe 0x100317f5
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x50]
nop dword [eax + eax]
test ecx, ecx
je 0x100317cb
test edx, edx
je 0x100317df
mov esi, dword [ebp - 0x38]
mov edi, eax
mov ecx, ebx
sub edi, ebx
movzx eax, byte [edi + ecx]
lea ecx, [ecx + 1]
mov al, byte [eax + esi]
mov byte [ecx - 1], al
sub edx, 1
jne 0x100317b1
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x50]
jmp 0x100317d6
push edx
push eax
push ebx
call fcn.101e3770
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
add eax, dword [ebp - 0x80]
add ebx, edi
sub esi, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], esi
jne 0x100317a0
mov esi, dword [ebp - 0x84]
push dword [ebp - 0x10]
call fcn.10182cf0
mov ebx, dword [ebp - 0x44]
add esp, 4
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss xmm6, dword [ebx + 0x38]
comiss xmm0, xmm6
ja 0x10031821
movss xmm6, dword [ebx + 0x34]
comiss xmm6, xmm0
ja 0x10031821
movaps xmm6, xmm0
movss xmm1, dword [ebp - 0x88]
ucomiss xmm0, xmm6
movaps xmm5, xmm1
lahf
test ah, 0x44
jnp 0x10031859
cmp byte [ebx + 0x1c], 0
movaps xmm5, xmm6
subss xmm5, xmm0
mulss xmm5, dword [0x1026ba54]
je 0x10031855
cvttss2si eax, xmm5
movd xmm5, eax
cvtdq2ps xmm5, xmm5
addss xmm5, xmm1
movzx eax, word [ebp - 0x5a]
sub esp, 0x1c
mov ecx, dword [ebp - 0xc]
movss xmm7, dword [ebp - 0x90]
mov edi, dword [ebp - 0x20]
addss xmm7, xmm5
movd xmm4, eax
mov eax, dword [ecx + 0x1c]
cvtdq2ps xmm4, xmm4
mov esi, dword [ebp - 0x18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1026c3b0]
movzx eax, word [ebp - 0x5c]
cvtpd2ps xmm2, xmm0
movd xmm3, eax
mov eax, dword [ecx + 0x18]
mov ecx, esi
cvtdq2ps xmm3, xmm3
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1026c3b0]
movss dword [esp + 0x18], xmm6
cvtpd2ps xmm1, xmm0
movss xmm0, dword [ebp - 0x40]
addss xmm0, dword [ebp - 0x8c]
movss dword [ebp - 0x40], xmm0
movaps xmm0, xmm4
addss xmm0, dword [ebp - 0x94]
divss xmm4, xmm2
divss xmm0, xmm2
movaps xmm2, xmm7
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm3
addss xmm0, dword [ebp - 0x30]
divss xmm3, xmm1
divss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm4
movss dword [esp + 8], xmm3
movss xmm3, dword [ebp - 0x40]
movaps xmm0, xmm3
addss xmm0, dword [ebp - 0x94]
movss dword [esp + 4], xmm0
movaps xmm0, xmm7
addss xmm0, dword [ebp - 0x30]
movss dword [esp], xmm0
push edi
call fcn.1002fe90
jmp 0x10031946
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x48]
inc edi
mov dword [ebp - 0x20], edi
movzx eax, word [ecx + 2]
cmp edi, eax
jbe 0x100315d0
jmp 0x1003195e
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 4]
add ecx, 4
mov dword [ebp - 0x48], ecx
test ax, ax
jne 0x100315b0
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1003199c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003199c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1003199c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
mov eax, 0x88888889
mov esi, dword [edi + 0x48]
sub ecx, esi
mov ebx, dword [ebp - 0x14]
add dword [ebp - 0x1c], 0x78
inc ebx
imul ecx
mov dword [ebp - 0x14], ebx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov eax, dword [ebp - 0x1c]
jb 0x10031432
mov ebx, dword [edi + 0x34]
mov edi, dword [edi + 0x30]
cmp edi, ebx
je 0x10031a09
mov esi, dword [edi]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10031a02
push eax
call fcn.101839e0
add esp, 4
mov dword [esi + 0x20], 0
push dword [esi + 0x1c]
call fcn.1018bcc0
add esp, 4
mov dword [esi + 0x1c], 0
add edi, 8
cmp edi, ebx
jne 0x100319d7
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.10031c30
mov edx, dword [ebp - 0x7c]
mov byte [ebx + 1], 1
test edx, edx
je 0x10031a4a
mov ecx, dword [ebp - 0x74]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10031a40
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a55
push ecx
push edx
call fcn.101e1f2f
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.101e6db2
int3