Function at 0x1001f930
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1214
call fcn.100b8de0
push ebp
push edi
mov edi, dword [esp + 0x1220]
xor ebp, ebp
test edi, edi
jne 0x1001f955
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x1214
ret
push esi
mov esi, dword [esp + 0x1230]
test esi, esi
jne 0x1001f9ae
mov eax, dword [edi + 0xc]
push eax
push edi
call sym.libxml2.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jge 0x1001f980
pop esi
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x1214
ret
push edi
call sym.libxml2.dll_xmlNanoFTPGetConnection
add esp, 4
cmp eax, 0xffffffff
mov dword [edi + 0x30], eax
je 0x1001f973
push str.LIST__L_r_n
lea ecx, [esp + 0x220]
push 0x1001
push ecx
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
jmp 0x1001f9f2
cmp byte [esi], 0x2f
je 0x1001f9c5
mov edx, dword [edi + 0xc]
push edx
push edi
call sym.libxml2.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x1001f973
push edi
call sym.libxml2.dll_xmlNanoFTPGetConnection
add esp, 4
cmp eax, 0xffffffff
mov dword [edi + 0x30], eax
je 0x1001f973
push esi
push str.LIST__L__s_r_n
lea eax, [esp + 0x224]
push 0x1001
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x21c]
mov byte [esp + 0x121c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001fa04
push ebx
sub eax, edx
mov edx, dword [edi + 0x2c]
push 0
mov ebx, eax
push ebx
lea ecx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x1001fa5a
push str.send_failed
push 0
push 9
call fcn.100651c0
mov eax, dword [edi + 0x30]
add esp, 0xc
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
pop ebx
mov eax, esi
pop esi
mov dword [edi + 0x30], 0xffffffff
pop edi
pop ebp
add esp, 0x1214
ret
mov eax, edi
call fcn.1001e6c0
mov esi, eax
mov ecx, 1
cmp esi, ecx
je 0x1001fa90
mov ecx, dword [edi + 0x30]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop ebx
mov eax, esi
pop esi
mov dword [edi + 0x30], 0xffffffff
pop edi
neg eax
pop ebp
add esp, 0x1214
ret
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x120], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
xor esi, esi
push esi
lea edx, [esp + 0x128]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x28], eax
push edx
inc eax
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, esi
jl 0x1001fbbb
jne 0x1001fb10
push edi
call sym.libxml2.dll_xmlNanoFTPCheckResponse
add esp, 4
cmp eax, esi
jl 0x1001fb90
cmp eax, 2
jne 0x1001fb82
mov ecx, dword [edi + 0x30]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop ebx
pop esi
mov dword [edi + 0x30], 0xffffffff
pop edi
xor eax, eax
pop ebp
add esp, 0x1214
ret
mov edx, dword [edi + 0x30]
push esi
mov eax, 0x1000
sub eax, ebp
push eax
lea ecx, [esp + ebp + 0x228]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
cmp ebx, esi
jl 0x1001fbab
add ebp, ebx
mov byte [esp + ebp + 0x220], 0
jmp 0x1001fb40
mov eax, dword [esp + 0x1230]
mov ecx, dword [esp + 0x122c]
push eax
push ecx
lea edx, [esp + esi + 0x228]
push edx
call fcn.1001f550
add esp, 0xc
add esi, eax
test eax, eax
jg 0x1001fb40
sub ebp, esi
push ebp
lea eax, [esp + esi + 0x224]
push eax
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
test ebx, ebx
je 0x1001fbd6
mov ecx, 1
jmp 0x1001fa90
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
pop ebx
or eax, 0xffffffff
pop esi
mov dword [edi + 0x30], eax
pop edi
pop ebp
add esp, 0x1214
ret
push str.recv
push esi
push 9
call fcn.100651c0
add esp, 0xc
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop ebx
or eax, 0xffffffff
pop esi
mov dword [edi + 0x30], eax
pop edi
pop ebp
add esp, 0x1214
ret
push edi
call sym.libxml2.dll_xmlNanoFTPCloseConnection
add esp, 4
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x1214
ret