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

Disassembly:
mov eax, 0x1228
call fcn.00630750
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0x1224], eax
mov eax, dword [esp + 0x1230]
push ebx
push esi
mov esi, dword [esp + 0x1240]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1238]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1240]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
test edi, edi
je 0x4b40fe
test esi, esi
jne 0x4b3ec7
push dword [edi + 0xc]
push edi
call sym.KomManager.exe_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x4b40fe
push edi
call sym.KomManager.exe_xmlNanoFTPGetConnection
add esp, 4
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
je 0x4b40fe
push str.LIST__L_r_n
lea eax, [esp + 0x230]
push 0x1001
push eax
call fcn.0043df20
add esp, 0xc
jmp 0x4b3f11
cmp byte [esi], 0x2f
je 0x4b3ee1
push dword [edi + 0xc]
push edi
call sym.KomManager.exe_xmlNanoFTPCwd
add esp, 8
cmp eax, 1
jl 0x4b40fe
push edi
call sym.KomManager.exe_xmlNanoFTPGetConnection
add esp, 4
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
je 0x4b40fe
push esi
push str.LIST__L__s_r_n
lea eax, [esp + 0x234]
push 0x1001
push eax
call fcn.0043df20
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 0x4b3f23
push 0
sub ebp, ecx
lea eax, [esp + 0x234]
push ebp
push eax
push dword [edi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x4b3f6f
push str.send_failed
push 0
push 9
call fcn.00472980
add esp, 0xc
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x30], 0xffffffff
mov eax, esi
jmp 0x4b401b
push edi
call fcn.004b4850
mov esi, eax
add esp, 4
cmp esi, 1
je 0x4b3f98
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
neg esi
mov dword [edi + 0x30], 0xffffffff
mov eax, esi
jmp 0x4b401b
mov eax, dword [edi + 0x30]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x134], eax
push ecx
push 0
lea ecx, [esp + 0x138]
mov dword [esp + 0x38], eax
push ecx
inc eax
mov dword [esp + 0x30], 1
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x140], 1
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x4b40e6
jne 0x4b4034
push edi
call sym.KomManager.exe_xmlNanoFTPCheckResponse
add esp, 4
test eax, eax
js 0x4b40e6
cmp eax, 2
jne 0x4b40bf
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x30], 0xffffffff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1224]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x1228
ret
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 + 0x1c], ebp
test ebp, ebp
js 0x4b40d5
add ebx, ebp
cmp ebx, 0x1001
jae 0x4b4119
mov edi, dword [esp + 0x10]
xor esi, esi
mov ebp, dword [esp + 0x14]
mov byte [esp + ebx + 0x230], 0
nop dword [eax + eax]
push ebp
lea eax, [esp + 0x234]
add eax, esi
push edi
push eax
call fcn.004b4430
add esp, 0xc
add esi, eax
test eax, eax
jg 0x4b4080
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x230]
mov ebp, dword [esp + 0x1c]
sub ebx, esi
add eax, esi
push ebx
push eax
lea eax, [esp + 0x238]
push eax
call fcn.00633990
add esp, 0xc
test ebp, ebp
jne 0x4b3f98
push edi
call sym.KomManager.exe_xmlNanoFTPCloseConnection
add esp, 4
jmp 0x4b4019
push str.recv
push 0
push 9
call fcn.00472980
add esp, 0xc
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x30], 0xffffffff
or eax, 0xffffffff
jmp 0x4b401b
mov ecx, dword [esp + 0x1230]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0062fc3e
add esp, 0x1228
ret
call fcn.0062fd7e
int3