Function at 0x100fd400
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100fd42d
lea eax, [edi - 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x21c]
sar eax, 0x1f
test eax, 0xfffffff7
je 0x100fd451
mov eax, 0xfffffff7
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push 1
push edi
call fcn.10100270
add esp, 8
cmp dword [0x101cc834], 4
jne 0x100fd4f8
cmp dword [edi + 0x2d0], 0
je 0x100fd4f8
lea eax, [ebp - 0x130]
push eax
call fcn.100f95d0
mov ecx, dword [ebp - 0x12c]
mov eax, 0x10624dd3
sub ecx, dword [edi + 0x2d4]
add esp, 4
imul ecx
mov eax, dword [ebp - 0x130]
sub eax, dword [edi + 0x2d0]
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
cmp ecx, 0x14
jle 0x100fd4e4
cmp dword [0x101cc834], 4
jne 0x100fd4e4
push ecx
push str.The_following_server_response_has_spent_at_least__dms_sitting_in_the_client_socket_recv_buffer
push str.checkResponseLatency
push 0xd39
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x18
mov dword [edi + 0x2d4], 0
mov dword [edi + 0x2d0], 0
push esi
push dword [ebp + 0xc]
push edi
call fcn.100f7b60
mov esi, eax
add esp, 8
test esi, esi
je 0x100fd53d
push 0xffffffffffffffff
push edi
call fcn.10100270
add esp, 8
test eax, eax
jne 0x100fd52b
cmp dword [edi + 0x2c8], eax
je 0x100fd52b
push edi
call fcn.100fc1d0
add esp, 4
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 4
jne 0x100fd5ab
mov eax, dword [edi]
lea esi, [edi + 0x2d0]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x130], 0
push eax
push 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x120], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x100fd5a2
mov dword [edi + 0x2d4], 0
mov dword [esi], 0
jmp 0x100fd5ab
push esi
call fcn.100f95d0
add esp, 4
lea esi, [edi + 0x18c]
push ebx
push esi
call fcn.101002c0
mov ebx, dword [esi]
add esp, 4
mov dword [ebp - 0x124], ebx
test ebx, ebx
je 0x100fd5d8
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x100fd5d8
mov dword [esi + 4], 0
push esi
call fcn.101003d0
add esp, 4
test ebx, ebx
je 0x100fdd33
push dword [ebx + 8]
push dword [ebx]
call fcn.100fe5a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x128], eax
push ecx
push 0x1017b498
push eax
call fcn.100f74f0
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, 0xfffffffe
jne 0x100fd6ae
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.100fe840
mov ecx, dword [ebp - 0x140]
mov eax, 0x10624dd3
sub ecx, dword [edi + 0x178]
add esp, 8
imul ecx
mov eax, dword [ebp - 0x144]
sub eax, dword [edi + 0x174]
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
cmp dword [0x101cc834], 4
jne 0x100fd682
push ecx
push str.Got_ping_response_in__d_ms
push str.zookeeper_process
push 0xd5b
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x18
mov eax, dword [ebx]
test eax, eax
je 0x100fd691
push eax
call fcn.1013a619
add esp, 4
push ebx
call fcn.1013a619
add esp, 4
lea eax, [ebp - 0x128]
push eax
call fcn.100fe530
add esp, 4
jmp 0x100fd5b2
cmp eax, 0xffffffff
jne 0x100fd7dc
cmp dword [0x101cc834], 4
jne 0x100fd6df
push str.Processing_WATCHER_EVENT
push str.zookeeper_process
push 0xd63
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
lea eax, [ebp - 0x150]
push eax
push str.event
push dword [ebp - 0x128]
call fcn.100f7750
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x148]
push 0x54
push 1
mov dword [ebp - 0x12c], eax
call fcn.1013a60e
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100fd74c
cmp dword [0x101cc834], 1
jl 0x100fd748
push str.out_of_memory
push str.do_create_completion_entry
push 0xe10
push 1
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
xor esi, esi
jmp 0x100fd76e
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x40], 0
mov dword [esi], 0xffffffff
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
push edi
mov dword [esi + 0x44], ebx
call fcn.10100320
push dword [ebp - 0x12c]
push dword [ebp - 0x124]
push edi
call fcn.100fed00
push edi
mov dword [esi + 8], eax
call fcn.10100430
lea eax, [ebp - 0x150]
push eax
call fcn.100f7120
lea ebx, [edi + 0x1d8]
push ebx
call fcn.101002e0
mov dword [esi + 0x48], 0
add esp, 0x1c
mov eax, dword [ebx + 4]
test eax, eax
je 0x100fd7cc
mov dword [eax + 0x48], esi
push ebx
mov dword [ebx + 4], esi
call fcn.101003f0
jmp 0x100fdbc1
mov dword [ebx], esi
push ebx
mov dword [ebx + 4], esi
call fcn.101003f0
jmp 0x100fdbc1
cmp eax, 0xfffffff8
jne 0x100fd835
cmp dword [0x101cc834], 4
jne 0x100fd809
push str.Processing_SET_WATCHES
push str.zookeeper_process
push 0xd73
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
mov eax, dword [ebx]
test eax, eax
je 0x100fd818
push eax
call fcn.1013a619
add esp, 4
push ebx
call fcn.1013a619
add esp, 4
lea eax, [ebp - 0x128]
push eax
call fcn.100fe530
add esp, 4
jmp 0x100fd5b2
cmp eax, 0xfffffffc
jne 0x100fda13
cmp dword [0x101cc834], 4
jne 0x100fd866
push str.Processing_AUTH_XID
push str.zookeeper_process
push 0xd76
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
mov esi, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x12c], esi
call fcn.101004a0
add esp, 4
lea ecx, [edi + 0x248]
test esi, esi
je 0x100fd8df
lea eax, [ebp - 0x13c]
mov dword [edi + 0x21c], 0xffffff8f
push eax
push ecx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x134], 0
call fcn.100f9380
push edi
call fcn.101004c0
add esp, 0xc
cmp dword [0x101cc834], 1
jl 0x100fd94f
mov eax, dword [edi + 0x248]
push dword [eax + 4]
push str.Authentication_scheme__s_failed._Connection_closed.
push str.auth_completion_func
push 0x818
push 1
jmp 0x100fd941
mov eax, dword [ecx]
test eax, eax
je 0x100fd8f2
mov dword [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100fd8e5
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x134], 0
push eax
push ecx
mov esi, edi
mov dword [ebp - 0x13c], 0
call fcn.100f9380
push esi
call fcn.101004c0
add esp, 0xc
cmp dword [0x101cc834], 3
jl 0x100fd94f
mov eax, dword [edi + 0x248]
push dword [eax + 4]
push str.Authentication_scheme__s_succeeded
push str.auth_completion_func
push 0x81b
push 3
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x18
mov eax, dword [ebp - 0x13c]
lea esi, [ebp - 0x13c]
test eax, eax
je 0x100fd981
mov ebx, dword [ebp - 0x12c]
push dword [esi + 4]
push ebx
call eax
mov esi, dword [esi + 8]
add esp, 8
test esi, esi
je 0x100fd97b
mov eax, dword [esi]
test eax, eax
jne 0x100fd965
mov ebx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x134]
test esi, esi
je 0x100fd9af
nop dword [eax + eax]
mov eax, esi
mov esi, dword [esi + 8]
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.1013a619
add esp, 4
test esi, esi
jne 0x100fd990
mov eax, dword [ebx]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
test eax, eax
je 0x100fd9dc
push eax
call fcn.1013a619
add esp, 4
push ebx
call fcn.1013a619
mov eax, dword [edi + 0x21c]
add esp, 4
sar eax, 0x1f
test eax, 0xfffffff7
jne 0x100fdbde
lea eax, [ebp - 0x128]
push eax
lea esi, [edi + 0x18c]
call fcn.100fe530
add esp, 4
jmp 0x100fd5b2
mov eax, dword [ebp - 0xc]
lea esi, [edi + 0x1a4]
push esi
mov dword [ebp - 0x12c], eax
call fcn.101002e0
mov ebx, dword [esi]
add esp, 4
test ebx, ebx
je 0x100fda42
mov eax, dword [ebx + 0x48]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x100fda42
mov dword [esi + 4], 0
push esi
call fcn.101003f0
add esp, 4
cmp dword [edi + 0x2c8], 1
jne 0x100fda5c
test ebx, ebx
je 0x100fdc0e
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1c]
jne 0x100fdc7c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jl 0x100fda83
mov eax, dword [ebp - 0x14]
jg 0x100fda77
test eax, eax
je 0x100fda83
mov dword [edi + 0x240], eax
mov dword [edi + 0x244], ecx
push edi
call fcn.10100320
mov esi, dword [ebp - 0x12c]
push esi
push dword [ebx + 0x4c]
push edi
call fcn.100febc0
push esi
push dword [ebx + 0x50]
push edi
call fcn.100fef90
push edi
call fcn.10100430
mov eax, dword [ebx + 8]
add esp, 0x20
cmp eax, dword [0x101cc830]
je 0x100fdb26
cmp dword [0x101cc834], 4
jne 0x100fdadf
push str.Queueing_asynchronous_response
push str.zookeeper_process
push 0xdaa
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
mov esi, dword [ebp - 0x124]
mov dword [ebx + 0x44], esi
lea esi, [edi + 0x1d8]
push esi
call fcn.101002e0
mov dword [ebx + 0x48], 0
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x100fdb16
mov dword [eax + 0x48], ebx
push esi
mov dword [esi + 4], ebx
call fcn.101003f0
jmp 0x100fdbc1
mov dword [esi], ebx
push esi
mov dword [esi + 4], ebx
call fcn.101003f0
jmp 0x100fdbc1
mov esi, dword [ebx + 0x40]
mov eax, dword [ebp - 0x12c]
mov dword [esi], eax
push dword [ebp - 0x128]
push esi
push ebx
push edi
call fcn.100fa6c0
push esi
call fcn.10100340
mov esi, dword [ebp - 0x124]
add esp, 0x14
mov eax, dword [esi]
test eax, eax
je 0x100fdb5d
push eax
call fcn.1013a619
add esp, 4
push esi
call fcn.1013a619
dec dword [edi + 0x20c]
add esp, 4
mov esi, dword [ebx + 0x4c]
test esi, esi
je 0x100fdb84
push dword [esi + 0xc]
call fcn.1013a619
push esi
call fcn.1013a619
add esp, 8
mov esi, dword [ebx + 0x50]
test esi, esi
je 0x100fdb9c
push dword [esi + 0xc]
call fcn.1013a619
push esi
call fcn.1013a619
add esp, 8
mov esi, dword [ebx + 0x44]
test esi, esi
je 0x100fdbbb
mov eax, dword [esi]
test eax, eax
je 0x100fdbb2
push eax
call fcn.1013a619
add esp, 4
push esi
call fcn.1013a619
add esp, 4
push ebx
call fcn.1013a619
add esp, 4
lea eax, [ebp - 0x128]
lea esi, [edi + 0x18c]
push eax
call fcn.100fe530
add esp, 4
jmp 0x100fd5b2
push 0xffffffffffffff8d
push edi
call fcn.100f9690
lea eax, [ebp - 0x128]
push eax
call fcn.100fe530
push 0xffffffffffffff8d
push edi
call fcn.100f7ad0
add esp, 0x14
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 4
jne 0x100fdc36
push str.Completion_queue_has_been_cleared_by_zookeeper_close__
push str.zookeeper_process
push 0xd8a
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
call fcn.100fe530
mov esi, dword [ebp - 0x124]
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x100fdc5a
push eax
call fcn.1013a619
add esp, 4
push esi
call fcn.1013a619
push 0xfffffffffffffff7
push edi
call fcn.100f7ad0
add esp, 0xc
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 4
jne 0x100fdca4
push str.Processing_unexpected_or_out_of_order_response_
push str.zookeeper_process
push 0xd92
push 4
push dword [edi + 0x250]
call fcn.100fddd0
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
call fcn.100fe530
mov esi, dword [ebp - 0x124]
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x100fdcc8
push eax
call fcn.1013a619
add esp, 4
push esi
call fcn.1013a619
lea esi, [edi + 0x1a4]
push esi
call fcn.101002e0
add esp, 8
mov dword [ebx + 0x48], 0
cmp dword [esi + 4], 0
je 0x100fdcf1
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
jmp 0x100fdcf4
mov dword [esi + 4], ebx
push esi
mov dword [esi], ebx
call fcn.101003f0
push dword [ebx]
push dword [ebp - 0x1c]
push str.unexpected_server_response:_expected__x__but_received__x
push 0xfffffffffffffffe
push str.zookeeper_process
push 0xd9b
push edi
call fcn.100f96d0
push eax
push edi
call fcn.100f7ad0
add esp, 0x28
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push dword [edi + 0x20c]
call fcn.1000db80
add esp, 4
test eax, eax
je 0x100fdd4e
push edi
call fcn.100fa4c0
add esp, 4
push 0
push edi
call fcn.100f7ad0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop ebx
pop esi
pop edi
call fcn.10132a90
mov esp, ebp
pop ebp
ret