Function at 0x4a39e4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3c74
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
sub cl, 1
jb 0x4a3a1a
je 0x4a3a92
jmp 0x4a3c59
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 1
mov byte [ebp - 0x10e], 0
push 0
push 3
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4a3c59
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x4a3c59
cmp byte [ebp - 0x10f], 0
jne 0x4a3c59
mov byte [ebp - 5], 1
jmp 0x4a3c59
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 2
mov byte [ebp - 0x10e], 0
mov byte [ebp - 0x10d], 2
push 0
push 4
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4a3c59
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x4a3c59
cmp byte [ebp - 0x10f], 2
jne 0x4a3c59
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x50]
call fcn.00404c74
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x54]
call fcn.00404c74
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
mov byte [ebp - 0x110], 1
mov eax, dword [ebp - 0xc]
call fcn.00404e9c
mov ebx, eax
mov byte [ebp - 0x10f], bl
mov esi, ebx
and esi, 0xff
sub esi, 1
jno 0x4a3b59
call fcn.00403c48
test esi, esi
jl 0x4a3b7d
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx]
mov edx, ebx
add edx, 2
jno 0x4a3b72
call fcn.00403c48
mov byte [ebp + edx - 0x110], al
inc ebx
dec esi
jne 0x4a3b60
mov eax, dword [ebp - 0x10]
call fcn.00404e9c
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404e9c
add eax, 2
jno 0x4a3b99
call fcn.00403c48
mov byte [ebp + eax - 0x110], bl
mov eax, dword [ebp - 0xc]
call fcn.00404e9c
add eax, 2
jno 0x4a3bb2
call fcn.00403c48
movzx esi, byte [ebp + eax - 0x110]
sub esi, 1
jno 0x4a3bc4
call fcn.00403c48
test esi, esi
jl 0x4a3bf7
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00404e9c
add eax, 3
jno 0x4a3bdd
call fcn.00403c48
add eax, ebx
jno 0x4a3be6
call fcn.00403c48
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx]
mov byte [ebp + eax - 0x110], dl
inc ebx
dec esi
jne 0x4a3bcb
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404e9c
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00404e9c
add ebx, eax
jno 0x4a3c14
call fcn.00403c48
add ebx, 3
jno 0x4a3c1e
call fcn.00403c48
push ebx
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4a3c59
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
inc eax
je 0x4a3c59
cmp byte [ebp - 0x10f], 0
jne 0x4a3c59
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3c7b
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c00
ret