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

Disassembly:
mov eax, 0x1228
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x1224], eax
mov eax, dword [esp + 0x1230]
push ebx
push esi
mov esi, dword [esp + 0x1240]
push edi
mov edi, dword [esp + 0x1238]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1240]
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
test edi, edi
jne 0x102f5054
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1224]
xor ecx, esp
call fcn.10311bec
add esp, 0x1228
ret
test esi, esi
jne 0x102f5097
push dword [edi + 0xc]
push edi
call sym.php5.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x102f5039
push edi
call sym.php5.dll_xmlNanoFTPGetConnection
add esp, 4
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
je 0x102f5039
push str.LIST__L_r_n
lea eax, [esp + 0x230]
push 0x1001
push eax
call dword [sym.imp.MSVCR110.dll__snprintf]
add esp, 0xc
jmp 0x102f50de
cmp byte [esi], 0x2f
je 0x102f50ad
push dword [edi + 0xc]
push edi
call sym.php5.dll_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x102f5039
push edi
call sym.php5.dll_xmlNanoFTPGetConnection
add esp, 4
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
je 0x102f5039
push esi
push str.LIST__L__s_r_n
lea eax, [esp + 0x234]
push 0x1001
push eax
call dword [sym.imp.MSVCR110.dll__snprintf]
add esp, 0x10
push ebp
lea ebp, [esp + 0x230]
mov byte [esp + 0x1230], bl
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x102f50f0
push 0
sub ebp, ecx
push ebp
lea eax, [esp + 0x238]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x102f5135
push str.send_failed
push 0
push 9
call fcn.10269820
add esp, 0xc
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
jmp 0x102f5292
push edi
call fcn.102f59a0
mov esi, eax
add esp, 4
cmp esi, 1
je 0x102f5157
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
neg esi
mov eax, esi
jmp 0x102f5292
mov eax, dword [edi + 0x30]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x130]
push ecx
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x13c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x140], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x102f5286
jne 0x102f51d8
push edi
call sym.php5.dll_xmlNanoFTPCheckResponse
add esp, 4
test eax, eax
js 0x102f5286
cmp eax, 2
jne 0x102f5260
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x102f5292
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [esp + 0x238]
add eax, ebx
push eax
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
js 0x102f5275
add ebx, ebp
cmp ebx, 0x1001
jae 0x102f52b2
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov byte [esp + ebx + 0x230], 0
xor esi, esi
nop
push ebp
lea eax, [esp + 0x234]
add eax, esi
push edi
push eax
call fcn.102f53e0
add esp, 0xc
add esi, eax
test eax, eax
jg 0x102f5220
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
sub ebx, esi
lea eax, [esp + 0x230]
add eax, esi
push ebx
push eax
lea eax, [esp + 0x238]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
test ebp, ebp
jne 0x102f5157
push edi
call sym.php5.dll_xmlNanoFTPCloseConnection
add esp, 4
xor eax, eax
jmp 0x102f5299
push str.recv
push 0
push 9
call fcn.10269820
add esp, 0xc
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1234]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x1228
ret
call fcn.10311d44
int3