Function at 0x10026200
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0x28]
push ebx
push esi
push edi
mov eax, dword [eax]
mov esi, ecx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10026227
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
cmp dword [eax], 3
mov ebx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x24]
jne 0x10026569
cmp ebx, 0xffffffff
jne 0x100263b9
cmp dword [edi], 0x2733
je 0x100263b9
cmp byte [0x100d2da8], 0
je 0x100262ca
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d3c28]
movaps xmm0, xmmword [0x100bbf70]
movups xmmword [esp + 0x24], xmm0
mov byte [esp + 0x54], 0x2d
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [str.Yp]
mov eax, dword [0x100d55b0]
movups xmmword [esp + 0x34], xmm0
movaps xmm0, xmmword [0x100bb990]
movups xmmword [esp + 0x44], xmm0
cmp eax, dword [ecx + 4]
jg 0x1002657f
mov ecx, 0x100cfc80
call fcn.100223f0
push dword [edi]
movzx eax, word [esi + 0xb2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x100cfc80
push 2
call fcn.100546cc
add esp, 0x10
mov ax, word [esi + 0xb2]
cmp ax, word [esi + 0xc0]
jne 0x10026556
mov ax, word [esi + 0xc2]
mov word [esi + 0xb2], ax
lea eax, [esi + 0xb0]
push 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
cmp ebx, 0xffffffff
jne 0x10026556
cmp eax, 0x2733
je 0x10026556
cmp byte [0x100d2da8], 0
mov dword [edi], 0x2745
je 0x10026556
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d3c28]
movaps xmm0, xmmword [0x100bbf70]
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0x3cef975f
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [str.Yp]
mov eax, dword [0x100d5564]
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x48], 0xfcc8cfdf
mov word [esp + 0x4c], 0xbe49
mov byte [esp + 0x4e], 0xcf
cmp eax, dword [ecx + 4]
jg 0x100265eb
mov ecx, 0x100cfb50
call fcn.10016040
push dword [esp + 0x10]
movzx eax, word [esi + 0xb2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x100cfb50
push 2
call fcn.100546cc
add esp, 0x10
jmp 0x10026556
push edi
push eax
push dword [ebp + 8]
call fcn.10026740
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10026556
cmp dword [edi], 0x2733
je 0x10026556
cmp byte [0x100d2da8], 0
je 0x10026459
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d3c28]
movaps xmm0, xmmword [0x100bbf70]
movups xmmword [esp + 0x24], xmm0
mov byte [esp + 0x54], 0x2d
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [str.Yp]
mov eax, dword [0x100d5688]
movups xmmword [esp + 0x34], xmm0
movaps xmm0, xmmword [0x100bb990]
movups xmmword [esp + 0x44], xmm0
cmp eax, dword [ecx + 4]
jg 0x10026658
mov ecx, 0x100cfbc0
call fcn.100223f0
push dword [edi]
movzx eax, word [esi + 0xb2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x100cfbc0
push 2
call fcn.100546cc
add esp, 0x10
mov ax, word [esi + 0xb2]
cmp ax, word [esi + 0xc0]
jne 0x10026556
mov ax, word [esi + 0xc2]
mov word [esi + 0xb2], ax
lea eax, [esi + 0xb0]
push 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
cmp ebx, 0xffffffff
jne 0x10026545
cmp eax, 0x2733
je 0x10026545
cmp byte [0x100d2da8], 0
mov dword [edi], 0x2745
je 0x10026556
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d3c28]
movaps xmm0, xmmword [0x100bbf70]
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0x3cef975f
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [str.Yp]
mov eax, dword [0x100d55cc]
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x48], 0xfcc8cfdf
mov word [esp + 0x4c], 0xbe49
mov byte [esp + 0x4e], 0xcf
cmp eax, dword [ecx + 4]
jg 0x100266c8
mov ecx, 0x100cfcc0
call fcn.10016040
push dword [esp + 0x10]
movzx eax, word [esi + 0xb2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x100cfcc0
push 2
call fcn.100546cc
add esp, 0x10
jmp 0x10026556
push edi
push dword [esp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.10026740
mov ebx, eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.1001ec00
mov eax, dword [ebp + 0x28]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x10026574
mov dword [edi], 0x274d
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x28
push 0x100d55b0
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d55b0], 0xffffffff
jne 0x1002629d
xorps xmm0, xmm0
mov byte [0x100cfcb1], 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x100265b3
mov al, byte [esp + ecx + 0x24]
mov byte [ecx + 0x100cfc80], al
add ecx, 1
adc edx, 0
jne 0x100265cc
cmp ecx, 0x31
jb 0x100265b3
jmp 0x100265cc
push 0x100a5e20
call fcn.1007c695
add esp, 4
push 0x100d55b0
call fcn.1007c793
add esp, 4
jmp 0x1002629d
push 0x100d5564
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d5564], 0xffffffff
jne 0x10026385
xorps xmm0, xmm0
mov byte [0x100cfb7b], 1
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x10026620
mov al, byte [esp + ecx + 0x24]
mov byte [ecx + 0x100cfb50], al
add ecx, 1
adc edx, 0
jne 0x10026639
cmp ecx, 0x2b
jb 0x10026620
jmp 0x10026639
push 0x100a5de0
call fcn.1007c695
add esp, 4
push 0x100d5564
call fcn.1007c793
add esp, 4
jmp 0x10026385
push 0x100d5688
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d5688], 0xffffffff
jne 0x1002642c
xorps xmm0, xmm0
mov byte [0x100cfbf1], 1
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x10026690
mov al, byte [esp + ecx + 0x24]
mov byte [ecx + 0x100cfbc0], al
add ecx, 1
adc edx, 0
jne 0x100266a9
cmp ecx, 0x31
jb 0x10026690
jmp 0x100266a9
push 0x100a5da0
call fcn.1007c695
add esp, 4
push 0x100d5688
call fcn.1007c793
add esp, 4
jmp 0x1002642c
push 0x100d55cc
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d55cc], 0xffffffff
jne 0x10026514
xorps xmm0, xmm0
mov byte [0x100cfceb], 1
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x10026700
mov al, byte [esp + ecx + 0x24]
mov byte [ecx + 0x100cfcc0], al
add ecx, 1
adc edx, 0
jne 0x10026719
cmp ecx, 0x2b
jb 0x10026700
jmp 0x10026719
push 0x100a5d60
call fcn.1007c695
add esp, 4
push 0x100d55cc
call fcn.1007c793
add esp, 4
jmp 0x10026514