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

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1a0], eax
cmp dword [esp + 0x1e8], 0
mov eax, dword [esp + 0x1b8]
mov edx, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c8]
push ebx
mov bl, byte [esp + 0x1c0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1d0]
push ebp
mov ebp, dword [esp + 0x1bc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1d8]
push esi
mov esi, dword [esp + 0x1e4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1e0]
push edi
mov edi, dword [esp + 0x1b8]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x1b], bl
mov byte [esp + 0x44], bl
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], eax
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 1
mov dword [esi + 4], 0
jl 0x10229192
jg 0x10228af0
cmp dword [esp + 0x1f4], 0
jb 0x10229192
push dword [esp + 0x44]
lea eax, [edx + 0xe0]
mov dword [esp + 0x74], eax
mov eax, dword [eax + 0xfd0]
mov eax, dword [eax]
mov dword [esp + 0x70], eax
push dword [eax]
mov eax, dword [esp + 0x64]
add eax, ecx
push eax
mov eax, dword [esp + 0x6c]
add eax, ebp
push eax
call fcn.1022a8e0
add esp, 0x10
mov dword [esp + 0x4c], eax
cmp byte [edi + 0x3ee3c], 0
movzx edx, bl
jne 0x10228b3b
cmp byte [edx + 0x108b61d8], 4
je 0x10228b54
cmp byte [edi + 0x3ee3e], 0
jne 0x10228b58
mov eax, dword [edx*4 + 0x108b5ea8]
cmp eax, dword [edx*4 + 0x108b5ef8]
je 0x10228b58
xor eax, eax
jmp 0x10228b5d
mov eax, 1
mov dword [esp + 0x20], eax
test bl, bl
je 0x10228cb0
cmp dword [esp + 0x1d0], 2
jge 0x10228cb0
mov edi, 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], closesocket
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0x10
cmp eax, edi
jne 0x10228cd6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x5d008]
mov dword [esp + 0x50], eax
test eax, eax
jle 0x10228cd6
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
push ecx
push dword [edx*4 + 0x108b5ef8]
movzx eax, byte [eax + 0x108b5cc8]
push dword [edx*4 + 0x108b5ea8]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
imul ecx, eax
push eax
mov dword [esp + 0x7c], 0
mov eax, dword [edx]
add ecx, ebp
lea eax, [eax + ecx*8]
push eax
call fcn.102240f0
mov ecx, dword [esp + 0x28]
add esp, 0x18
movaps xmm0, xmmword [0x108b7ae0]
movss xmm3, dword [esp + 0x64]
movss xmm2, dword [esp + 0x68]
mov eax, dword [ecx + 0x44]
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x108b7af0]
movsx edx, word [eax]
movsx eax, word [eax + 2]
sar edx, 3
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
sar eax, 3
mov dword [esp + 0x14], eax
mov edx, dword [esp + edx*4 + 0x78]
movups xmmword [esp + 0x78], xmm0
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm3
jb 0x10228c83
mov esi, dword [esp + 0x50]
imul eax, eax
movd xmm1, dword [esp + esi*4 + 0x78]
mov esi, dword [esp + 0x48]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
comiss xmm0, xmm1
cmovae edi, eax
mov eax, edx
imul eax, dword [esp + 0x2c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x10228cda
imul edx, dword [esp + 0x14]
imul edx, dword [esp + 0x14]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x10228cda
xor edx, edx
jmp 0x10228cde
xor edi, edi
mov dword [esp + 0x30], 0xffffffff
xor eax, eax
mov dword [esp + 0x34], closesocket
test bl, bl
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0x10
cmovne edi, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x5d13c], 0
je 0x10228d0e
cmp dword [ecx + 0x243d8], 0
je 0x10228d0e
test edi, edi
je 0x10228d0e
mov esi, dword [esp + 0x40]
mov eax, dword [ecx + 0x10]
cmp word [eax + esi*2], 0
mov esi, dword [esp + 0x48]
jne 0x10228e07
test edx, edx
je 0x10228e07
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x204]
push dword [esp + 0x200]
push dword [esp + 0x200]
push esi
push dword [esp + 0x60]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x48]
push dword [esp + 0x1f4]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push ebp
push dword [esp + 0x58]
push ecx
push dword [esp + 0x58]
call fcn.10229af0
mov eax, dword [esp + 0x5c]
add esp, 0x40
mov ecx, dword [eax + 0x5cffc]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10228de4
mov eax, dword [esp + 0x30]
inc ecx
mov edx, dword [esp + 0x34]
call fcn.10511c50
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x34]
sbb eax, edx
cmp eax, dword [esp + 0x1f8]
jg 0x10229192
jl 0x10228daa
cmp ecx, dword [esp + 0x1f4]
ja 0x10229192
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add ecx, 2
mov edx, dword [esp + 0x34]
call fcn.10511c50
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x34]
sbb eax, edx
cmp eax, dword [esp + 0x1f0]
jl 0x10228de0
jg 0x10228dde
cmp ecx, dword [esp + 0x1ec]
jbe 0x10228de0
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x5cff8], 0
mov edx, dword [esp + 0x10]
je 0x10228e0b
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x40]
cmp word [eax + ecx*2], 0
mov eax, 0
cmove edi, eax
jmp 0x10228e0b
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x1b58], 8
mov edx, dword [esp + 0x1f4]
jne 0x102290bd
test edi, edi
je 0x102290bd
cmp edx, 0xffffffff
jne 0x10228e4d
cmp dword [esp + 0x1f8], 0x7fffffff
jne 0x10228e4d
cmp dword [esp + 0x30], edx
jne 0x10228e4d
cmp dword [esp + 0x34], 0x7fffffff
je 0x102290bd
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x5cfe4]
mov dword [esp + 0x50], ecx
test ecx, ecx
js 0x102290b6
movzx eax, bl
shl eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x108aae78]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10228e83
or eax, 0xffffffff
jmp 0x10228f34
mov eax, dword [esp + 0x28]
push 0xfc
push 0
mov dword [esp + 0xb8], 0
movzx esi, byte [eax + 0x108b5cc8]
lea eax, [esp + 0xbc]
push eax
call fcn.10513d40
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xbc]
push eax
mov eax, dword [esp + 0x24]
imul ecx, esi
push dword [eax + 0x108b5ef8]
push dword [eax + 0x108b5ea8]
mov eax, dword [esp + 0x28]
add ecx, ebp
push esi
mov eax, dword [eax]
lea eax, [eax + ecx*8]
push eax
call fcn.10224da0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 1
push dword [esp + 0x54]
lea eax, [esp + 0xdc]
push eax
call dword [0x10b48580]
movss xmm0, dword [esp + 0x44]
add esp, 0x30
mulss xmm0, dword [0x108b7a1c]
cvttss2si eax, xmm0
cmp eax, 0xfffec780
jge 0x10228f22
mov eax, 0xfffec780
jmp 0x10228f2c
mov ecx, 0x13880
cmp eax, ecx
cmovg eax, ecx
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
neg ecx
cmp eax, ecx
jge 0x102290b6
or ecx, 0xffffffff
mov eax, closesocket
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x34], eax
jg 0x10229161
jl 0x10228f6c
cmp edi, ecx
jae 0x10229161
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov al, byte [esp + 0x38]
movzx edi, bl
mov ecx, dword [edx + 0x14]
mov ebx, dword [edi*4 + 0x108b5f48]
mov byte [esi + ecx], al
mov eax, dword [edx + 0x14]
push ebx
mov dword [esp + 0x30], ebx
movzx esi, byte [eax + esi]
mov eax, dword [esp + 0x58]
add eax, ebp
push esi
push eax
call fcn.10513d40
mov eax, dword [edi*4 + 0x108b5f98]
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x38]
add eax, esi
push eax
call fcn.10513d40
mov eax, dword [esp + 0x5c]
push eax
push eax
mov eax, dword [esp + 0x7c]
add eax, esi
push eax
mov eax, dword [esp + 0x84]
add eax, ebp
push eax
call fcn.1022aa30
mov eax, dword [esp + 0x74]
xor edi, edi
add esp, 0x28
mov dword [esp + 0x14], edi
test eax, eax
jle 0x10229050
nop dword [eax + eax]
xor edx, edx
test ebx, ebx
jle 0x10229047
mov eax, dword [esp + 0x28]
add esi, edi
mov edi, dword [esp + 0x6c]
movzx ecx, byte [eax + 0x108b7308]
sar esi, cl
movzx ecx, byte [eax + 0x108b7320]
shl esi, cl
movzx ecx, byte [eax + 0x108b72f0]
nop dword [eax]
mov bl, byte [esp + 0x1b]
lea eax, [edx + ebp]
sar eax, cl
inc edx
add eax, esi
mov byte [eax + edi + 0x8a], bl
mov ebx, dword [esp + 0x2c]
cmp edx, ebx
jl 0x10229020
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
inc edi
mov dword [esp + 0x14], edi
cmp edi, eax
jl 0x10228ff0
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
push dword [esp + 0x48]
mov al, byte [esp + 0x23]
push ebp
push esi
push dword [esp + 0x80]
mov byte [ecx + 0x89], al
call fcn.1022aaa0
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov ebx, dword [esp + 0x10]
movzx edx, byte [eax + 0x108b5c98]
imul edx, esi
mov esi, dword [esp + 0x48]
add edx, ebp
mov cl, byte [ebx + edx + 0x23b81]
mov al, cl
or cl, 1
and al, 0xfe
movzx ecx, cl
cmp byte [esi + 0x20], 0
movzx eax, al
cmove ecx, eax
mov byte [ebx + edx + 0x23b81], cl
jmp 0x1022919c
mov edx, dword [esp + 0x1f4]
or ecx, 0xffffffff
mov eax, closesocket
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
test edi, edi
je 0x10228f54
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1f8]
mov edi, dword [esp + 0x30]
cmp eax, ecx
jg 0x102290f8
jl 0x102290f4
cmp edi, edx
jae 0x102290f8
mov edx, edi
mov ecx, eax
lea esi, [esp + 0x88]
push esi
push dword [esp + 0x204]
push ecx
push edx
push eax
push edi
push dword [esp + 0x64]
push dword [esp + 0x78]
push dword [esp + 0x80]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x54]
push dword [esp + 0x200]
push dword [esp + 0x78]
push dword [esp + 0x78]
push ebp
push dword [esp + 0x64]
push dword [esp + 0x54]
push dword [esp + 0x64]
call fcn.10229db0
mov eax, dword [esp + 0xe8]
add esp, 0x4c
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x48]
jmp 0x10228f58
movups xmm0, xmmword [esp + 0x88]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x98]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0xa8]
movq qword [esi + 0x20], xmm0
cmp ecx, 0xffffffff
jne 0x1022919c
cmp eax, 0x7fffffff
jne 0x1022919c
mov ecx, dword [esp + 0x74]
mov dword [ecx], 0
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x1a4
ret