Function at 0x41e24b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0043b0f0
push ebx
push edi
lea edi, [esi + 0x4c]
push edi
mov eax, esi
call fcn.0041e5b1
test eax, eax
jne 0x41e27e
push edi
push esi
call fcn.0041e5d9
test eax, eax
je 0x41e27e
mov eax, 0x190
jmp 0x41e559
cmp dword [ebp + 0x14], 0
je 0x41e554
cmp dword [esi + 4], 0xffffffff
je 0x41e2a2
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
jne 0x41e2a2
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
je 0x41e50d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
push dword [esi + 8]
push esi
push str._08X_peer_data_conn_closed_or_offset_not_equal__old__I64d__new__I64d_n
push 8
push dword [0x467474]
call fcn.00429210
push 0xfff
lea eax, [ebp - 0x1143]
push 0
push eax
mov byte [ebp - 0x1144], 0
call fcn.0043ab70
mov eax, dword [esi + 4]
add esp, 0x2c
cmp eax, 0xffffffff
je 0x41e2fb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dcea
pop ecx
push dword [esi]
mov ebx, str.TYPE_I_r_n
call fcn.0041dc34
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dcea
pop ecx
pop ecx
cmp eax, 0xc8
je 0x41e33f
push 0x457868
push 0x80
push dword [0x467474]
call fcn.00429210
add esp, 0xc
mov eax, 0x191
jmp 0x41e559
push dword [esi]
mov ebx, str.PASV_r_n
call fcn.0041dc34
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dcea
pop ecx
pop ecx
cmp eax, 0xe3
jne 0x41e335
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x143]
push ebx
push eax
mov byte [ebp - 0x144], bl
call fcn.0043ab70
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
xor edx, edx
stosb byte es:[edi], al
cmp byte [ebp - 0x1144], bl
je 0x41e41a
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x1144]
mov dword [ebp - 0xc], ecx
movsx ecx, byte [eax]
sub ecx, 0x28
je 0x41e412
dec ecx
je 0x41e40e
sub ecx, 3
jne 0x41e3d8
inc edx
cmp edx, 5
mov byte [eax], 0x2e
jge 0x41e415
lea ecx, [edx - 1]
cmp ecx, 3
ja 0x41e3ec
mov edi, dword [ebp - 0xc]
mov cl, byte [eax]
inc dword [ebp - 0xc]
mov byte [edi], cl
jmp 0x41e415
cmp edx, 5
jne 0x41e3fd
mov edi, dword [ebp - 8]
mov cl, byte [eax]
inc dword [ebp - 8]
mov byte [edi], cl
jmp 0x41e415
cmp edx, 6
jne 0x41e415
mov edi, dword [ebp - 0x10]
mov cl, byte [eax]
inc dword [ebp - 0x10]
mov byte [edi], cl
jmp 0x41e415
xor edx, edx
jmp 0x41e415
xor edx, edx
inc edx
inc eax
cmp byte [eax], bl
jne 0x41e3bf
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x41e274
push 2
pop eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043bd5b
mov edi, eax
lea eax, [ebp - 0x40]
push eax
shl edi, 8
call fcn.0043bd5b
pop ecx
pop ecx
add eax, edi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41e274
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x41e4ce
push dword [ebp + 0xc]
lea eax, [ebp - 0x1144]
push dword [ebp + 8]
push str.REST__d_r_n
push eax
call fcn.0043bf32
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0041dc34
push dword [esi]
mov edi, ebx
call fcn.0041dcea
add esp, 0x18
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 3
jne 0x41e335
push dword [esi + 0x3c]
lea eax, [ebp - 0x1144]
push str.RETR__s_r_n
push eax
call fcn.0043bf32
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0041dc34
push dword [esi]
mov edi, ebx
call fcn.0041dcea
add esp, 0x14
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 1
je 0x41e50d
mov eax, 0x193
jmp 0x41e559
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp dword [ebp + 0x14], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
jle 0x41e554
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
push 0
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x41e55f
cdq
add dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
adc dword [esi + 0xc], edx
add dword [edi], ebx
cmp dword [edi], eax
jl 0x41e525
mov eax, 0xc8
pop edi
pop ebx
leave
ret 0x14
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 4], 0xffffffff
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x1f3
jmp 0x41e559