Function at 0x10002c40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, 1
push str.tpchkunsol_void_
push esi
xor edi, edi
push esi
push str.tpchkunsol
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
call fcn.10011640
mov eax, dword [0x10025200]
add esp, 0x10
cmp eax, edi
mov dword [0x100251a4], edi
jne 0x10002caa
push edi
call sym.tmax.dll_tpstart
add esp, 4
test eax, eax
jge 0x10002caa
mov eax, dword [0x100251a4]
push eax
call sym.tmax.dll_tpstrerror
mov ecx, dword [0x100251a4]
push eax
push ecx
push str.tpchkunsol___1___d_:__s_
push 4
push esi
jmp 0x10002e2d
cmp dword [0x10025264], esi
je 0x10002cd8
push 9
mov dword [0x100251a4], 9
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
push str.tpchkunsol___1___d_:__s_
push 4
push esi
jmp 0x10002e2d
push edi
push 0xb
call sym.tmax.dll__header_msg_make
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x10002d10
push 0xc
mov dword [0x100251a4], 0xc
call sym.tmax.dll_tpstrerror
push eax
mov eax, dword [0x100251a4]
push eax
push str.tpchkunsol___1___d_:__s_
push 4
push esi
jmp 0x10002e2d
mov dword [eax + 0x5c], 5
mov ebx, dword [0x100251f8]
cmp ebx, edi
je 0x10002dcd
xor eax, eax
cmp ebx, edi
je 0x10002dcd
mov ebp, dword [ebx + 4]
test eax, eax
jne 0x10002d41
mov ecx, dword [ebx + 8]
mov dword [0x100251f8], ecx
jmp 0x10002d47
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [0x100251f8]
test eax, eax
jne 0x10002d5a
mov dword [0x100251fc], 0
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
lea eax, [esp + 0x14]
push 0
push eax
push ebp
call fcn.1000bcb0
add esp, 0x10
test eax, eax
jl 0x10002e45
mov ecx, dword [ebp + 0x54]
mov edi, dword [esp + 0x10]
add ecx, 0x60
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
push ecx
add eax, 0x60
push edx
push eax
call dword [0x10025268]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x24]
mov eax, ebx
mov ebx, dword [ebx + 8]
add esp, 0x10
inc edx
test ebx, ebx
mov dword [esp + 0x14], edx
jne 0x10002d2f
mov edi, edx
mov eax, dword [0x10025278]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x18]
push edx
push 0x8004667e
push eax
call ebx
push 1
call sym.tmax.dll_tp_usleep
add esp, 4
test eax, eax
jle 0x10002e9d
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.1000b650
mov esi, eax
mov eax, dword [0x100251a4]
add esp, 8
test esi, esi
jne 0x10002e7c
cmp eax, 3
je 0x10002e7c
push eax
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
push str.tpchkunsol___1___d_:__s_
push 4
push 1
push str.tpchkunsol
call fcn.10011640
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebp
call esi
mov eax, dword [0x100251a4]
push eax
call sym.tmax.dll_tpstrerror
mov ecx, dword [0x100251a4]
push eax
push ecx
push str.tpchkunsol___1___d_:__s_
push 4
push 1
push str.tpchkunsol
call fcn.10011640
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
jne 0x10002e96
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
push eax
lea edx, [esi + 0x60]
push ecx
push edx
inc edi
call dword [0x10025268]
add esp, 0xc
test esi, esi
je 0x10002eab
push esi
jmp 0x10002ea2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [0x10025278]
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call ebx
push edi
push str.tpchkunsol___d
push 2
push 1
push str.tpchkunsol
call fcn.10011640
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret