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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x8358
call fcn.10512080
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x8354], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x68], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x28], edi
lea eax, [esi + 0x3abf0]
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x3bb8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x80], htons
cmp byte [eax + 0x4d], dl
mov eax, dword [esp + 0x34]
sete dl
lea edx, [edx*2 + 1]
mov dword [esp + 0x44], edx
movzx edx, byte [eax + 0x109da7a0]
movzx eax, byte [eax + 0x109da7b8]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x10b0]
mov dword [esp + 0x68], edx
lea edx, [ecx + 0xe0]
mov dword [esp + 0x4c], edx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 4]
mov edi, closesocket
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov dword [esp + 0x84], edi
mov al, byte [eax + 0x15]
mov byte [esp + 0xb], al
mov eax, dword [ecx + 0xa97c]
mov dword [esp + 0x98], eax
mov eax, dword [edx]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0xe4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
movsx eax, byte [eax + 0x14]
push eax
push esi
call fcn.1007f190
mov dword [esp + 0x98], eax
movsx eax, byte [esp + 0x13]
push eax
push esi
call fcn.1007f190
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x94], eax
mov eax, dword [edx + 0x10e8]
test byte [eax + 0x8c], 8
je 0x1046169a
lea esi, [esp + 0x350]
shr esi, 1
mov dword [esp + 0x38], esi
jmp 0x104616a5
lea eax, [esp + 0x350]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
add eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x50], eax
test eax, eax
jle 0x10461f38
mov esi, dword [esp + 0x28]
mov edi, ecx
and edi, 1
mov dword [esp + 0x20], edi
cmp ecx, 2
jl 0x10461730
mov ecx, edi
xor ecx, 1
mov eax, dword [esi + ecx*4]
cmp eax, dword [esp + ecx*4 + 0x88]
jne 0x10461730
mov ecx, dword [esi + edi*4]
mov esi, dword [esp + edi*4 + 0x88]
cmp ecx, esi
je 0x10461f2d
mov eax, ecx
sar si, 3
shr eax, 0x10
sar ax, 3
movzx edx, ax
sar cx, 3
movzx eax, cx
shl edx, 0x10
or edx, eax
mov ax, word [esp + edi*4 + 0x8a]
sar ax, 3
movzx ecx, ax
shl ecx, 0x10
movzx eax, si
or ecx, eax
cmp edx, ecx
mov edx, dword [esp + 0xc]
je 0x10461f2d
lea eax, [edx + 0x110]
xor edi, edi
lea esi, [esp + 0x2d8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
nop dword [eax + eax]
push edi
push edx
call fcn.100bcdd0
add esp, 8
mov dword [esp + edi*4 + 0xa8], eax
cmp dword [esp + edi*4 + 0x90], 0
je 0x104617ca
mov eax, dword [esp + 0x10]
mov edx, esi
mov esi, dword [esp + 0x44]
nop word [eax + eax]
mov ecx, dword [eax + 0x10]
lea edx, [edx + 0x14]
lea eax, [eax + 0x538]
movups xmm0, xmmword [eax - 0x538]
movups xmmword [edx - 0x14], xmm0
mov dword [edx - 4], ecx
sub esi, 1
jne 0x10461780
push dword [esp + 0x44]
push esi
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + edi*4 + 0xa0]
push edi
push dword [esp + 0x64]
call fcn.100c5780
mov esi, dword [esp + 0x48]
add esp, 0x1c
add dword [esp + 0x10], 0x14
inc edi
mov edx, dword [esp + 0xc]
add esi, 0x3c
mov dword [esp + 0x2c], esi
cmp edi, 2
jl 0x10461750
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov eax, dword [edi + 0x10]
mov dword [esp + 0xf0], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x134]
mov dword [esp + 0x104], eax
mov eax, dword [edx + 0x10e8]
movups xmm0, xmmword [edi]
mov dword [esp + 0xbc], 3
mov dword [esp + 0xc0], 0xb
mov ecx, dword [eax + 0x8c]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x74]
shl eax, 2
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x78]
shl eax, 2
shr ecx, 3
and ecx, 1
mov dword [esp + 0x180], eax
cmp esi, 4
mov dword [esp + 0x1a8], ecx
mov ecx, 0x109da40c
mov dword [esp + 0x174], esi
mov esi, dword [esp + 0x20]
mov eax, 0x109da080
cmovbe eax, ecx
mov dword [esp + 0x198], 0
cmp dword [esp + 0x7c], 4
mov dword [esp + 0x16c], eax
mov eax, 0x109da080
cmovbe eax, ecx
mov dword [esp + 0x19c], 0
mov dword [esp + 0x170], eax
mov ecx, esi
mov eax, dword [esp + 0x48]
xor ecx, 1
movups xmmword [esp + 0xe0], xmm0
add eax, 0xfc
mov dword [esp + 0x1b8], 0
movups xmmword [esp + 0x108], xmm0
mov dword [esp + 0x1a0], eax
lea eax, [ecx + ecx*4]
movups xmm0, xmmword [edx + 0x124]
mov edx, dword [edx + 0x1b58]
mov dword [esp + 0x1a4], edx
add edx, 6
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x1bc], 0xfffb9000
mov dword [esp + 0x1c0], 0xfffb9000
movups xmmword [esp + 0xf4], xmm0
movups xmm0, xmmword [esp + eax*4 + 0xe0]
mov eax, dword [esp + eax*4 + 0xf0]
mov dword [esp + 0x194], eax
movups xmmword [esp + 0x184], xmm0
cmp edx, 0x10
jle 0x1046197b
lea eax, [edx - 0xd]
mov dword [esp + 0xbc], eax
mov eax, 0x1b
sub eax, edx
mov dword [esp + 0xc0], eax
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x118]
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb4], 0
movups xmm0, xmmword [esp + 0xb4]
lea eax, [eax + ecx*4]
mov dword [esp + 0xc8], 0
push eax
movups xmmword [esp + 0x14c], xmm0
push edx
movups xmm0, xmmword [esp + 0xcc]
push dword [esp + 0x44]
movups xmmword [esp + 0x164], xmm0
movq xmm0, qword [esp + 0xe0]
movq qword [esp + 0x174], xmm0
call fcn.10115760
add esp, 0x10
test esi, esi
je 0x10461a16
lea eax, [esi + esi*4]
movups xmm0, xmmword [esp + eax*4 + 0xe0]
mov eax, dword [esp + eax*4 + 0xf0]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x14]
mov ah, byte [ecx + 0x5cde0]
mov edi, dword [ecx + 0x5cde4]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x5c], ah
mov dl, byte [ecx + 0x109da7b8]
mov al, byte [ecx + 0x109da7a0]
movzx ecx, dl
cmp al, dl
mov edx, dword [esp + 0xc]
movzx esi, al
cmovae esi, ecx
mov ecx, dword [edx + 0x31bc]
sar ecx, 6
cmp edi, 1
jne 0x10461a5e
cmp esi, 0x20
jae 0x10461a76
jmp 0x10461a9f
cmp edi, 2
jl 0x10461a9f
cmp esi, 0x10
jb 0x10461a9f
cmp dword [edx + 0x14d10], 3
jg 0x10461a9f
cmp ecx, 3
jge 0x10461a9f
movzx eax, ah
cmp eax, 0xa
ja case.0x10461a7e.1
jmp dword [eax*4 + 0x10461fb0]
mov ah, 5
jmp 0x10461a9b
mov ah, 4
jmp 0x10461a9b
mov ah, 7
jmp 0x10461a9b
mov ah, 0xa
jmp 0x10461a9b
mov ah, 9
jmp 0x10461a9b
xor ah, ah
mov byte [esp + 0x5c], ah
mov ecx, dword [esp + 0x14]
mov edi, edx
mov edx, dword [edi + 0x120]
cmp edx, dword [ecx + 0x5de20]
jne 0x10461abb
lea eax, [ecx + 0x5d1bc]
jmp 0x10461b22
cmp edx, dword [ecx + 0x634f8]
jne 0x10461acb
lea eax, [ecx + 0x62894]
jmp 0x10461b22
movzx eax, ah
mov cl, byte [eax + 0x109e50e8]
movzx esi, cl
imul eax, esi, 0xc68
cmp edx, dword [eax + edi + 0x1f0d4]
je 0x10461b1c
cmp cl, 2
je 0x10461af4
cmp cl, 3
je 0x10461af4
xor eax, eax
jmp 0x10461af9
mov eax, 1
movzx ecx, byte [esi + 0x109e50e8]
push eax
imul eax, ecx, 0xc68
push edx
add eax, 0x1e470
add eax, edi
push eax
mov eax, dword [ecx*4 + 0x106cd570]
call eax
add esp, 0xc
lea eax, [edi + 0x1e470]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
shl eax, 2
mov dword [esp + 0x30], eax
push 0
push dword [esp + 0x60]
movzx edx, word [eax + ecx + 2]
movzx edi, word [eax + ecx]
mov eax, edx
not eax
movzx ecx, ax
push dword [esp + 0x18]
shr ecx, 0xf
movsx eax, dx
add eax, 3
add eax, ecx
sar eax, 3
movzx esi, ax
mov eax, edi
not eax
shl esi, 0x10
movzx ecx, ax
shr ecx, 0xf
movsx eax, di
add eax, 3
add eax, ecx
lea ecx, [esp + 0xb4]
sar eax, 3
movzx eax, ax
or esi, eax
mov eax, dword [esp + 0x3c]
push esi
add eax, ecx
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x260]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.10100740
mov eax, dword [esp + 0x5c]
add esp, 0x24
mov edi, dword [esp + 0x20]
mov dword [esp + 0x258], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x25c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x260], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x264], edi
cmp dword [eax + 0x5ce58], 0
jne 0x10461c1e
mov eax, dword [esp + 0x40]
cmp byte [eax + 0x4f], 2
je 0x10461c1e
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 5
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.100ff600
mov ecx, dword [esp + 0x34]
add esp, 0x1c
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
jmp 0x10461c42
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24c]
push esi
push eax
call fcn.101011f0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x60], eax
mov eax, ecx
mov dword [esp + 0x54], eax
cmp eax, 0x80008000
je 0x10461c5b
cmp eax, ecx
je 0x10461c5b
cmp dword [ebp + 0x24], 0
mov dword [esp + 0x64], 1
jne 0x10461c63
mov dword [esp + 0x64], 0
test edi, edi
mov edi, dword [esp + 0x24]
je 0x10461c7d
movups xmm0, xmmword [esp + 0x108]
mov eax, dword [esp + 0x3c]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
xor eax, eax
lea edx, [esp + 0xe0]
lea esi, [esp + 0x2d8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edx
mov ecx, edi
mov dword [esp + 0x10], esi
nop dword [eax + eax]
cmp dword [esp + eax*4 + 0x90], 0
je 0x10461cec
mov edi, dword [esp + 0x44]
mov edx, esi
mov esi, ecx
mov eax, dword [edx + 0x10]
lea edx, [edx + 0x14]
lea esi, [esi + 0x538]
movups xmm0, xmmword [edx - 0x14]
movups xmmword [esi - 0x538], xmm0
mov dword [esi - 0x528], eax
sub edi, 1
jne 0x10461cb2
mov edx, dword [esp + 0x3c]
movups xmm0, xmmword [ecx]
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x10]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x2c]
inc eax
add esi, 0x3c
add edx, 0x14
mov dword [esp + 0x2c], eax
add ecx, 0x14
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], edx
cmp eax, 2
jl 0x10461ca0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
test esi, esi
je 0x10461d2f
mov edx, dword [esp + 0x24]
lea eax, [esi + esi*4]
movups xmm0, xmmword [esp + eax*4 + 0xe0]
mov eax, dword [esp + eax*4 + 0xf0]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x3adaa]
mov byte [esp + 0xb], al
test al, al
je 0x10461d62
mov eax, dword [esp + 0x1a]
shl eax, 3
movzx edx, ax
mov al, byte [esp + 0xb]
shl ecx, 3
shl edx, 0x10
movzx ecx, cx
or ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x60]
cmp edi, 0x7fffffff
jge 0x10461edb
test al, al
jne 0x10461edb
push 0
lea ecx, [esi*4]
lea eax, [esp + 0xac]
add eax, ecx
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x1d4]
push dword [esp + 0x18]
push edx
push eax
call fcn.101009f0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x234], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x32]
shl eax, 3
movzx eax, ax
shl ecx, 3
shl eax, 0x10
movzx ecx, cx
or eax, ecx
mov dword [esp + 0x23c], esi
push 0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1ec], 0
push ecx
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea eax, [esp + 0x1f8]
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x7c]
push dword [esp + 0x84]
mov eax, dword [eax + 0x5d1b8]
call eax
add esp, 0x3c
mov edi, eax
cmp dword [esp + 0x64], 0
je 0x10461ed7
mov eax, dword [esp + 0x56]
lea edx, [eax*8]
mov eax, dword [esp + 0x54]
shl eax, 3
movzx ecx, dx
shl ecx, 0x10
movzx eax, ax
or eax, ecx
movsx ecx, dx
movzx esi, ax
cmp ecx, dword [esp + 0x1d8]
jl 0x10461ed7
mov ecx, eax
shr ecx, 0x10
movsx ecx, cx
cmp ecx, dword [esp + 0x1dc]
jg 0x10461ed7
movsx ecx, ax
cmp ecx, dword [esp + 0x1e0]
jl 0x10461ed7
movsx ecx, si
cmp ecx, dword [esp + 0x1e4]
jg 0x10461ed7
push 0
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xac]
push ecx
push 0
push eax
lea eax, [esp + 0x1e0]
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x64]
push dword [esp + 0x6c]
mov eax, dword [eax + 0x5d1b8]
call eax
add esp, 0x24
cmp eax, edi
jge 0x10461ed7
mov ecx, dword [esp + 0xa0]
mov edi, eax
mov dword [esp + 0x18], ecx
jmp 0x10461edb
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x20], 0
je 0x10461efb
mov edx, dword [esp + 0x24]
movups xmm0, xmmword [esp + 0xe0]
mov eax, dword [esp + 0xf0]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
cmp edi, dword [esp + eax + 0x80]
jge 0x10461f2d
mov esi, dword [esp + 0x28]
mov dword [esp + eax + 0x80], edi
mov dword [eax + esi], ecx
mov ecx, dword [esp + 0x6c]
inc ecx
mov dword [esp + 0x6c], ecx
cmp ecx, dword [esp + 0x50]
jl 0x104616c0
mov edi, dword [esp + 0x84]
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x70]
xor esi, esi
mov edi, dword [esp + 0x28]
mov dword [eax], 0
push esi
push edx
call fcn.100bcdd0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa0]
push 0x6c
push dword [eax + 0x80010]
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.10100bf0
mov ecx, dword [esp + 0x8c]
inc esi
mov edx, dword [esp + 0x28]
add esp, 0x1c
add edi, 4
add dword [ecx], eax
cmp esi, 2
jl 0x10461f48
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x80], edi
mov ecx, dword [esp + 0x835c]
cmovl edi, dword [esp + 0x80]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret