Function at 0x6fd24f40
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x698
mov qword [rsp + 0x6e0], rcx
lea rsi, [rsp + 0x60]
mov dword [rsp + 0x6e8], edx
lea rbx, [rsp + 0x480]
mov qword [rsp + 0x6f0], r8
lea r14, [rsp + 0x270]
mov dword [rsp + 0x6f8], r9d
call sym.libSFTP.dll_osGetSystemTime
mov rdi, qword [rsp + 0x6e0]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x6e0]
add rdi, 0x10
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x6e8]
mov qword [rsp + 0x48], rdi
sub eax, 1
shl rax, 4
lea r13, [rax + rdi]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
nop word [rax + rax]
mov edx, dword [rsp + 0x6e8]
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x270], 0
mov dword [rsp + 0x480], 0
test edx, edx
je 0x6fd251f0
mov r8, qword [rsp + 0x6e0]
xor edi, edi
xor r11d, r11d
xor r12d, r12d
mov byte [rsp + 0x3b], 0
xor ebp, ebp
xor ecx, ecx
mov byte [rsp + 0x3a], 0
jmp 0x6fd2503f
and r9d, 8
jne 0x6fd25114
mov edx, ecx
cmp rax, rdx
cmovae ecx, eax
add r8, 0x10
cmp r13, r8
je 0x6fd251c0
mov rax, qword [r8]
mov dword [r8 + 0xc], 0
test rax, rax
je 0x6fd25032
mov r9d, dword [r8 + 8]
test r9b, 0x81
je 0x6fd25020
test edi, edi
je 0x6fd252d0
cmp qword [rsp + 0x68], rax
je 0x6fd250a0
lea r10d, [rdi - 1]
mov edx, 1
add r10, 1
jmp 0x6fd2508a
add rdx, 1
cmp qword [rsi + rdx*8], rax
je 0x6fd250a0
cmp r10, rdx
mov r15d, edx
jne 0x6fd25080
cmp edi, r15d
jne 0x6fd250a0
cmp edi, 0x40
jne 0x6fd25270
test r11d, r11d
je 0x6fd25290
cmp qword [rsp + 0x488], rax
je 0x6fd25020
lea r10d, [r11 - 1]
mov edx, 1
add r10, 1
jmp 0x6fd250de
add rdx, 1
cmp qword [rbx + rdx*8], rax
je 0x6fd25020
cmp r10, rdx
mov r15d, edx
jne 0x6fd250d0
cmp r15d, r11d
jne 0x6fd25020
cmp r11d, 0x40
je 0x6fd25020
add r11d, 1
and r9d, 8
mov qword [rsp + r15*8 + 0x488], rax
mov byte [rsp + 0x3a], 1
je 0x6fd2502a
test ebp, ebp
je 0x6fd252e0
cmp qword [rsp + 0x278], rax
je 0x6fd25155
lea r9d, [rbp - 1]
mov edx, 1
add r9, 1
jmp 0x6fd2513f
add rdx, 1
cmp qword [r14 + rdx*8], rax
je 0x6fd25155
cmp r9, rdx
mov r10d, edx
jne 0x6fd25135
cmp ebp, 0x40
je 0x6fd25155
cmp r10d, ebp
je 0x6fd252a0
test r11d, r11d
je 0x6fd252c0
cmp qword [rsp + 0x488], rax
je 0x6fd2502a
lea r9d, [r11 - 1]
mov edx, 1
add r9, 1
jmp 0x6fd2518e
add rdx, 1
cmp qword [rbx + rdx*8], rax
je 0x6fd2502a
cmp rdx, r9
mov r10d, edx
jne 0x6fd25180
cmp r10d, r11d
jne 0x6fd2502a
cmp r11d, 0x40
je 0x6fd2502a
add r11d, 1
mov qword [rsp + r10*8 + 0x488], rax
mov byte [rsp + 0x3a], 1
jmp 0x6fd2502a
test r12b, r12b
jne 0x6fd253cd
cmp byte [rsp + 0x3a], 0
je 0x6fd251d8
mov dword [rsp + 0x480], r11d
cmp byte [rsp + 0x3b], 0
je 0x6fd251e3
mov dword [rsp + 0x60], edi
add ecx, 1
jmp 0x6fd251f5
mov ecx, 1
movabs rax, 0x6400000000
mov r9, rbx
mov r8, r14
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0
jg 0x6fd252ea
jne 0x6fd25381
mov rcx, qword [rsp + 0x6f0]
xor edx, edx
call sym.libSFTP.dll_osWaitForEvent
test eax, eax
jne 0x6fd25257
call sym.libSFTP.dll_osGetSystemTime
mov edx, dword [rsp + 0x3c]
add edx, dword [rsp + 0x6f8]
cmp eax, edx
js 0x6fd24fd0
mov eax, 0xdc
add rsp, 0x698
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add edi, 1
test r11d, r11d
mov qword [rsp + r15*8 + 0x68], rax
mov byte [rsp + 0x3b], 1
jne 0x6fd250a9
nop word cs:[rax + rax]
xor r15d, r15d
mov r11d, 1
jmp 0x6fd250fd
add ebp, 1
test r11d, r11d
mov qword [rsp + r10*8 + 0x278], rax
mov r12d, 1
jne 0x6fd2515e
nop word [rax + rax]
xor r10d, r10d
mov r11d, 1
jmp 0x6fd251ad
xor r15d, r15d
mov edi, 1
jmp 0x6fd25273
xor r10d, r10d
mov ebp, 1
jmp 0x6fd252a3
mov eax, dword [rsp + 0x6e8]
test eax, eax
je 0x6fd2537a
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
jmp 0x6fd25319
test al, 8
jne 0x6fd25342
test al, 1
jne 0x6fd2535f
cmp r13, rbp
mov rdi, rbp
je 0x6fd2537a
add rbp, 0x10
mov rcx, qword [rdi]
test rcx, rcx
je 0x6fd2530d
mov eax, dword [rdi + 8]
test al, 0x80
je 0x6fd25305
mov rdx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6fd2538b
mov eax, dword [rdi + 8]
or dword [rdi + 0xc], 0x80
test al, 8
je 0x6fd25309
mov rcx, qword [rdi]
mov rdx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6fd253a2
mov eax, dword [rdi + 8]
or dword [rdi + 0xc], 0x80
test al, 1
je 0x6fd2530d
mov rcx, qword [rdi]
mov rdx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6fd253b9
or dword [rdi + 0xc], 1
cmp r13, rbp
mov rdi, rbp
jne 0x6fd25315
xor eax, eax
jmp 0x6fd2525c
mov eax, 1
jmp 0x6fd2525c
mov rcx, qword [rdi]
mov rdx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x6fd25334
mov eax, dword [rdi + 8]
jmp 0x6fd25305
mov rcx, qword [rdi]
mov rdx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x6fd25351
mov eax, dword [rdi + 8]
jmp 0x6fd25309
mov rcx, qword [rdi]
mov rdx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x6fd2536e
jmp 0x6fd2530d
mov dword [rsp + 0x270], ebp
jmp 0x6fd251c9