Function at 0x101aae80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0x98]
xor ebx, ebx
or eax, dword [esi + 0x9c]
jne 0x101aaeb6
mov ecx, dword [esi + 0xa0]
or ecx, dword [esi + 0xa4]
jne 0x101aaeb6
push 7
lea edx, [esp + 0x18]
push esi
push edx
call fcn.1018f520
add esp, 0xc
mov ebp, 2
or dword [edi], ebp
cmp dword [esi + 0x134], ebx
jne 0x101ab111
cmp dword [esi + 0xa10], ebx
jne 0x101aaeef
mov eax, dword [esi + 0x534]
push eax
call dword [0x10263bac]
add esp, 4
mov dword [esi + 0xa10], eax
test eax, eax
je 0x101ab04f
mov ecx, dword [esi + 0xa10]
mov dword [esi + 0x138], ecx
cmp dword [esi + 0x14c], ebx
jne 0x101aafc3
mov eax, dword [esi + 0x13c]
cmp dword [esi + 0x110], ebp
jne 0x101aaf7b
cmp dword [eax + 0x1a0], ebp
jne 0x101aaf7b
and dword [esi + 0xfc], 0xfffffffd
lea edx, [esp + 0x14]
push edx
mov dword [esi + 0x110], 1
call fcn.10189620
mov ecx, dword [eax]
mov dword [esi + 0x100], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x104], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x108], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10c], edx
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0x70c]
cdq
push 0
push edx
push eax
push esi
call fcn.1017c8e0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x328]
test dword [edx + 0x40], 0x40003
je 0x101aaf9a
xor ebx, ebx
cmp dword [eax + 0x1a0], 1
sete bl
mov ecx, dword [esi + 0x534]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
call fcn.101aa200
add esp, 0xc
test eax, eax
jne 0x101ab302
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x101aafd2
test byte [esi + 0xfc], 0x20
jne 0x101ab300
jmp 0x101aafd4
jg 0x101ab003
mov eax, dword [esi + 0xc]
and dword [esi + 0xfc], 0xfffffffd
cmp dword [eax + 0x2bc], 0
je 0x101ab300
push esi
call fcn.101aa5c0
add esp, 4
test eax, eax
je 0x101ab300
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esi + 0x134], ebp
test ebx, ebx
jne 0x101ab0e8
cmp dword [esi + 0x754], ebx
je 0x101ab0e8
cmp dword [esi + 0xa74], ebx
jne 0x101ab05b
mov edx, dword [esi + 0x534]
add edx, edx
push edx
call dword [0x10263bac]
add esp, 4
mov dword [esi + 0xa74], eax
test eax, eax
jne 0x101ab05b
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.1017f190
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
xor edi, edi
xor eax, eax
test ebp, ebp
jle 0x101ab0ce
jmp 0x101ab070
mov ecx, dword [esi + 0x138]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0xa74]
cmp cl, 0xa
jne 0x101ab0c5
mov byte [eax + edx], 0xd
mov ecx, dword [esi + 0xa74]
inc eax
mov byte [eax + ecx], 0xa
cmp dword [esi + 0x754], 0
jne 0x101ab0c8
mov ecx, dword [esi + 0xd90]
mov edx, dword [esi + 0xd94]
mov ebx, ecx
and ebx, edx
cmp ebx, 0xffffffff
je 0x101ab0c8
add ecx, 1
adc edx, 0
mov dword [esi + 0xd90], ecx
mov dword [esi + 0xd94], edx
jmp 0x101ab0c8
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebp
jl 0x101ab070
cmp eax, ebp
je 0x101ab0e8
mov ecx, dword [esi + 0xa74]
mov dword [esp + 0x10], eax
mov dword [esi + 0x138], ecx
mov dword [esi + 0x134], eax
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x328]
test dword [eax + 0x40], 0x30000
je 0x101ab111
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.1019b770
add esp, 8
test eax, eax
jne 0x101ab302
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x138]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi + 0x344]
push eax
push ecx
push edx
push esi
call fcn.1017ee50
add esp, 0x14
test eax, eax
jne 0x101ab302
mov edi, dword [edi + 0x344]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x101ab180
push 4
lea edx, [esp + 0x14]
push edx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov eax, edi
or eax, ecx
je 0x101ab1e5
mov eax, dword [esp + 0xc]
cdq
cmp ecx, edx
jg 0x101ab1a9
jl 0x101ab1a1
cmp edi, eax
jae 0x101ab1a9
mov ebp, edi
mov dword [esp + 0x18], ecx
jmp 0x101ab1af
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0x138]
push ebp
push ecx
push 2
push esi
call fcn.1017f000
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
sub dword [esi + 0xb8], ebp
mov eax, ecx
sbb dword [esi + 0xbc], edx
cdq
mov edi, eax
mov ebx, edx
sub edi, ebp
sbb ebx, dword [esp + 0x18]
jmp 0x101ab1f0
mov ecx, dword [esp + 0xc]
mov eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov eax, edi
or eax, ebx
je 0x101ab22f
sub ecx, edi
add ecx, dword [esi + 0x138]
push edi
push ecx
push 4
push esi
call fcn.1017f000
add dword [esi + 0xa0], edi
mov edx, dword [esi + 0xa0]
adc dword [esi + 0xa4], ebx
mov ecx, dword [esi + 0xa4]
push ecx
push edx
push esi
call fcn.1018f9f0
mov ecx, dword [esp + 0x28]
add esp, 0x1c
cmp dword [esi + 0x15c], 0
je 0x101ab241
cmp dword [esi + 0x164], 0
je 0x101ab279
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0xd90]
jne 0x101ab279
mov edx, dword [esi + 0xa4]
cmp edx, dword [esi + 0xd94]
jne 0x101ab279
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x14c], 1
call fcn.1017f0b0
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esi + 0x134]
cmp eax, ecx
je 0x101ab29a
add dword [esi + 0x138], ecx
pop edi
sub eax, ecx
pop ebp
mov dword [esi + 0x134], eax
xor eax, eax
pop ebx
add esp, 0x18
ret
cmp dword [esi + 0xa10], 0
jne 0x101ab2c1
mov eax, dword [esi + 0x534]
push eax
call dword [0x10263bac]
add esp, 4
mov dword [esi + 0xa10], eax
test eax, eax
je 0x101ab04f
cmp dword [esi + 0x14c], 0
mov ecx, dword [esi + 0xa10]
mov dword [esi + 0x138], ecx
mov dword [esi + 0x134], 0
je 0x101ab300
mov eax, dword [esi + 0xc]
and dword [esi + 0xfc], 0xfffffffd
cmp dword [eax + 0x2bc], 0
je 0x101ab300
push esi
call fcn.101aa5c0
add esp, 4
test eax, eax
jne 0x101ab302
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x18
ret