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

Disassembly:
sub esp, 0x87c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x890]
mov edx, dword [esp + 0x894]
mov ecx, dword [esp + 0x89c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8a4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8b4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x8b8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x8bc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c0]
mov ebx, dword [esp + 0x898]
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x8a8]
mov eax, dword [ebx + 0x10b0]
mov dword [esp + 0x14], edx
lea esi, [edx + 0x3abf0]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebx
mov al, byte [eax + 5]
movzx edx, al
mov byte [esp + 0x11], al
movzx eax, byte [ecx + 0x1079870c]
mov ecx, dword [ebx + 0x10bc]
imul eax, eax, 0xd
mov dword [esp + 0x34], edx
add eax, edx
mov edx, dword [ebx + eax*4 + 0x3508]
add edx, dword [esp + 0x8a0]
mov eax, dword [ebx + 0x10b8]
mov dword [esp + 0x30], edx
test ecx, ecx
je 0x10140339
movzx ecx, byte [ecx + 0x88]
jmp 0x1014033b
xor ecx, ecx
test eax, eax
je 0x10140348
movzx eax, byte [eax + 0x88]
jmp 0x1014034a
xor eax, eax
add eax, ecx
mov edi, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x3bb8]
push dword [eax + 0x48]
push dword [esi + 0x21c]
push dword [esi + 0x218]
call fcn.1007f140
mov ecx, eax
add esp, 0xc
mov al, byte [esp + 0x11]
test al, al
je 0x1014037f
cmp al, 0xc
je 0x1014037f
add edi, ecx
mov eax, dword [esp + 0x24]
lea ecx, [eax*8 + 0x7c3c]
mov eax, dword [ebx + eax*8 + 0x7c38]
add ecx, ebx
mov dword [esp + 0x48], ecx
cmp eax, dword [ecx]
cmovge eax, dword [ecx]
add eax, edi
imul dword [ebx + 0x31cc]
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
sar edx, 9
cmp edx, dword [esp + 0x8b0]
jg 0x101408bf
jl 0x101403cf
cmp eax, dword [esp + 0x8ac]
ja 0x101408bf
mov al, byte [esp + 0x11]
mov edi, dword [esp + 0x1c]
dec al
cmp al, 7
ja 0x10140458
cmp edi, 3
jl 0x10140458
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x3ee3a], 0
je 0x10140458
mov ecx, dword [eax + 0x5cf80]
test ecx, ecx
je 0x10140445
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 0
jne 0x10140441
movaps xmm0, xmmword [0x107a4340]
add eax, 8
push 0
push eax
mov eax, dword [esi + 0x3bb8]
push ecx
movups xmmword [esp + 0x5c], xmm0
movss xmm0, dword [esp + ecx*4 + 0x58]
movss dword [esp], xmm0
push dword [eax + 0x1c]
push edi
push ebx
call fcn.10144660
mov ecx, dword [esp + 0x40]
add esp, 0x18
mov dword [ecx + 0x18], 1
jmp 0x10140449
mov ecx, eax
jmp 0x10140449
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
cmp byte [eax + ecx + 8], 0
jne 0x101408ca
mov al, byte [edi + 0x10798830]
mov edx, 3
cmp al, dl
movzx ecx, al
push 1
cmova ecx, edx
mov byte [esp + 0x28], cl
push dword [esp + 0x28]
push edi
push 0
push ebx
push esi
call fcn.10143e20
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x2c]
add eax, 0x5cf54
push eax
push ebx
call fcn.10143500
mov ecx, dword [esp + 0x34]
push eax
push dword [ecx + 0x5cfa8]
push dword [esp + 0x54]
push dword [esp + 0x44]
push esi
push edi
call fcn.10144740
add esp, 0x38
test eax, eax
jne 0x101408ca
push dword [esp + 0x8b0]
mov edi, dword [esp + 0x8b0]
mov esi, dword [esp + 0x20]
push edi
push esi
push ebp
push ebx
push dword [esp + 0x28]
mov dword [ebp], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov byte [ebp + 0x20], 1
mov dword [ebp + 4], eax
call fcn.10220950
mov edx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [esp + 0x11], 0
jne 0x101405b6
lea eax, [edx + 0x3abf0]
push esi
push eax
call fcn.10140140
add esp, 8
test eax, eax
je 0x101405b6
mov ecx, closesocket
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x2c], ecx
cmp dword [ebp], ecx
je 0x10140669
mov eax, dword [esp + 0x3c]
push 0
push dword [esp + 0x34]
push esi
push eax
push ebx
push edx
mov byte [eax + 0x53], 0
call fcn.10143b90
add eax, dword [ebp]
add esp, 0x18
imul dword [ebx + 0x31cc]
mov ecx, dword [ebp + 0xc]
add eax, 0x100
push 0
adc edx, 0
shrd eax, edx, 9
push 2
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
shld ecx, eax, 7
sar edx, 9
shl eax, 7
add dword [esp + 0x20], eax
adc edx, ecx
push edx
push dword [esp + 0x24]
mov dword [esp + 0x3c], edx
call fcn.10511aa0
cmp edx, dword [esp + 0x8b0]
jg 0x101405a8
jl 0x101405a1
cmp eax, edi
ja 0x101405a8
mov eax, 1
jmp 0x101405aa
xor eax, eax
test eax, eax
jne 0x10140676
mov edx, dword [esp + 0x14]
cmp dword [ebp], 0x7fffffff
je 0x101408ca
push 0
push dword [esp + 0x34]
push esi
push dword [esp + 0x48]
push ebx
push edx
call fcn.10143b90
mov ecx, eax
add esp, 0x18
mov eax, dword [esp + 0x44]
mov dword [eax], ecx
mov eax, ebp
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 0xc]
cmovne eax, dword [esp + 0x48]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 8]
imul dword [ebx + 0x31cc]
mov ebp, dword [esp + 0x8b0]
mov edi, eax
mov eax, dword [esp + 0x4c]
add edi, 0x100
adc edx, 0
shld esi, ecx, 7
shrd edi, edx, 9
shl ecx, 7
sar edx, 9
add edi, ecx
mov dword [eax], edi
adc edx, esi
mov dword [eax + 4], edx
cmp ebp, 0x3fffffff
jg 0x1014065f
mov ebx, dword [esp + 0x8ac]
jl 0x1014063e
cmp ebx, 0xffffffff
jae 0x1014065f
mov ecx, ebx
mov eax, ebp
shrd ecx, eax, 2
sar eax, 2
add ecx, ebx
adc eax, ebp
cmp edx, eax
jg 0x101408bf
jl 0x1014065f
cmp edi, ecx
ja 0x101408bf
mov eax, 1
jmp 0x101408cc
cmp dword [edx + 0x5cfb8], 1
jge 0x101405b6
mov eax, dword [ebx + 0x10b0]
xor ecx, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
mov esi, dword [esi + 0x144]
mov dword [esp + 0x34], eax
push esi
mov al, byte [eax + 0x89]
mov byte [esp + 0x16], al
xor al, al
mov byte [esp + 0x17], al
lea eax, [ebx + 0x23b81]
push eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x490]
push eax
call fcn.105137c0
push esi
push dword [ebx + 0x10c8]
lea eax, [esp + 0x9c]
push eax
call fcn.105137c0
mov esi, dword [esp + 0x4c]
add esp, 0x18
xor al, al
mov byte [esp + 0x11], al
mov byte [esi + 0x53], 1
push dword [esp + 0x8b0]
mov byte [esi + 0x52], al
lea eax, [esp + 0x64]
push edi
push dword [esp + 0x24]
push eax
push ebx
push dword [esp + 0x28]
call fcn.10220950
add esp, 0x18
cmp dword [esp + 0x60], 0x7fffffff
je 0x10140837
push 0
push dword [esp + 0x34]
push dword [esp + 0x24]
push esi
push ebx
push dword [esp + 0x28]
call fcn.10143b90
add eax, dword [esp + 0x78]
add esp, 0x18
imul dword [ebx + 0x31cc]
mov ecx, dword [esp + 0x6c]
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x68]
add ebx, 0x100
adc edi, 0
shld ecx, eax, 7
shrd ebx, edi, 9
shl eax, 7
sar edi, 9
add ebx, eax
adc edi, ecx
cmp ebx, 0xffffffff
jne 0x10140765
cmp edi, 0x7fffffff
je 0x1014078c
push 0
push 2
push edi
push ebx
call fcn.10511aa0
cmp edx, dword [esp + 0x8b0]
jg 0x1014084b
jl 0x1014078c
cmp eax, dword [esp + 0x8ac]
ja 0x1014084b
cmp edi, dword [esp + 0x2c]
jg 0x1014082c
jl 0x101407a2
cmp ebx, dword [esp + 0x18]
jae 0x1014082c
mov al, byte [esi + 0x89]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x38]
mov esi, dword [eax + 0x144]
mov eax, dword [esp + 0x20]
push esi
push dword [eax + 0x10c8]
lea eax, [esp + 0x90]
push eax
call fcn.105137c0
push esi
push dword [esp + 0x50]
lea eax, [esp + 0x49c]
push eax
call fcn.105137c0
movups xmm0, xmmword [esp + 0x78]
mov al, byte [esp + 0x29]
add esp, 0x18
mov esi, dword [esp + 0x34]
movups xmmword [ebp], xmm0
mov dword [esp + 0x18], ebx
movups xmm0, xmmword [esp + 0x70]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x8ac]
movups xmmword [ebp + 0x10], xmm0
mov byte [esp + 0x13], al
movq xmm0, qword [esp + 0x80]
movq qword [ebp + 0x20], xmm0
mov dword [esp + 0x24], 1
jmp 0x1014083b
mov edi, dword [esp + 0x8ac]
mov ebx, dword [esp + 0x20]
mov al, byte [esp + 0x11]
inc al
mov byte [esp + 0x11], al
cmp al, 5
jb 0x101406e0
jmp 0x1014084f
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov al, byte [esp + 0x12]
mov byte [esi + 0x89], al
lea eax, [esp + 0x88]
push dword [edi + 0x144]
push eax
push dword [ebx + 0x10c8]
call fcn.105137c0
push dword [edi + 0x144]
lea eax, [esp + 0x498]
push eax
lea eax, [ebx + 0x23b81]
push eax
call fcn.105137c0
mov edx, dword [esp + 0x2c]
add esp, 0x18
cmp dword [esp + 0x24], 0
je 0x101408b2
mov al, byte [esp + 0x13]
mov byte [esi + 0x53], 1
mov byte [esi + 0x52], al
mov esi, dword [esp + 0x1c]
jmp 0x101405b6
mov byte [esi + 0x53], 0
mov esi, dword [esp + 0x1c]
jmp 0x101405b6
mov eax, dword [esp + 0x28]
mov dword [eax + 4], 1
xor eax, eax
mov ecx, dword [esp + 0x888]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x87c
ret