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

Disassembly:
sub esp, 0x9c0
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x9bc], eax
mov edx, dword [esp + 0x9c8]
xor ecx, ecx
mov eax, dword [esp + 0x9d0]
push ebx
mov ebx, dword [esp + 0x9d0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x9dc]
mov dword [esp + 8], ebx
add ebx, 0xe0
mov dword [esp + 0x3c], eax
lea eax, [edx + 0x3abf0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
or ecx, 0xffffffff
mov eax, dword [ebx + 0xfd0]
push ebp
mov ebp, dword [esp + 0x9cc]
push esi
mov eax, dword [eax]
mov esi, eax
mov dword [esp + 0x28], ecx
mov ecx, 0x29
push edi
lea edi, [esp + 0x68]
mov dword [esp + 0x30], ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x9e4]
mov ebx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x1c], edx
movzx ecx, byte [edi + 0x108082a4]
sub ecx, 4
mov dword [esp + 0x28], 0xffffffff
shl ebx, cl
xor eax, eax
mov dword [esp + 0x24], closesocket
mov byte [esp + 0x44], 0xff
mov dword [esp + 0x40], ebx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], closesocket
mov dword [esp + 0x1ac], 0xffffffff
mov dword [esp + 0x1b0], htons
mov dword [esp + 0x1b4], 0xffffffff
mov dword [esp + 0x1b8], htons
mov dword [esp + 0x1bc], 0xffffffff
mov dword [esp + 0x1c0], htons
mov dword [esp + 0x1c4], 0xffffffff
mov dword [esp + 0x1c8], htons
mov dword [esp + 0x38], eax
nop dword [eax + eax]
cmp dword [edx + 0x5cf7c], 0
je 0x1016f8a6
cmp dword [ebp + 0x31f4], 0
jne 0x1016fa47
push dword [edx + 0x5cfb0]
mov esi, dword [esp + 0x24]
push esi
push eax
call fcn.101452c0
mov eax, dword [esp + 0x9f8]
add esp, 0xc
mov bl, byte [esi + 5]
movzx ecx, bl
mov edx, dword [eax + 4]
mov eax, 1
shl eax, cl
test dword [edx], eax
jne 0x1016fe28
cmp bl, 0xd
jae 0x1016f8e6
mov bh, byte [ecx + 0x1081323c]
jmp 0x1016f8f7
cmp bl, 0x11
jae 0x1016f8f4
mov bh, byte [ecx*8 + 0x108131e4]
jmp 0x1016f8f7
or bh, 0xff
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x3ee35], 0
je 0x1016f90d
cmp dword [edx + 0x5cf88], 0
je 0x1016f928
cmp bl, 9
je 0x1016fa35
cmp bl, 0xb
je 0x1016fa35
cmp bl, 0xa
je 0x1016fa35
cmp byte [edx + 0x3ee36], 0
jne 0x1016f93a
cmp bl, 0xc
je 0x1016fa35
mov al, bl
dec al
cmp al, 7
ja 0x1016f95a
cmp edi, 3
jl 0x1016f950
cmp byte [edx + 0x3ee3a], 0
jne 0x1016f95a
cmp byte [esi + 0x50], 0
jne 0x1016fa35
and byte [esi + 0x9f], 0xcf
xor edi, edi
movzx eax, bh
mov byte [esi + 5], bl
mov byte [esi + 6], 0
lea ecx, [eax*2 + 0x10813471]
add ecx, eax
mov al, byte [ecx]
mov byte [esi + 0x14], al
mov al, byte [ecx + 1]
mov byte [esi + 0x15], al
mov word [esi + 0x86], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x1c], 0
mov byte [esi + 0x44], 0xff
mov eax, dword [edx + 0x3adb8]
cmp eax, 4
movzx ecx, ax
cmove ecx, edi
mov edi, dword [esp + 0x14]
movzx eax, cx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x18], ecx
mov byte [edi + 0x23b80], 0
test bl, bl
je 0x1016fcf5
mov ecx, dword [edx + 0x5d098]
test cl, 8
je 0x1016f9f5
mov al, bl
sub al, 3
cmp al, 9
ja 0x1016f9f5
cmp byte [ebp + 0xcc], 0xff
je 0x1016f9f5
cmp byte [ebp + 0x2c], 0
jg 0x1016fa2e
test cl, 0x10
je 0x1016fcf5
mov al, byte [ebp + 0x31f0]
cmp bl, 5
jne 0x1016fa15
cmp al, 1
je 0x1016fcf5
cmp al, 4
jmp 0x1016fa28
cmp bl, 8
jne 0x1016fcd8
cmp al, 1
je 0x1016fcf5
cmp al, 3
je 0x1016fcf5
mov edi, dword [esp + 0x9e4]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, 0x3d
jl 0x1016f890
cmp dword [esp + 0x3c], 0
je 0x101700a4
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x68]
mov ecx, 0x29
lea eax, [esp + 0x1cc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
push edi
push eax
lea eax, [esi + 0x23b81]
push eax
call fcn.105137c0
push edi
lea eax, [esp + 0x5dc]
push eax
push dword [esi + 0x10c8]
call fcn.105137c0
mov edi, dword [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x124], 0
add esp, 0x18
movlpd qword [esp + 0x114], xmm0
movlpd qword [esp + 0x11c], xmm0
mov eax, dword [edi + 0x3e7a8]
movlpd qword [esp + 0x124], xmm0
mov byte [esp + 0x12c], 1
mov dword [esp + 0x110], 0
mov dword [esp + 0x134], 0
movlpd qword [esp + 0x13c], xmm0
movlpd qword [esp + 0x144], xmm0
movlpd qword [esp + 0x14c], xmm0
mov byte [esp + 0x154], 1
mov dword [esp + 0x138], 0
mov bh, byte [eax + 0x4d]
mov byte [esp + 0x1b], bh
test bh, bh
jne 0x1016fb5d
push dword [ebp + 4]
lea eax, [esp + 0x138]
push dword [ebp]
push eax
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x9f8]
lea eax, [ebp + 0x31f0]
push esi
push edi
push eax
call fcn.10141dd0
add esp, 0x24
test eax, eax
je 0x101700a4
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x15c]
add ebp, esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10c], ebp
movzx eax, byte [ecx + 0x9f]
and eax, 7
cmp dword [edx + eax*4 + 0x1a9c], 0
jne 0x1016fe6a
mov eax, dword [esp + 0x9e4]
test eax, eax
jle 0x1016fe6a
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x23b6c], 2
jne 0x1016fe5b
movzx edi, byte [eax + 0x10808ad8]
xor edx, edx
mov al, byte [eax + 0x108083c8]
dec edi
mov cl, byte [ecx + 0x89]
cmp cl, al
je 0x1016fbde
nop dword [eax + eax]
movzx eax, al
inc edx
mov al, byte [eax + 0x10808400]
cmp cl, al
jne 0x1016fbd0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10bc]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10b8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x10b0]
mov eax, dword [eax]
mov eax, dword [eax]
movzx eax, byte [eax + 0x108083c8]
mov ebx, dword [eax*4 + 0x10808440]
mov eax, dword [eax*4 + 0x10808490]
mov dword [esp + 0x2c], eax
mov al, byte [ecx + 0x10b4]
mov byte [esp + 0x13], al
mov al, byte [ecx + 0x10b5]
mov byte [esp + 0x12], al
mov eax, dword [ecx + 0x117c]
xor ecx, ecx
mov dword [esp + 0x34], ebx
movzx eax, byte [eax]
cmp eax, ebx
mov eax, dword [esp + 0x14]
setge cl
xor ebx, ebx
mov eax, dword [eax + 0x1180]
movzx eax, byte [eax]
cmp eax, dword [esp + 0x2c]
setge bl
cmp byte [esp + 0x13], 0
je 0x1016fc88
mov eax, dword [esp + 0x24]
mov al, byte [eax + 0x9f]
test al, al
mov eax, dword [esp + 0x24]
js 0x1016fc76
cmp byte [eax + 0x14], 0
jle 0x1016fc88
mov eax, dword [eax]
xor ecx, ecx
movzx eax, byte [eax + 0x1080825c]
cmp eax, dword [esp + 0x34]
setge cl
mov al, byte [esp + 0x12]
test al, al
je 0x1016fcbe
mov eax, dword [esp + 0x28]
mov al, byte [eax + 0x9f]
test al, al
mov eax, dword [esp + 0x28]
js 0x1016fca8
cmp byte [eax + 0x14], 0
jle 0x1016fcba
mov eax, dword [eax]
xor ebx, ebx
movzx eax, byte [eax + 0x10808274]
cmp eax, dword [esp + 0x2c]
setge bl
mov al, byte [esp + 0x12]
cmp byte [esp + 0x13], 0
je 0x1016fe31
test al, al
je 0x1016fe38
add ecx, ebx
jmp 0x1016fe38
cmp bl, 7
jne 0x1016fce4
cmp al, 2
jmp 0x1016fa20
cmp bl, 6
jne 0x1016fcf5
cmp al, 2
je 0x1016fcf5
cmp al, 4
jne 0x1016fa2e
lea eax, [esp + 0x1ac]
mov dword [esp + 0x4c], 0xffffffff
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x54], closesocket
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 4]
lea eax, [esp + 0x198]
push dword [ebp]
push eax
push dword [esp + 0x64]
lea eax, [ebp + 0x31f0]
push dword [esp + 0xa10]
push dword [esp + 0xa08]
push edi
push edx
push eax
call fcn.10140260
add esp, 0x34
test eax, eax
je 0x1016fe1f
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x9f8]
jg 0x1016fe1f
mov eax, dword [esp + 0x4c]
jl 0x1016fd79
cmp eax, dword [esp + 0x9f4]
jae 0x1016fe1f
mov dword [esp + 0x3c], 1
cmp ecx, dword [esp + 0x24]
jg 0x1016fe1f
jl 0x1016fd97
cmp eax, dword [esp + 0x28]
jae 0x1016fe1f
movups xmm0, xmmword [esp + 0x184]
mov edx, dword [esp + 0x34]
lea edi, [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
movups xmmword [esp + 0x15c], xmm0
mov byte [esp + 0x44], bh
add eax, 0x23b81
movups xmm0, xmmword [esp + 0x194]
mov ebx, dword [esp + 0x40]
push ebx
movups xmmword [esp + 0x170], xmm0
mov dword [esp + 0x28], ecx
mov ecx, 0x29
movq xmm0, qword [esp + 0x1a8]
push eax
lea eax, [esp + 0x1d4]
movq qword [esp + 0x184], xmm0
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x38], edx
call fcn.105137c0
mov eax, dword [esp + 0x3c]
push ebx
push dword [eax + 0xfe8]
lea eax, [esp + 0x5e0]
push eax
call fcn.105137c0
add esp, 0x18
mov edx, dword [esp + 0x1c]
jmp 0x1016fa2e
mov edx, dword [esp + 0x1c]
jmp 0x1016fa35
xor ecx, ecx
test al, al
cmovne ecx, ebx
mov bh, byte [esp + 0x1b]
lea ecx, [ecx + edi*2]
add ecx, edi
mov edi, dword [esp + 0x1c]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + eax*4 + 0x7c50]
jmp 0x1016fe5d
xor eax, eax
mov edx, dword [esp + 0x30]
sub esi, eax
mov dword [esp + 0x15c], esi
mov bl, byte [ecx + 5]
test bh, bh
jne 0x1016fecf
cmp byte [edx + 0xc], bh
je 0x1016fecf
push edx
call fcn.1016b9b0
movzx eax, al
imul edx, eax, 0xd
movzx eax, bl
add edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 6]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x18]
push dword [ecx + eax*4 + 0x582c]
push dword [esp + 0x9ec]
push edx
push ecx
push edi
call fcn.1016b800
mov ebp, dword [esp + 0x124]
add esp, 0x18
add eax, dword [esp + 0x134]
add ebp, eax
mov dword [esp + 0x10c], ebp
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x13c]
add esi, dword [esp + 0x164]
mov edi, dword [esp + 0x140]
adc edi, dword [esp + 0x168]
mov ecx, dword [eax + 0xfdc]
mov eax, dword [eax + 0xfd8]
mov byte [esp + 0x12c], 0
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], edi
test ecx, ecx
je 0x1016ff1e
movzx ecx, byte [ecx + 0x88]
jmp 0x1016ff20
xor ecx, ecx
test eax, eax
je 0x1016ff2d
movzx eax, byte [eax + 0x88]
jmp 0x1016ff2f
xor eax, eax
add ecx, eax
mov eax, dword [esp + 0x14]
add ebp, dword [eax + ecx*8 + 0x7c38]
mov eax, ebp
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x14]
imul dword [ebp + 0x31cc]
mov ecx, eax
add ecx, 0x100
adc edx, 0
shld edi, esi, 7
shrd ecx, edx, 9
shl esi, 7
sar edx, 9
add ecx, esi
adc edx, edi
mov edi, dword [esp + 0x54]
cmp edx, dword [edi + 0x684]
jg 0x1016ff94
jl 0x1016ff82
cmp ecx, dword [edi + 0x680]
jae 0x1016ff94
mov dword [edi + 0x680], ecx
mov dword [edi + 0x684], edx
mov byte [edi + 0x31f0], bl
mov esi, dword [edi + 0x694]
mov eax, dword [edi + 0x690]
cmp esi, edx
jg 0x1016ffaa
jl 0x1016ffae
cmp eax, ecx
jb 0x1016ffae
mov eax, ecx
mov esi, edx
mov dword [edi + 0x694], esi
mov esi, dword [edi + 0x69c]
mov dword [edi + 0x690], eax
mov eax, dword [edi + 0x698]
cmp esi, edx
jg 0x1016ffd0
jl 0x1016ffd4
cmp eax, ecx
jb 0x1016ffd4
mov eax, ecx
mov esi, edx
mov dword [edi + 0x69c], esi
mov esi, dword [edi + 0x6a4]
mov dword [edi + 0x698], eax
mov eax, dword [edi + 0x6a0]
cmp esi, edx
jg 0x1016fff6
jl 0x1016fffa
cmp eax, ecx
jb 0x1016fffa
mov eax, ecx
mov esi, edx
mov dword [edi + 0x6a0], eax
mov eax, dword [esp + 0x1c]
push 1
mov dword [edi + 0x6a4], esi
mov esi, dword [esp + 0x48]
movzx eax, byte [eax + 0x5d038]
push eax
push edx
push ecx
push dword [esp + 0x9f4]
lea eax, [esp + 0x148]
mov dword [esp + 0x130], ecx
push 0
push esi
push eax
lea eax, [esp + 0x17c]
mov dword [esp + 0x140], edx
push eax
lea eax, [esp + 0x130]
push eax
push dword [esp + 0x48]
push ebp
push dword [esp + 0x88]
call fcn.10171880
mov eax, dword [esp + 0x154]
add esp, 0x34
cmp eax, dword [edi + 4]
jg 0x101700a4
jl 0x10170077
mov eax, dword [esp + 0x11c]
cmp eax, dword [edi]
jae 0x101700a4
push 1
push ebp
push esi
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x16c]
push eax
lea eax, [esp + 0x120]
push eax
push dword [esp + 0x60]
push dword [esp + 0x78]
push edi
call fcn.10172990
add esp, 0x24
mov ecx, dword [esp + 0x9cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x9c0
ret