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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1234
call fcn.100cad10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1230], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test esi, esi
jne 0x100262e3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10026327
mov edx, dword [esi + 0xc]
push edx
push esi
call sym.libxml2.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x100262cb
push esi
call sym.libxml2.dll_xmlNanoFTPGetConnection
add esp, 4
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
je 0x100262cb
push str.LIST__L_r_n
lea eax, [esp + 0x234]
push 0x1001
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0xc
jmp 0x1002636f
cmp byte [edi], 0x2f
je 0x1002633e
mov ecx, dword [esi + 0xc]
push ecx
push esi
call sym.libxml2.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x100262cb
push esi
call sym.libxml2.dll_xmlNanoFTPGetConnection
add esp, 4
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
je 0x100262cb
push edi
push str.LIST__L__s_r_n
lea edx, [esp + 0x238]
push 0x1001
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x230]
mov byte [esp + 0x1230], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026380
mov ecx, dword [esi + 0x2c]
sub eax, edx
push 0
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x238]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jge 0x100263e1
push str.send_failed
push 9
xor eax, eax
call fcn.10071a30
mov edx, dword [esi + 0x30]
add esp, 8
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x30], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.10024e40
mov edi, eax
mov ecx, 1
cmp edi, ecx
je 0x10026420
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov dword [esi + 0x30], 0xffffffff
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x128], ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x12c]
push edx
xor edi, edi
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x138], eax
push ecx
inc eax
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jl 0x10026561
jne 0x100264aa
push esi
call sym.libxml2.dll_xmlNanoFTPCheckResponse
add esp, 4
cmp eax, edi
jl 0x1002652b
cmp eax, 2
jne 0x1002651a
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x30], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x30]
push edi
mov edx, 0x1000
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x238]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
mov dword [esp + 0xc], eax
jl 0x10026550
add ebx, eax
mov byte [esp + ebx + 0x230], 0
jmp 0x100264e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
lea edx, [esp + edi + 0x234]
call fcn.10025ed0
add esp, 4
add edi, eax
test eax, eax
jg 0x100264e0
sub ebx, edi
push ebx
lea eax, [esp + edi + 0x234]
push eax
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.MSVCR90.dll_memmove]
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x10026586
mov ecx, 1
jmp 0x10026420
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x30], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push str.recv
push 9
xor eax, eax
call fcn.10071a30
add esp, 8
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x30], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1230]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push esi
call sym.libxml2.dll_xmlNanoFTPCloseConnection
mov ecx, dword [esp + 0x1240]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100ca320
mov esp, ebp
pop ebp
ret