Function at 0x4a6140
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
jne 0x4a616f
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x1a8]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x18c]
mov dword [ebp - 0x188], eax
push edx
inc eax
mov esi, 1
push eax
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x18c], esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4a61c7
mov ecx, dword [edi + 0x20]
call fcn.004a59c0
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1a0]
push eax
mov ecx, edi
call fcn.004a5670
test al, al
je 0x4a6241
mov ecx, dword [edi + 0x20]
call fcn.004a59c0
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp - 0x194]
push edx
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x199]
push eax
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 0x18d]
push ecx
mov byte [ebp - 0x199], bl
mov byte [ebp - 0x18d], bl
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x194], ebx
mov ebx, 2
push ebx
push edx
push eax
call fcn.004a8b20
add esp, 0x1c
test al, al
jne 0x4a6254
push str.SRPClient::ProcessIncomingData:_Decode_failure
push 4
call fcn.005304d0
add esp, 8
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x199]
lea eax, [ecx - 1]
cmp eax, 0xfe
ja case.0x4a6270.11
movzx edx, byte [eax + 0x4a689c]
jmp dword [edx*4 + 0x4a6840]
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a62f3
mov edx, dword [ebp - 0x198]
cmp edx, ebx
jl 0x4a62f3
mov ecx, 0x49
cmp dword [eax], ecx
jne 0x4a62f3
cmp dword [eax + 0xc], ecx
jne 0x4a62f3
cmp edx, ebx
jle 0x4a62a2
cmp dword [eax + 0x18], ecx
jne 0x4a62f3
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 0x18d]
push ecx
push edx
push eax
push str._SRP__EVENTReceive_STATUS__VERSION_d__TAG_d__STATUS_d
push 4
call fcn.005304d0
mov eax, dword [ebp - 0x194]
add esp, 0x14
cmp dword [ebp - 0x198], ebx
jle 0x4a62d9
xor edx, edx
cmp dword [eax + 0x1c], edx
setne dl
jmp 0x4a62db
xor edx, edx
mov ecx, dword [edi + 0x1c]
mov esi, dword [ecx]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi + 0xc]
push eax
call edx
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_STATUS_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a6352
cmp dword [ebp - 0x198], esi
jl 0x4a6352
cmp dword [eax], 0x49
jne 0x4a6352
mov eax, dword [eax + 4]
movzx ecx, byte [ebp - 0x18d]
push eax
push ecx
push str._SRP__EVENTReceive_SUBMITTED__VERSION_d__TAG_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x194]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov edx, dword [edx + 8]
add esp, 0x10
push eax
call edx
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_SUBMITTED_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a63b1
cmp dword [ebp - 0x198], esi
jl 0x4a63b1
cmp dword [eax], 0x49
jne 0x4a63b1
mov eax, dword [eax + 4]
movzx ecx, byte [ebp - 0x18d]
push eax
push ecx
push str._SRP__EVENTReceive_RESEND__VERSION_d__TAG_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x194]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x30]
add esp, 0x10
push eax
call edx
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_RESEND_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a6441
mov edx, dword [ebp - 0x198]
cmp edx, ebx
jl 0x4a6441
mov ecx, 0x49
cmp dword [eax], ecx
jne 0x4a6441
cmp dword [eax + 0xc], ecx
jne 0x4a6441
cmp edx, ebx
jle 0x4a63f0
cmp dword [eax + 0x18], ecx
jne 0x4a6441
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 0x18d]
push ecx
push edx
push eax
push str._SRP__EVENTReceive_RETURN__VERSION_d__TAG_d__REASON_d
push 4
call fcn.005304d0
mov eax, dword [ebp - 0x194]
add esp, 0x14
cmp dword [ebp - 0x198], ebx
jle 0x4a6427
xor edx, edx
cmp dword [eax + 0x1c], edx
setne dl
jmp 0x4a6429
xor edx, edx
mov ecx, dword [edi + 0x1c]
mov esi, dword [ecx]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi + 0x28]
push eax
call edx
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_RETURN_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a6482
cmp dword [ebp - 0x198], esi
jl 0x4a6482
cmp dword [eax], 0x49
jne 0x4a6482
mov eax, dword [eax + 4]
movzx ecx, byte [ebp - 0x18d]
push eax
push ecx
push str._SRP__EVENTReceive_DATA_ACK__VERSION_d__TAG_d
jmp 0x4a632f
push str.SRPClient::ProcessIncomingData:_DATA_ACK_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a6510
cmp dword [ebp - 0x198], ebx
jl 0x4a6510
cmp dword [eax], 0x49
jne 0x4a6510
cmp dword [eax + 0xc], 0x53
jne 0x4a6510
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 0x18d]
push ecx
push edx
push eax
push str._SRP__EVENTReceive_RECEIVE__VERSION_d__TAG_d__SIZE_d
push 4
call fcn.005304d0
mov eax, dword [ebp - 0x194]
mov esi, dword [eax + 0x10]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 0x14
push esi
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 4]
push esi
push eax
call edx
test al, al
jne 0x4a6812
mov ecx, dword [ebp - 0x194]
mov edx, dword [ecx + 4]
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
push 0
push edx
mov ecx, edi
call eax
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_RECEIVE_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a655b
cmp dword [ebp - 0x198], ebx
jl 0x4a655b
cmp dword [eax], 0x49
jne 0x4a655b
cmp dword [eax + 0xc], 0x53
jne 0x4a655b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 0x18d]
push ecx
push edx
push eax
push str._SRP__EVENTReceive_DATA__VERSION_d__TAG_d__SIZE_d
jmp 0x4a64c8
push str.SRPClient::ProcessIncomingData:_DATA_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a65ba
cmp dword [ebp - 0x198], esi
jl 0x4a65ba
cmp dword [eax], 0x49
jne 0x4a65ba
mov ecx, dword [eax + 4]
movzx edx, byte [ebp - 0x18d]
push ecx
push edx
push str._SRP__EVENTReceive_PING_RESPONSE__VERSION_d__TAG_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp - 0x194]
mov eax, dword [ecx]
mov edx, dword [edx + 4]
mov eax, dword [eax + 0x14]
add esp, 0x10
push edx
call eax
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_PING_RESPONSE_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
movzx ecx, byte [ebp - 0x18d]
push ecx
push str._SRP__EVENTReceive_RESET__VERSION_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
add esp, 0xc
call eax
jmp 0x4a6812
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4a6643
cmp dword [ebp - 0x198], esi
jl 0x4a6643
cmp dword [eax], 0x53
jne 0x4a6643
mov ecx, dword [eax + 4]
movzx edx, byte [ebp - 0x18d]
push ecx
push edx
push str._SRP__EVENTReceive_CONFIG__VERSION_d__SIZE_d
push 4
call fcn.005304d0
mov eax, dword [ebp - 0x194]
mov esi, dword [eax + 4]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [edx + 0x1c]
add esp, 0x10
push esi
push eax
call edx
jmp 0x4a6812
push str.SRPClient::ProcessIncomingData:_CONFIG_format_failure
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a6812
movzx eax, byte [ebp - 0x18d]
push eax
push str._SRP__EVENTReceive_PAUSE__VERSION_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0xc
call eax
jmp 0x4a6812
movzx ecx, byte [ebp - 0x18d]
push ecx
push str._SRP__EVENTReceive_RESUME__VERSION_d
push 4
call fcn.005304d0
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
add esp, 0xc
call eax
jmp 0x4a6812
mov esi, dword [ebp - 0x194]
test esi, esi
je 0x4a655b
mov edx, dword [ebp - 0x198]
cmp edx, ebx
jl 0x4a655b
cmp dword [esi], 0x53
jne 0x4a655b
mov eax, dword [esi + 4]
cmp eax, 0x81
jae 0x4a655b
mov ecx, 0x49
cmp dword [esi + 0xc], ecx
jne 0x4a655b
cmp edx, ebx
jle 0x4a66f1
cmp dword [esi + 0x18], ecx
jne 0x4a655b
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.005592a0
mov eax, dword [esi + 4]
mov byte [ebp + eax - 0x88], 0
mov ecx, dword [esi + 0x10]
movzx eax, byte [ebp - 0x18d]
push ecx
lea edx, [ebp - 0x88]
push edx
push eax
push str._SRP__EVENTReceive_STATE__VERSION_d__PIN_s__STATE_d
push 4
call fcn.005304d0
mov edx, dword [ebp - 0x194]
add esp, 0x20
cmp dword [ebp - 0x198], ebx
jle 0x4a6747
xor eax, eax
cmp dword [edx + 0x1c], eax
setne al
jmp 0x4a6749
xor eax, eax
mov edx, dword [edx + 0x10]
mov ecx, dword [edi + 0x1c]
mov esi, dword [ecx]
push eax
push edx
mov edx, dword [esi + 0x2c]
lea eax, [ebp - 0x88]
push eax
call edx
jmp 0x4a6812
movzx eax, byte [ebp - 0x18d]
push eax
push str._SRP__EVENTIgnore_INFO__VERSION_d
jmp 0x4a6808
movzx ecx, byte [ebp - 0x18d]
push ecx
push str._SRP__EVENTIgnore_DISCONNECT__VERSION_d
jmp 0x4a6808
movzx edx, byte [ebp - 0x18d]
push edx
push str._SRP__EVENTIgnore_SRP_ERROR__VERSION_d
jmp 0x4a6808
movzx eax, byte [ebp - 0x18d]
push eax
push str._SRP__EVENTIgnore_PING__VERSION_d
jmp 0x4a6808
movzx ecx, byte [ebp - 0x18d]
push ecx
push str._SRP__EVENTIgnore_REGISTER__VERSION_d
jmp 0x4a6808
movzx edx, byte [ebp - 0x18d]
push edx
push str._SRP__EVENTIgnore_CONNECT__VERSION_d
jmp 0x4a6808
movzx eax, byte [ebp - 0x18d]
push eax
push str._SRP__EVENTIgnore_SEND__VERSION_d
jmp 0x4a6808
movzx ecx, byte [ebp - 0x18d]
push ecx
push str._SRP__EVENTIgnore_CANCEL__VERSION_d
jmp 0x4a6808
mov al, byte [ebp - 0x18d]
cmp al, bl
jb 0x4a67f7
movzx edx, al
push edx
push str._SRP__EVENTIgnore_STATUS_ACK__VERSION_d
jmp 0x4a6808
movzx eax, al
push eax
push str._SRP__EVENTIgnore_COMPLETE__VERSION_d
jmp 0x4a6808
push ecx
push str.SRPClient::ProcessIncomingData:_Ignoring_unrecognized_command__d
push 4
call fcn.005304d0
add esp, 0xc
mov ecx, dword [ebp - 0x194]
push ecx
call fcn.0055a04a
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [edi + 4]
add esp, 4
call eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov al, 1
pop edi
call fcn.00558b78
mov esp, ebp
pop ebp
ret