Function at 0x1003ed50
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c996
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x10096748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.1000b050
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x1003edec
mov byte [ebp - 0x68], 0
push 0x10089585
lea ecx, [ebp - 0x64]
call fcn.10010200
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov eax, dword [ebp - 0x6c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005610
mov eax, dword [ebp + 8]
jmp 0x1003efc4
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0x34
call fcn.10006030
mov edx, dword [ebp - 0x70]
mov ax, word [ebp + 0x24]
mov word [edx + 0x4c], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov dword [ebp - 0x1e], edx
mov dword [ebp - 0x1a], edx
mov dword [ebp - 0x16], edx
mov word [ebp - 0x12], dx
mov eax, 2
mov word [ebp - 0x20], ax
movzx ecx, word [ebp + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea ecx, [ebp + 0xc]
call fcn.10005690
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.1003ead0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x68]
call fcn.1000f3a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.1000d220
movzx edx, byte [ebp - 0x68]
test edx, edx
jne 0x1003eec8
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov ecx, dword [ebp - 0x6c]
or ecx, 1
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005610
mov eax, dword [ebp + 8]
jmp 0x1003efc4
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.1003ec80
lea ecx, [ebp - 0x14c]
call fcn.1000d220
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x74], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x74], 0
jne 0x1003ef26
mov byte [ebp - 0x68], 1
push 0x10089587
lea ecx, [ebp - 0x64]
call fcn.10010200
jmp 0x1003ef91
mov byte [ebp - 0x68], 0
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7c]
push edx
push str.connect_err._lastErr:
lea eax, [ebp - 0xa4]
push eax
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0xa4]
call fcn.10005610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.10005610
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov eax, dword [ebp - 0x6c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005610
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004910b
mov esp, ebp
pop ebp
ret 0x20