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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x48], eax
lea edx, [ebx + 0xe0]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xfd0]
mov ecx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x88]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
lea eax, [ebx + 0x2c70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0xa4]
push edi
mov al, byte [eax + 0x9f]
mov edi, dword [esp + 0xac]
and al, 7
mov byte [esp + 0x17], al
mov eax, dword [ebx + 0x10e8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
test byte [eax + 0x8c], 8
mov eax, dword [ebx + 0x3190]
je 0x101701e1
shr eax, 1
mov dword [ecx], eax
mov eax, dword [ebx + 0x3190]
add eax, 0x4000
shr eax, 1
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x3190]
add eax, 0x8000
shr eax, 1
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x3194]
shr eax, 1
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x3194]
add eax, 0x4000
shr eax, 1
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x3194]
add eax, 0x8000
shr eax, 1
jmp 0x10170221
mov dword [ecx], eax
mov eax, dword [ebx + 0x3190]
add eax, 0x2000
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x3190]
add eax, 0x4000
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x3194]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x3194]
add eax, 0x2000
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x3194]
add eax, 0x4000
push edx
mov dword [ecx + 0x20], eax
call fcn.10162990
movzx eax, byte [esp + 0x1b]
push edi
push esi
push eax
lea eax, [ebx + 0x31e8]
push eax
lea esi, [ebx + 0xe0]
lea eax, [ebp + 0x3abf0]
push esi
push eax
call fcn.10167680
mov eax, dword [esi]
lea ecx, [ebx + 0x313a]
mov dword [esp + 0x6c], eax
mov edx, 0x14d24
mov eax, dword [esi + 4]
add esp, 0x1c
mov dword [esp + 0x4c], eax
mov edi, 1
mov ah, 1
mov dword [ebx + 0x14d40], 0x7fffffff
mov dword [ebx + 0x14d44], 0x7fffffff
mov byte [esp + 0x18], ah
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
nop
mov al, byte [edi + 0x10813228]
xor esi, esi
mov dword [ebx + edx], closesocket
mov word [ecx], si
mov esi, dword [esp + 0xa4]
mov byte [edi + ebx + 0x30f8], 0xff
test byte [ebp + 0x5ccb0], al
je 0x10170336
mov eax, 1
mov ecx, edi
shl eax, cl
test esi, eax
je 0x10170314
mov esi, 8
mov eax, 0x10a72418
mov edx, 1
mov ecx, esi
shl edx, cl
test dword [esp + 0xa4], edx
jne 0x101702f1
movsx ecx, byte [eax]
cmp ecx, edi
je 0x10170314
movsx ecx, byte [eax + 1]
cmp ecx, edi
je 0x10170314
add eax, 2
inc esi
cmp eax, 0x10a72442
jl 0x101702d0
mov eax, dword [ebx + 0x1e434]
test eax, eax
je 0x10170384
mov cl, byte [esp + 0x18]
cmp cl, byte [eax + 0x14]
je 0x10170314
cmp cl, byte [eax + 0x15]
jne 0x10170384
push dword [esp + 0x38]
push dword [esp + 0x30]
push dword [esp + 0x20]
push ebx
push ebp
call fcn.10170860
mov ah, byte [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp dword [ebp + 0x5ce90], 0
jne 0x10170351
cmp dword [ebp + 0x5ce94], 0
jne 0x10170351
cmp dword [ebp + 0x5d14c], 0
je 0x10170390
cmp dword [edx + ebp + 0x7c840], 0
mov ecx, dword [ebx + edx]
jge 0x10170371
mov eax, dword [ebx + 0x14d40]
cmp eax, ecx
cmovge eax, ecx
mov dword [ebx + 0x14d40], eax
jmp 0x10170388
mov eax, dword [ebx + 0x14d44]
cmp eax, ecx
cmovge eax, ecx
mov dword [ebx + 0x14d44], eax
jmp 0x10170388
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ah, byte [esp + 0x18]
inc ah
add ecx, 2
add edx, 4
mov byte [esp + 0x18], ah
inc edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
cmp ah, 7
jle 0x10170290
cmp dword [ebp + 0x5d0b8], 0
mov edi, dword [esp + 0x2c]
jne 0x10170594
mov bl, byte [edi + 0x10808274]
mov al, byte [edi + 0x1080825c]
cmp al, bl
movzx ecx, bl
movzx edx, al
cmovae edx, ecx
cmp edx, 8
jb 0x10170594
mov ebx, dword [esp + 0x34]
mov dl, 8
mov ecx, dword [esp + 0x28]
mov esi, 8
mov byte [esp + 0x1c], dl
mov edi, 0x10a72418
lea eax, [ebx + 0x100]
mov dword [esp + 0x44], eax
lea eax, [ecx + 0x1358]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x3e0]
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x1918]
mov dword [esp + 0x40], eax
lea ecx, [ebx + 0x4d8]
lea eax, [ebx + 0x488]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
xor ebx, ebx
mov word [ecx], bx
mov byte [esi + eax], 0xff
movsx eax, byte [edi]
mov ecx, dword [ebp + 0x5ccb0]
test byte [eax + 0x10813228], cl
je 0x10170554
movsx eax, byte [edi + 1]
test byte [eax + 0x10813228], cl
je 0x10170554
mov ebx, dword [esp + 0x24]
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [esp + 0xa4], eax
je 0x101704a4
mov eax, dword [ebx + 0x1e434]
test eax, eax
je 0x10170554
add eax, 0x14
push eax
call fcn.10165ce0
mov dl, byte [esp + 0x20]
xor ecx, ecx
add esp, 4
cmp dl, al
sete cl
test ecx, ecx
je 0x10170554
mov al, byte [edi]
mov ecx, esi
mov byte [esp + 0x18], al
mov al, byte [edi + 1]
mov byte [esp + 0x19], al
mov eax, dword [ebp + 0x914a0]
sar eax, cl
test al, 1
jne 0x10170554
mov eax, dword [ebp + 0x3acc8]
add eax, 0x28
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
call fcn.1016d870
add esp, 0x10
test eax, eax
jne 0x10170550
lea eax, [ebx + 0x3138]
push eax
lea eax, [ebx + 0x3118]
mov ebx, dword [esp + 0x2c]
push eax
push 0
lea eax, [ebx + 0x1898]
push eax
lea eax, [ebx + 0x1158]
push eax
push dword [esp + 0x4c]
lea eax, [ebp + 0x3abf0]
push dword [esp + 0x34]
push dword [esp + 0x64]
push ebx
push eax
call fcn.100b9750
mov ecx, dword [esp + 0x68]
add esp, 0x28
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x10]
movups xmm0, xmmword [edx]
mov edx, dword [esp + 0x44]
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm0
mov dl, byte [esp + 0x1c]
jmp 0x10170558
mov dl, byte [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add eax, 0x40
add dword [esp + 0x3c], 8
inc dl
add dword [esp + 0x40], 0x10
add ecx, 2
add dword [esp + 0x44], 0x20
inc esi
add edi, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x1c], dl
mov dword [esp + 0x34], ecx
cmp dl, 0x1d
jl 0x10170433
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
lea eax, [ebp + 0x3abf0]
push esi
push eax
call fcn.100c4c40
mov ecx, dword [ebp]
add esp, 8
movzx eax, byte [ebp + 0x6d660]
mov edx, dword [ebp + 0x5ced8]
movzx eax, byte [eax + ecx + 0x100]
imul eax, eax, 0x16
add eax, edi
cmp byte [ebp + 0x3ee32], 0
je 0x10170734
cmp dword [ecx + eax*4 + 0x109e4], edx
jl 0x10170734
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x1e], 0
je 0x10170734
mov bl, byte [edi + 0x10808274]
mov al, byte [edi + 0x1080825c]
cmp al, bl
movzx ecx, bl
mov ebx, dword [esp + 0x30]
movzx edx, al
cmovae edx, ecx
cmp edx, 8
jb 0x10170738
lea edi, [ebx + 0xc]
mov dword [esp + 0x64], 0x80
push edi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0x80
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x74], 0x80
push eax
push ebx
lea eax, [ebp + 0x3abf0]
mov dword [esp + 0x8c], 0x40
push esi
push eax
mov dword [esp + 0x98], 0x40
mov dword [esp + 0x9c], 0x40
mov dword [esp + 0x70], 0x40
mov dword [esp + 0x74], 0x40
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x88], 0x80
mov dword [esp + 0x8c], 0x80
mov dword [esp + 0x90], 0x80
call fcn.10114d20
lea esi, [ebx + 0x24]
push esi
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x50]
lea eax, [ebp + 0x3abf0]
push eax
call fcn.10114e90
mov eax, dword [ebp + 0x3e7a8]
xor ecx, ecx
cmp byte [eax + 0x4d], cl
mov eax, dword [ebp + 0x3acc8]
sete cl
add eax, 0x4c8
lea ecx, [ecx*2 + 1]
push ecx
push 0
push dword [esp + 0x84]
push dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x6c]
push dword [esp + 0x70]
add eax, 0x10
push eax
call fcn.100c5590
add esp, 0x4c
lea eax, [ebp + 0x3abf0]
push dword [esi]
mov esi, dword [esp + 0x28]
push dword [ebx + 0x18]
push dword [edi]
push dword [ebx]
push dword [esp + 0x38]
push esi
push eax
call fcn.10166070
mov edi, dword [esp + 0x48]
add esp, 0x1c
jmp 0x1017073c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
push edi
push esi
push ebp
push dword [esp + 0x60]
call fcn.1016ae20
push 1
push esi
push ebp
call fcn.10144f50
mov ecx, dword [esp + 0xa4]
add esp, 0x1c
mov dword [esi + 0x1dbf0], 0
mov dword [ebx + 0x14f4], 0x7fffffff
mov dword [ebx + 0x14f8], 0x7fffffff
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14fc], 0x7fffffff
mov dword [ebx + 0x1500], 0x7fffffff
mov dword [ebx + 0x1504], 0x7fffffff
mov dword [ebx + 0x1508], 0x7fffffff
mov dword [ebx + 0x150c], 0x7fffffff
mov dword [ebx + 0x1510], 0x7fffffff
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x7c
ret