Function at 0x10032ad0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
lea esi, [ebx + 0x90]
push eax
lea edi, [esi + 0x1c]
mov dword [ebp - 4], 0
call fcn.10030450
test eax, eax
je 0x10032b03
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
jmp 0x10032b39
mov eax, dword [esi + 0x10]
mov edx, dword [esi]
mov dword [ebp - 4], eax
add eax, 0x38
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov edi, eax
push 0
push edi
call fcn.10113080
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x38]
add esp, 0xc
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x1c], ecx
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push ebx
call fcn.10031680
mov edi, dword [ebp + 0x18]
mov esi, eax
lea eax, [esi + 8]
cmp edi, eax
je 0x10032b77
xor ecx, ecx
cmp word [edi], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push edi
push eax
call fcn.10112b90
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0x78]
test edi, edi
jne 0x10032b8b
xor ecx, ecx
jmp 0x10032b9d
mov ecx, edi
lea edx, [ecx + 1]
mov dword [ebp + 0x1c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10032b93
sub ecx, dword [ebp + 0x1c]
push edi
mov edi, ecx
call fcn.100174f0
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebx + 0x174]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x10032be4
mov eax, dword [ebp + 0xc]
dec eax
xor edx, edx
div dword [ecx]
mov edi, dword [ecx + 0x44]
movzx edi, byte [edi + edx]
cmp eax, edi
jne 0x10032be4
mov eax, dword [ecx + 4]
cmp dword [eax + edx*4], 1
jne 0x10032be4
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.100339b0
cmp dword [ebx + 0x44], 0
mov eax, 1
mov dword [ebp + 0x1c], eax
je 0x10032c8a
mov edx, dword [esi + 0x74]
lea ecx, [ebp + 8]
push ecx
push 0x8004667e
push edx
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp + 0x14]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10032c7f
mov edx, dword [ebx + 0x38]
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], edx
xor edx, edx
lea edi, [esi + 8]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x14], 2
cmp word [edi], 2
push ecx
setne dl
push 0
push 0
push 0
mov dword [ebp + 0xc], 0
dec edx
and edx, 0xfffffff4
add edx, 0x1c
push edx
push edi
push eax
call dword [ebp + 8]
test eax, eax
jne 0x10032c6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10032c6d
mov eax, dword [ebp + 0xc]
cmp eax, 0x3e5
jne 0x10032d1c
xor eax, eax
jmp 0x10032d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10032d1c
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
xor eax, eax
cmp word [ecx], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10032d16
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [ebp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebx + 0x48]
push 0
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10032c7f
mov dword [esi + 4], 1
call fcn.10030d00
cmp eax, 2
je 0x10032d05
mov eax, dword [ebp - 4]
mov ecx, ebx
push eax
push ecx
mov ebx, esi
call fcn.100326a0
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x1c], 0
jmp 0x10032d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10032d1c
mov eax, 0x4c7
jmp 0x10032d1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10032d5f
cmp dword [ebp + 0x1c], 0
je 0x10032d5f
push 0
push 0
push 0
push ebx
mov eax, esi
call fcn.10031710
mov edx, dword [ebp - 4]
push edx
lea edi, [ebx + 0xac]
call fcn.1002bed0
test eax, eax
jne 0x10032d5c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18