Function at 0x100113e0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1018a398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor eax, eax
push edi
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
xor ebx, ebx
mov dword [esp + 0x28], eax
push edi
push esi
mov ecx, 0x101ecd28
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], eax
call fcn.10013d20
test eax, eax
je 0x10011462
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x10011462
mov dword [esp + 0x2c], esi
mov ecx, edi
mov esi, eax
mov eax, dword [esp + 0x24]
and ecx, 0xffff
cmp eax, 0xffffffff
mov dword [esp + 0x34], ecx
mov ebp, 1
je 0x10011462
mov edi, eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], ebx
call fcn.10053f60
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x4c]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x58], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100114c5
cmp dword [0x10201328], ebx
je 0x1001150f
mov esi, dword [esp + 0x50]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.CRemapThread::ConnectSvr:_ioctlsocket_called_failed__SOKCET__d___errno__d__n
push str.RemapThread
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
xor eax, eax
jmp 0x1001178a
mov eax, dword [0x101ecc88]
mov ecx, dword [esp + 0x50]
push 0x10
push 0x2b66
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x10011516
cmp dword [0x10201328], ebx
je 0x1001150f
mov esi, dword [esp + 0x50]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.CRemapThread::ConnectSvr:_WSAAsyncSelect_called_failed__SOKCET__d___errno__d_
push str.RemapThread
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
xor eax, eax
jmp 0x1001178a
push 1
push 0x101eccf0
lea ecx, [esp + 0x18]
call fcn.10084010
mov edx, dword [esp + 0x50]
mov ecx, 0x101ecd10
push edx
mov byte [esp + 0x48], 1
call fcn.10012500
mov ebx, dword [esp + 0x54]
push edi
push esi
lea ecx, [esp + 0x58]
mov dword [eax], ebx
call fcn.10053fb0
cmp eax, 0xffffffff
jne 0x10011602
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10011602
mov eax, dword [0x10201328]
test eax, eax
je 0x10011591
mov esi, dword [esp + 0x50]
call edi
push eax
push esi
push str.CRemapThread::ConnectSvr:_connect_called_failed__SOKCET__d___errno__d_
push str.RemapThread
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
mov ecx, dword [0x101ecd10]
test ecx, ecx
je 0x100115ed
mov esi, dword [esp + 0x50]
xor edx, edx
mov eax, esi
shr eax, 4
div dword [0x101ecd14]
mov eax, dword [ecx + edx*4]
test eax, eax
lea ecx, [ecx + edx*4]
je 0x100115ed
cmp dword [eax + 8], esi
je 0x100115c5
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x100115b6
jmp 0x100115ed
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [0x101ecd1c]
mov dword [eax], ecx
mov dword [0x101ecd1c], eax
mov eax, dword [0x101ecd18]
dec eax
mov dword [0x101ecd18], eax
jne 0x100115ed
mov ecx, 0x101ecd10
call fcn.100125e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.10084070
xor eax, eax
jmp 0x1001178a
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.10084070
mov eax, dword [0x10201328]
test eax, eax
je 0x10011638
mov edx, dword [esp + 0x50]
push ebx
push edx
push str.CRemapThread::ConnectSvr:_Add_socket_to_g_mapSocketPair__SOCKET1__d___SOCKET2__d__n
push str.RemapThread
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
test ebp, ebp
je 0x10011785
push 1
push 0x101eccd0
lea ecx, [esp + 0x18]
call fcn.10084010
mov ecx, dword [esp + 0x50]
mov esi, dword [0x101eccbc]
mov eax, ecx
xor edx, edx
shr eax, 4
div esi
mov eax, dword [0x101eccb8]
mov byte [esp + 0x44], 2
test eax, eax
mov ebx, ecx
mov ebp, edx
je 0x10011693
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x100116c5
cmp dword [eax + 8], ecx
je 0x10011689
mov eax, dword [eax]
test eax, eax
jne 0x1001167c
jmp 0x100116c5
test eax, eax
jne 0x1001175c
jmp 0x100116c5
lea edi, [esi*4]
push edi
call fcn.1017c342
mov edx, eax
mov ecx, edi
mov dword [0x101eccb8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x101eccbc], esi
mov esi, dword [0x101eccc4]
test esi, esi
jne 0x10011714
mov eax, dword [0x101ecccc]
push 0x1c
push eax
push 0x101eccc8
call fcn.10083160
mov ecx, dword [0x101ecccc]
lea edx, [ecx*8]
sub edx, ecx
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0x14]
jl 0x1001179f
mov esi, dword [0x101eccc4]
inc ecx
mov dword [eax], esi
mov esi, eax
sub eax, 0x1c
dec ecx
jne 0x10011704
mov dword [0x101eccc4], esi
mov ecx, dword [0x101eccc0]
mov eax, dword [esi]
lea edi, [esi + 8]
inc ecx
push 1
push edi
mov dword [0x101eccc4], eax
mov dword [0x101eccc0], ecx
call fcn.10012720
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.10012700
mov dword [esi + 4], ebp
mov dword [edi], ebx
mov edx, dword [0x101eccb8]
add esp, 0x10
mov eax, esi
mov ecx, dword [edx + ebp*4]
mov dword [esi], ecx
mov edx, dword [0x101eccb8]
mov dword [edx + ebp*4], esi
mov edx, dword [esp + 0x2c]
add eax, 0xc
mov ecx, eax
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
xor eax, eax
mov byte [esp + 0x44], al
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x10]
call fcn.10084070
mov eax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc
mov esi, dword [0x101eccc4]
jmp 0x10011714