Function at 0x100fcc10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x88], eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x9c], esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], edi
test ebx, ebx
je 0x100fd3e0
test eax, eax
je 0x100fd3e0
test esi, esi
je 0x100fd3e0
test edi, edi
je 0x100fd3e0
mov eax, dword [ebx + 0x21c]
sar eax, 0x1f
test eax, 0xfffffff7
je 0x100fcc8a
pop edi
pop esi
mov eax, 0xfffffff7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x94]
push eax
call fcn.100f95d0
lea eax, [ebx + 0x17c]
add esp, 4
cmp dword [eax], 0
jne 0x100fccad
cmp dword [ebx + 0x180], 0
je 0x100fcd1c
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.100f7b20
mov ecx, dword [ebx + 0x184]
add esp, 8
mov dword [ebp - 0x8c], eax
cmp ecx, 0x7da
jl 0x100fccd8
mov ecx, 0xc8
jmp 0x100fccef
mov eax, 0x66666667
imul ecx
mov eax, dword [ebp - 0x8c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp eax, ecx
jle 0x100fcd1c
cmp dword [0x101cc834], 2
jl 0x100fcd1c
push eax
push str.Exceeded_deadline_by__dms
push str.zookeeper_interest
push 0x9e4
push 2
push dword [ebx + 0x250]
call fcn.100fddd0
add esp, 0x18
push 1
push ebx
call fcn.10100270
lea eax, [ebp - 0x94]
push eax
push ebx
call fcn.100fb740
add esp, 0x10
test eax, eax
je 0x100fcd53
push eax
push ebx
call fcn.100f7ad0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x88]
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [esi], 0
mov dword [edi], 0
mov dword [edi + 4], 0
cmp dword [ecx], 0xffffffff
jne 0x100fd00e
cmp dword [ebx + 0x158], 1
je 0x100fcf60
cmp dword [ebx + 0x15c], 1
je 0x100fcf60
mov eax, dword [0x101d8624]
lea esi, [ebx + 8]
test eax, eax
je 0x100fcdc2
mov ecx, 0x20
mov dword [0x101d8624], 0
mov esi, eax
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x98]
lea esi, [ebx + 8]
jmp 0x100fce19
push ebx
call fcn.10100300
push 0x80
push 0
push esi
call fcn.10134c50
add esp, 0x10
cmp dword [ebx + 0x144], 0
je 0x100fce03
push ebx
call fcn.100f9400
add esp, 4
test eax, eax
jne 0x100fcdf9
push ebx
call fcn.10100410
add esp, 4
jmp 0x100fce19
mov dword [ebx + 0x144], 0
lea eax, [ebx + 0x108]
push esi
push eax
call fcn.100ff6c0
push ebx
call fcn.10100410
add esp, 0xc
movzx eax, word [esi]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx]
push dword [eax]
push ebx
call fcn.100fdd70
add esp, 8
mov dword [ebp - 0x8c], 1
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebx]
push 0x8004667e
push dword [eax]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebx]
push dword [eax]
push esi
push ebx
call fcn.100fc4b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100fcecf
call fcn.1013e52f
cmp dword [eax], 0x8c
je 0x100fceb4
call fcn.1013e52f
cmp dword [eax], 0x70
je 0x100fceb4
push str.connect___call_failed
push 0xfffffffffffffffc
push str.zookeeper_interest
push 0xa26
push ebx
call fcn.100f96d0
push eax
push ebx
call fcn.100f7ad0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, 1
mov edx, 7
cmp dword [eax + 4], 0
cmovne ecx, edx
mov dword [ebx + 0x21c], ecx
jmp 0x100fcf3e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x100fcefa
push ebx
call fcn.100f97d0
add esp, 4
test eax, eax
je 0x100fcefa
pop edi
pop esi
mov eax, 0xfffffff1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100fa300
add esp, 4
test eax, eax
jne 0x100fcd38
cmp dword [0x101cc834], 3
jl 0x100fcf3e
mov esi, dword [ebx + 0x250]
lea eax, [ebx + 8]
push eax
call fcn.100f9040
push eax
push str.Initiated_connection_to_server__s
push str.zookeeper_interest
push 0xa3c
push 3
push esi
call fcn.100fddd0
add esp, 0x1c
mov eax, 0x55555556
imul dword [ebx + 0x184]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.100f9660
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x100fcfbc
mov ecx, dword [ebx + 0x184]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.100f9660
mov dword [edi], eax
add esp, 4
mov dword [edi + 4], edx
mov dword [ebx + 0x158], 0
cmp dword [0x101cc834], 2
jl 0x100fcfbc
push dword [ebx + 4]
push str.Delaying_connection_after_exhaustively_trying_all_servers___s_
push str.zookeeper_interest
push 0xa02
push 2
push dword [ebx + 0x250]
call fcn.100fddd0
add esp, 0x18
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x88]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x164], ecx
mov dword [ebx + 0x168], eax
mov dword [ebx + 0x16c], ecx
mov dword [ebx + 0x170], eax
mov dword [ebx + 0x174], ecx
mov dword [ebx + 0x178], eax
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], 0xc8
mov eax, dword [ebx]
cmp dword [eax], 0xffffffff
je 0x100fd3c4
lea eax, [ebp - 0x94]
push eax
lea eax, [ebx + 0x16c]
push eax
call fcn.100f7b20
mov edi, dword [ebx + 0x184]
lea ecx, [ebx + 0x164]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x94]
push eax
push ecx
call fcn.100f7b20
mov esi, eax
lea ecx, [edi + edi]
mov eax, 0x55555556
add esp, 0x10
imul ecx
mov eax, 0x55555556
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul edi
sub ecx, esi
mov edi, edx
mov dword [ebp - 0x8c], ecx
shr edi, 0x1f
add edi, edx
test ecx, ecx
jg 0x100fd0f6
cmp dword [ebx + 0x21c], 7
je 0x100fd0f6
call fcn.1013e52f
mov ecx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x98]
mov dword [eax], 0x274c
mov eax, dword [ebp - 0x8c]
neg eax
mov dword [ecx], 0
push eax
lea eax, [ebx + 8]
mov dword [esi], 0
push eax
mov dword [esi + 4], 0
call fcn.100f9040
add esp, 4
push eax
push str.connection_to__s_timed_out__exceeded_timeout_by__dms_
push 0xfffffffffffffff9
push str.zookeeper_interest
push 0xa58
push ebx
call fcn.100f96d0
push eax
push ebx
call fcn.100f7ad0
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100f9d80
add esp, 4
test eax, eax
je 0x100fd231
mov eax, 0x55555556
imul dword [ebx + 0x184]
mov edi, edx
shr edi, 0x1f
add edi, edx
sub edi, dword [ebp - 0x88]
test edi, edi
jg 0x100fd231
cmp dword [ebx + 0x1a4], 0
jne 0x100fd21f
call fcn.100fe610
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x88], eax
push ecx
push 0x1017a9fc
push eax
mov dword [ebp - 0xa4], 0xfffffffe
mov dword [ebp - 0xa0], 0xb
call fcn.100f7890
push ebx
mov esi, eax
call fcn.101001a0
lea ecx, [ebx + 0x174]
push ecx
call fcn.100f95d0
add esp, 0x14
test esi, esi
js 0x100fd1af
push dword [ebp - 0x88]
call fcn.100fe6f0
add esp, 4
push eax
push dword [ebp - 0x88]
call fcn.100fe6e0
add esp, 4
push eax
lea eax, [ebx + 0x198]
push eax
call fcn.100fab00
add esp, 0xc
mov esi, eax
push ebx
call fcn.101002a0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.100fe560
add esp, 0xc
test esi, esi
js 0x100fd1db
push 0
push ebx
call fcn.100ffbf0
mov esi, eax
add esp, 8
test esi, esi
jns 0x100fd21f
cmp dword [0x101cc834], 1
jl 0x100fd204
push esi
push str.failed_to_send_PING_request__zk_retcode_d_
push str.zookeeper_interest
push 0xa67
push 1
push dword [ebx + 0x250]
call fcn.100fddd0
add esp, 0x18
push esi
push ebx
call fcn.100f7ad0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul dword [ebx + 0x184]
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp dword [ebx + 0x21c], 5
jne 0x100fd31f
lea eax, [ebp - 0x94]
push eax
lea esi, [ebx + 0x210]
push esi
call fcn.100f7b20
mov edx, dword [ebx + 0x218]
add esp, 8
mov dword [ebp - 0x88], eax
cmp eax, edx
jl 0x100fd30e
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov dword [esi + 4], ecx
mov ecx, 0xea60
mov dword [esi], eax
lea eax, [edx + edx]
cmp eax, ecx
mov dword [ebp - 0x88], 0
push ebx
cmovl ecx, eax
lea esi, [ebx + 0x108]
mov dword [ebx + 0x218], ecx
call fcn.100fa040
add esp, 4
test eax, eax
je 0x100fd303
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.100ff720
add esp, 8
mov dword [ebx + 0x218], 0xc8
cmp dword [0x101cc834], 3
jl 0x100fd2f9
mov esi, dword [ebx + 0x250]
lea eax, [ebp - 0x84]
push eax
call fcn.100f9040
push eax
push str.r_w_server_found_at__s
push str.zookeeper_interest
push 0xa7d
push 3
push esi
call fcn.100fddd0
add esp, 0x1c
push 0
push ebx
call fcn.100f7f50
jmp 0x100fd30b
push 0
push esi
call fcn.100ff6c0
add esp, 8
mov eax, dword [ebx + 0x218]
sub eax, dword [ebp - 0x88]
cmp edi, eax
cmovge edi, eax
cmp dword [ebp - 0x8c], edi
cmovl edi, dword [ebp - 0x8c]
push edi
call fcn.100f9660
mov esi, dword [ebp - 0x98]
add esp, 4
mov edi, dword [ebp - 0x94]
add edi, eax
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [ebx + 0x17c], edi
mov esi, dword [esi + 4]
add esi, dword [ebp - 0x90]
mov dword [ebx + 0x180], esi
cmp esi, 0xf4240
jle 0x100fd38d
mov eax, 0x431bde83
imul esi
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + edi]
mov dword [ebx + 0x17c], eax
imul eax, ecx, 0xf4240
sub esi, eax
mov dword [ebx + 0x180], esi
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], 2
cmp dword [ebx + 0x198], 0
je 0x100fd3af
push ebx
call fcn.100f9d80
add esp, 4
test eax, eax
jne 0x100fd3c1
cmp dword [ebx + 0x21c], 1
je 0x100fd3c1
cmp dword [ebx + 0x21c], 7
jne 0x100fd3c4
or dword [ecx], 1
push 0
push ebx
call fcn.100f7ad0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffff8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10132a90
mov esp, ebp
pop ebp
ret