Function at 0x10003050
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
push edi
push ebx
push ebp
push eax
push esi
push str.tpgetunsol__d___x___x___d_
push 1
xor edi, edi
push 1
push str.tpgetunsol
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], edi
call fcn.10011640
mov eax, dword [0x10025200]
add esp, 0x20
cmp eax, edi
mov dword [0x100251a4], edi
jne 0x100030c4
push edi
call sym.tmax.dll_tpstart
add esp, 4
test eax, eax
jge 0x100030c4
mov ecx, dword [0x100251a4]
push ecx
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
jmp 0x10003379
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp eax, edi
je 0x10003360
cmp ebp, edi
je 0x10003360
mov ecx, ebx
or ecx, 0x3a2
cmp ecx, 0x3a2
je 0x10003108
push 4
mov dword [0x100251a4], 4
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
jmp 0x10003379
cmp esi, 5
je 0x1000313e
cmp esi, 1
je 0x1000313e
cmp esi, 2
je 0x1000313e
cmp esi, 3
je 0x1000313e
cmp esi, 4
je 0x1000313e
push 4
mov dword [0x100251a4], 4
call sym.tmax.dll_tpstrerror
push eax
mov eax, dword [0x100251a4]
push eax
jmp 0x10003379
add eax, 0xffffffa0
mov dword [esp + 0x28], eax
cmp dword [eax], 0x270f
je 0x1000315e
mov dword [0x100251a4], 0x12
push 0x12
jmp 0x1000336c
mov dword [eax + 0x10], 0xb
mov edx, dword [esp + 0x28]
mov dword [edx + 0x58], ebx
mov eax, dword [esp + 0x28]
mov dword [eax + 0x14], edi
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x5c], esi
mov eax, dword [0x100251f8]
cmp eax, edi
je 0x10003196
xor ecx, ecx
cmp eax, edi
je 0x10003196
cmp dword [eax], esi
je 0x100031b4
mov ecx, eax
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x10003189
test bh, 2
je 0x10003298
mov ecx, dword [esp + 0x28]
push edi
push ecx
call fcn.1000b650
add esp, 8
mov esi, eax
jmp 0x100032d2
cmp eax, edi
je 0x10003196
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp ecx, edi
jne 0x100031ca
mov dword [0x100251f8], edx
jmp 0x100031cd
mov dword [ecx + 8], edx
cmp dword [0x100251f8], edi
jne 0x100031db
mov dword [0x100251fc], edi
mov ebp, dword [sym.imp.MSVCRT.dll_free]
push eax
call ebp
lea eax, [esp + 0x2c]
push edi
push eax
push ebx
call fcn.1000bcb0
add esp, 0x10
test eax, eax
jge 0x1000322f
push ebx
call ebp
mov ecx, dword [0x100251a4]
push ecx
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
push str.tpgetunsol___1___d_:__s_
push 4
push 1
push str.tpgetunsol
call fcn.10011640
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [ebx + 0x54]
mov edi, dword [esp + 0x28]
add ecx, 0x60
mov esi, ebx
mov eax, ecx
mov edx, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 0x60]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x54]
mov dword [ecx], eax
call ebp
mov edx, dword [0x100251a4]
push edx
call sym.tmax.dll_tpstrerror
push eax
mov eax, dword [0x100251a4]
push eax
push str.tpgetunsol___1___d_:__s_
push 4
push 1
push str.tpgetunsol
call fcn.10011640
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [0x10025278]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
call ebx
mov ecx, dword [esp + 0x28]
push edi
push ecx
call fcn.1000b650
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
mov eax, dword [0x10025278]
push edx
push 0x8004667e
push eax
call ebx
cmp esi, edi
jne 0x100032ef
mov ecx, dword [0x100251a4]
push ecx
call sym.tmax.dll_tpstrerror
mov edx, dword [0x100251a4]
push eax
push edx
jmp 0x10003379
cmp dword [esi + 0x10], 0xe
jne 0x10003328
mov eax, dword [esi + 0x58]
test ah, 0x80
je 0x10003328
push edi
push 0x3f6
call sym.tmax.dll__header_msg_make
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x10003328
mov eax, dword [esi + 0x18]
push edi
push ebx
mov dword [ebx + 0x5c], eax
call fcn.1000b200
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
cmp esi, dword [esp + 0x28]
je 0x10003337
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x60]
mov dword [edx], ecx
mov eax, dword [esi + 0x54]
push str.tpgetunsol__1
push 2
push 1
push str.tpgetunsol
mov dword [ebp], eax
call fcn.10011640
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [0x100251a4], 4
push 4
call sym.tmax.dll_tpstrerror
mov ecx, dword [0x100251a4]
push eax
push ecx
push str.tpgetunsol___1___d_:__s_
push 4
push 1
push str.tpgetunsol
call fcn.10011640
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret