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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x90]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
lea edx, [ecx + 0x3abf0]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10b0]
push edi
lea edi, [esi + 0xe0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], esi
mov ebp, dword [eax]
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x3bb8]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], closesocket
mov cl, byte [eax + 0x4d]
xor eax, eax
test cl, cl
mov byte [esp + 0x13], cl
mov ecx, dword [edx + 0x30]
sete al
lea eax, [eax*2 + 1]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x34]
cmp ecx, eax
cmovge ecx, eax
test byte [ebp + 0x9f], 0x40
mov dword [esp + 0x18], ecx
jne 0x101686e6
cmp byte [ebp + 0x1c], 2
je 0x101686e6
push ebp
push edi
call fcn.1016ba10
add esp, 8
test eax, eax
jne 0x101686e6
mov eax, dword [edi + 0x1c]
lea ebx, [esp + 0x58]
mov edx, dword [esi + 0x31b4]
mov ecx, edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x554]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xa8c]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x564]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xa9c]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x1008]
shr ecx, 1
test byte [eax + 0x8c], 8
mov dword [esp + 0x64], 0x80
cmovne edx, ecx
mov dword [esp + 0x68], 0x80
mov ecx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x6c], 0x80
lea eax, [edx + 0x4000]
mov dword [esp + 0x5c], eax
lea eax, [edx + 0x8000]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], eax
jmp 0x101684b4
mov ebp, dword [esp + 0x34]
movzx eax, word [esi*4 + 0x10812aba]
mov dword [esp + 0x3c], ebx
cmp ecx, 0xf0
jg 0x101684cd
cmp eax, 1
jmp 0x101684d0
cmp eax, 2
je 0x1016860f
push dword [esp + 0xac]
mov eax, dword [esi*4 + 0x10812ab8]
xorps xmm0, xmm0
push dword [esp + 0xac]
movups xmmword [esp + 0x78], xmm0
push edi
movups xmmword [esp + 0x8c], xmm0
mov dword [ebp + 0x18], eax
movq qword [esp + 0x9c], xmm0
call fcn.10115540
mov ecx, dword [esp + 0x2c]
xor eax, eax
push 0
mov ebp, dword [esp + 0x48]
mov edx, 4
push 0
cmp dword [ecx + 0x5d0cc], eax
push 0
cmove eax, edx
lea edx, [esp + 0xa0]
push edx
lea edx, [esp + 0xac]
push edx
mov eax, dword [eax + 0x1080703c]
lea edx, [esp + 0x98]
push edx
lea edx, [esp + 0x94]
push edx
push 0
push 0
push edi
push ebp
push dword [esp + 0x54]
push ecx
call eax
mov ecx, dword [esp + 0x60]
add esp, 0x40
mov eax, dword [ecx + 0x3e7a8]
movzx eax, byte [eax + 0x40]
push eax
push dword [ecx + 0x3adb8]
push edi
push ebp
call fcn.1007f1e0
mov ecx, dword [esp + 0x80]
add esp, 0x10
add ecx, eax
mov eax, ecx
mov dword [esp + 0x70], ecx
imul dword [ebp + 0x31cc]
mov ecx, dword [esp + 0x7c]
mov ebp, eax
mov eax, dword [esp + 0x78]
add ebp, 0x100
adc edx, 0
shld ecx, eax, 7
shrd ebp, edx, 9
shl eax, 7
sar edx, 9
add ebp, eax
adc edx, ecx
cmp edx, dword [esp + 0x28]
jg 0x1016860b
jl 0x101685c8
cmp ebp, dword [esp + 0x24]
jae 0x1016860b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [ecx]
push ebp
sub esp, 0x18
mov dword [esp + 0x48], ebx
mov ebx, eax
mov dword [esp + 0x4c], esi
mov eax, esp
mov dword [esp + 0x44], edx
push edi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
call fcn.1016f710
mov ecx, dword [esp + 0x38]
add esp, 0x20
jmp 0x10168613
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
inc esi
cmp esi, 3
jl 0x101684b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax*4 + 0x10812ab8]
mov dword [ecx + 0x18], eax
lea eax, [esp + 0x40]
cmp eax, ebx
jne 0x1016865c
movups xmm0, xmmword [ebx]
push ebp
sub esp, 0x18
mov eax, esp
push edi
movups xmmword [eax], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [eax + 0x10], xmm0
call fcn.1016f710
mov ebx, dword [esp + 0x3c]
add esp, 0x20
jmp 0x101686b2
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1008]
movzx edx, byte [ebx + 0x10808274]
test byte [eax + 0x8c], 8
movzx ecx, byte [ebx + 0x1080825c]
push edx
push ecx
push dword [esp + 0x54]
je 0x1016869d
mov eax, dword [esp + 0x4c]
add eax, eax
push eax
mov eax, dword [esp + 0x68]
push dword [esp + 0x74]
add eax, eax
push eax
call dword [0x10b48b4c]
jmp 0x101686af
push dword [esp + 0x4c]
push dword [esp + 0x74]
push dword [esp + 0x6c]
call dword [0x10b4964c]
add esp, 0x18
cmp byte [esp + 0x13], 0
jne 0x101686e2
mov edx, dword [esp + 0x20]
push 2
push 1
push ebx
push 0
push dword [esp + 0xbc]
add edx, 0x3abf0
push dword [esp + 0xbc]
push edi
push edx
call fcn.101152f0
add esp, 0x20
mov al, 1
jmp 0x101686e8
xor al, al
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x8c
ret