Function at 0x100a417
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
xor edx, edx
cmp dword [ebp + 8], edx
lea ecx, [eax + 0x20]
push esi
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ecx]
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], edx
jl 0x100a429
mov ecx, dword [ebp + 8]
mov esi, dword [reloc.msvcrt.dll___p__commode]
imul ecx, ecx, 0x5c
test byte [ecx + esi + 1], 0x40
je 0x100a429
cmp dword [eax], edx
jne 0x100a429
push 0xfffffffffffffffc
jmp 0x100a453
add eax, 4
push dword [eax]
mov dword [ebp - 0x28], eax
call fcn.0101a9bf
mov esi, eax
test esi, esi
je 0x100a798
mov eax, edi
and al, 0x18
cmp al, 0x10
je 0x100a459
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5c], 1
jle 0x100a459
push 0xfffffffffffffff0
pop eax
jmp 0x100a79a
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 9], 1
jne 0x100a494
push ebx
push esi
call fcn.0100a331
test eax, eax
mov dword [ebp - 0x38], eax
je 0x100a494
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x100a484
xor eax, eax
inc eax
shl eax, cl
or dword [esi + 0x2c], eax
jmp 0x100a488
and dword [esi + 0x2c], 0
push 1
push esi
call fcn.01015b39
and dword [esi + 0x2c], 0
and edi, 7
cmp edi, 1
mov dword [ebp - 0x30], edi
jne 0x100a4bb
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100a4bb
push eax
push esi
call fcn.01009b4f
test eax, eax
mov dword [ebp - 4], eax
je 0x100a798
mov edi, dword [esi + 0x38]
jmp 0x100a767
test byte [edi + 0x18], 1
jne 0x100a765
mov esi, dword [ebp + 8]
push esi
call fcn.0100bc1d
test eax, eax
mov eax, dword [edi + 0x14]
je 0x100a4ec
cmp dword [eax*4 + reloc.msvcrt.dll___p__commode], esi
jne 0x100a765
jmp 0x100a4f9
cmp dword [eax*4 + reloc.msvcrt.dll___p__commode], esi
je 0x100a765
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
cmp ecx, dword [edi + 8]
je 0x100a765
cmp dword [ebp - 0x18], 0
je 0x100a52d
xor esi, esi
push eax
inc esi
push esi
call fcn.0101bf45
test eax, eax
mov dword [ebp - 8], eax
je 0x100a798
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esi
push dword [ebp - 8]
call fcn.0101aef7
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov esi, eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0x1024860
mov ecx, dword [ecx]
mov eax, dword [esi + 8]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x28]
mov dword [ecx + 0x28], edx
mov ecx, dword [esi + 8]
mov dword [ecx + 0x24], 4
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x14], edx
mov edx, dword [eax + 0x30]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x2c]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x60]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x60], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x30], eax
je 0x100a60c
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [eax + 0x5c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
jle 0x100a765
and dword [ebp - 0x24], ecx
and dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0x64]
push dword [edi + 0x10]
mov dword [ebp - 0x34], eax
push eax
call fcn.01013b5a
test eax, eax
je 0x100a5ef
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100a5dc
mov ecx, dword [esi + 8]
and dword [eax + ecx + 0x60], 0
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x14]
mov dword [eax + ecx + 0x64], edx
add eax, 0xc
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0xc], 0xc
cmp ecx, dword [eax + 0x5c]
jl 0x100a5b6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100a765
mov ecx, dword [esi + 8]
mov dword [ecx + 0x5c], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 9], 1
jne 0x100a642
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100a642
test byte [eax + 8], 1
je 0x100a642
push dword [edi + 0x34]
push dword [ecx + 0x80]
call fcn.010173cb
cmp eax, 1
je 0x100a765
cmp dword [edi + 8], 0
jne 0x100a670
push dword [edi + 0x34]
mov eax, dword [ebx + 8]
push dword [eax + 0x60]
call fcn.010173cb
cmp eax, 1
jne 0x100a665
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
or byte [eax + 8], 2
push esi
call fcn.010082e3
jmp 0x100a765
cmp dword [ebp - 4], 0
je 0x100a701
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
movzx ebx, word [eax]
sub ebx, 4
shr ebx, 2
push ebx
mov dword [ebp - 0x34], ebx
call fcn.0101af2b
mov ecx, dword [esi + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1c]
xor ecx, ecx
add eax, 4
test ebx, ebx
mov dword [ebp - 0x24], ecx
jle 0x100a6dd
xor ebx, ebx
mov edx, ecx
mov ecx, dword [edi + 0x14]
inc ebx
shl ebx, cl
mov ecx, dword [ebp - 4]
shl edx, 2
test dword [edx + ecx], ebx
je 0x100a6d1
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + edx + 4]
mov dword [eax], ecx
add eax, 4
mov ecx, dword [ebp - 0x24]
inc ecx
cmp ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
jl 0x100a6aa
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x1c]
sub eax, ecx
jne 0x100a6fb
push ecx
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp + 0xc]
jmp 0x100a765
mov ebx, dword [ebp + 0xc]
mov word [ecx], ax
mov eax, dword [edi + 0x14]
mov eax, dword [eax*4 + reloc.msvcrt.dll___p__commode]
mov ecx, dword [esi + 8]
imul eax, eax, 0x5c
mov edx, dword [reloc.msvcrt.dll___p__commode]
mov eax, dword [eax + edx + 4]
mov ecx, dword [ecx + 0xc]
and dword [ebp - 0x1c], 0
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [edi + 0x14]
mov dword [eax + 8], ecx
xor eax, eax
inc eax
push eax
push esi
push dword [edi + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [edi + 4]
push eax
call fcn.01009b2c
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100a765
push eax
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 8]
and dword [eax + 0x1c], 0
mov edi, dword [edi]
test edi, edi
jne 0x100a4c3
cmp dword [ebp - 4], edi
je 0x100a784
push dword [ebp - 4]
push edi
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1c], 0
je 0x100a798
cmp dword [ebp - 8], 0
je 0x100a798
push dword [ebp - 8]
call fcn.0101bff6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8