Function at 0x1000c250
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x10093034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
mov byte [ebp - 0x1c9], 0
mov edx, dword [ebp + 8]
add eax, 0x54
lea eax, [esi + eax*4]
mov dword [ebp - 0x1d0], esi
mov dword [eax], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x1d4]
push edi
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.1000c7d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000c570
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.1000b8c0
add esp, 8
test al, al
jne 0x1000c328
call fcn.1005a731
mov esi, dword [eax]
call fcn.1005a731
push ecx
lea edx, [ebp - 0x138]
mov ecx, esi
mov edi, eax
call fcn.10027160
add esp, 4
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1000a7d0
push dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
call fcn.1000c750
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c8], 2
jne 0x1000c36b
cmp dword [ebp - 0x1c4], 1
jne 0x1000c36b
cmp byte [ebx + 0x6b7], 0
mov esi, dword [ebp - 0x1d4]
je 0x1000c350
mov edx, esi
call fcn.1000c190
mov ecx, esi
call fcn.1000c1b0
cmp byte [ebx + 0x6bf], 0
je 0x1000c378
mov edx, esi
mov ecx, ebx
call fcn.1000b0a0
jmp 0x1000c378
mov esi, dword [ebp - 0x1d4]
mov ecx, esi
call fcn.1000c1b0
cmp dword [ebx + 0x1b0], 0
je 0x1000c3bf
mov dl, 1
mov ecx, ebx
call fcn.1000a630
mov eax, dword [ebx + 0x1b0]
push 0
push esi
push dword [ebx + 0x1b4]
call eax
add esp, 0xc
mov dword [ebp - 0x1d4], eax
xor dl, dl
mov ecx, ebx
call fcn.1000a630
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
jne 0x1000c40c
mov byte [ebp - 0x1c9], 1
cmp dword [ebp - 0x1c8], 2
jne 0x1000c435
push ecx
push 2
mov edx, esi
mov ecx, ebx
call fcn.1000b2c0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c435
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
call fcn.1000c750
add esp, 4
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1000c3bf
mov edx, dword [ebp - 0x1d0]
push esi
call fcn.1000c750
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.10027820
lea eax, [ebp - 0x1f0]
push eax
call fcn.10026dd0
add esp, 4
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0x278], 1
movups xmmword [eax + 0x280], xmm0
jle 0x1000c4a8
push dword [eax + 0x294]
mov edx, 3
mov ecx, ebx
push dword [eax + 0x290]
call fcn.1000a3a0
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push dword [edx + 0x29c]
push dword [edx + 0x298]
mov edx, 4
call fcn.1000a3a0
mov eax, dword [ebp - 0x1d0]
add esp, 0x10
cmp byte [ebp - 0x1c9], 0
jne 0x1000c566
cmp dword [eax + 0x54], 4
je 0x1000c566
cmp byte [eax + 0x26d], 0
jne 0x1000c500
push dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000c500
test edi, edi
jne 0x1000c553
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0xb
je 0x1000c549
sub ecx, 0x2728
je 0x1000c549
sub ecx, 1
je 0x1000c549
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
mov dword [ebx + 0x900], eax
call fcn.1000c750
mov edi, 7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret