Function at 0x1007a370
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x101132ac]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [0x101132a8]
cmp ecx, eax
jne 0x1007a395
cmp ebx, dword [edi + 8]
je 0x1007a3c0
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
cmp ecx, edx
jne 0x1007a3a4
cmp ebx, dword [esi + 8]
je 0x1007a3cf
cmp edx, eax
je 0x1007a3cf
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x273f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x1007a3cf
cmp ebx, dword [esi + 8]
je 0x1007a3d2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push 2
push ecx
mov dword [ebp + 0xc], 1
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1007a403
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], ebx
or ebx, 0xffffffff
jmp 0x1007a405
mov ebx, eax
mov edx, dword [ebp - 4]
mov dword [edx], ebx
cmp ebx, 0xffffffff
je 0x1007a3b4
mov ecx, dword [esi + 4]
mov eax, dword [0x101132a8]
mov edx, dword [0x101132ac]
mov byte [ebp + 0xf], 0
cmp eax, ecx
jne 0x1007a462
cmp edx, dword [esi + 8]
jne 0x1007a459
cmp eax, dword [edi + 4]
jne 0x1007a459
cmp edx, dword [edi + 8]
jne 0x1007a459
cmp dword [ebp + 0x10], 2
jne 0x1007a53d
push 0
push 0
push ebx
call sym.ACE.dll_int___cdecl_ACE::bind_port_void___unsigned_int__int_
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1007a53d
jmp 0x1007a507
cmp eax, ecx
jne 0x1007a462
cmp edx, dword [esi + 8]
je 0x1007a483
cmp eax, dword [edi + 4]
jne 0x1007a483
cmp edx, dword [edi + 8]
jne 0x1007a483
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov edi, dword [esi + 8]
mov ecx, esi
call edx
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
jmp 0x1007a4f2
cmp eax, ecx
jne 0x1007a4b8
cmp edx, dword [esi + 8]
jne 0x1007a4b8
cmp eax, dword [edi + 4]
jne 0x1007a496
cmp edx, dword [edi + 8]
je 0x1007a4b8
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov esi, dword [edi + 8]
mov ecx, edi
call edx
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.1005f1a0
cmp eax, 0xffffffff
jne 0x1007a53d
jmp 0x1007a507
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1007a4f7
mov edx, dword [ebp - 4]
mov eax, dword [edi]
mov ebx, dword [edx]
mov edx, dword [eax + 4]
mov esi, dword [edi + 8]
mov ecx, edi
call edx
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1007a53d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
mov edi, dword [ebp - 4]
mov eax, dword [edi]
mov byte [ebp + 0xf], 1
cmp eax, 0xffffffff
je 0x1007a537
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1007a531
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
mov dword [edi], 0xffffffff
mov dword [edi], 0xffffffff
movzx eax, byte [ebp + 0xf]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14