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

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0059cbb0
push 0xffffffffffffffff
push 0x5e62ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10c], ebx
jne 0x4b94df
mov dword [esi + 0x308], 5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.0059ca15
add ebp, 0x2004
leave
ret
mov ecx, esi
call fcn.004b9081
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x4b94f9
mov dword [esi + 0x308], 6
jmp 0x4b94ba
push str.MAIL_FROM:__
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi + 0x10c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x1000]
push eax
call edi
push 0x60a158
lea eax, [ebp + 0x1000]
push eax
call edi
lea eax, [ebp + 0x1000]
push ebx
push eax
call fcn.0059bf90
pop ecx
push eax
lea eax, [ebp + 0x1000]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4b9570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x304], eax
mov dword [esi + 0x308], 4
jmp 0x4b94ba
push ebx
push 0x1000
lea eax, [ebp]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
and dword [ebp - 0x14], 0
mov ebx, eax
lea ecx, [esi + 0x2bc]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov byte [ebp + ebx], 0
sar eax, 2
cmp dword [ebp - 0x14], eax
jae 0x4b9677
push dword [ebp - 0x14]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
push 0x60a154
push 0
call fcn.005a43d6
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4b95fa
push dword [ebp - 0x14]
lea ecx, [esi + 0x2bc]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push str.RCPT_TO:__
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x18]
lea eax, [ebp + 0x1000]
push eax
call edi
push 0x602a28
lea eax, [ebp + 0x1000]
push eax
call edi
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.0059bf90
pop ecx
push eax
lea eax, [ebp + 0x1000]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b9555
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [ebp + ebx]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
add ebx, eax
inc dword [ebp - 0x14]
jmp 0x4b958c
and dword [ebp - 0x14], 0
lea ecx, [esi + 0x2d4]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
cmp dword [ebp - 0x14], eax
jae 0x4b9766
push dword [ebp - 0x14]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
push 0x60a154
push 0
call fcn.005a43d6
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4b96e4
push dword [ebp - 0x14]
lea ecx, [esi + 0x2bc]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push str.RCPT_TO:__
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x18]
lea eax, [ebp + 0x1000]
push eax
call edi
push 0x602a28
lea eax, [ebp + 0x1000]
push eax
call edi
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.0059bf90
pop ecx
push eax
lea eax, [ebp + 0x1000]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b9555
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [ebp + ebx]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
add ebx, eax
inc dword [ebp - 0x14]
mov byte [ebp + ebx], 0
jmp 0x4b967b
and dword [ebp - 0x14], 0
lea ecx, [esi + 0x2ec]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
cmp dword [ebp - 0x14], eax
jae 0x4b9855
push dword [ebp - 0x14]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
push 0x60a154
push 0
call fcn.005a43d6
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4b97d3
push dword [ebp - 0x14]
lea ecx, [esi + 0x2bc]
call fcn.004b8c9a
mov eax, dword [eax]
mov eax, dword [eax + 4]
push 0x60a154
push eax
call fcn.005a43d6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push str.RCPT_TO:__
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x18]
lea eax, [ebp + 0x1000]
push eax
call edi
push 0x602a28
lea eax, [ebp + 0x1000]
push eax
call edi
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.0059bf90
pop ecx
push eax
lea eax, [ebp + 0x1000]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b9555
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [ebp + ebx]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
add ebx, eax
inc dword [ebp - 0x14]
mov byte [ebp + ebx], 0
jmp 0x4b976a
push 0
mov edi, str.DATA_r_n
push edi
call fcn.0059bf90
pop ecx
push eax
push edi
push dword [esi + 0x2b8]
mov edi, dword [sym.imp.WS2_32.dll_send]
call edi
cmp eax, 0xffffffff
je 0x4b9555
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [ebp + ebx]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
push 0
push dword [ebp - 0x1c]
add ebx, eax
mov byte [ebp + ebx], 0
call fcn.0059bf90
pop ecx
push eax
push dword [ebp - 0x1c]
push dword [esi + 0x2b8]
call edi
cmp eax, 0xffffffff
jne 0x4b98e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x1c], 0
mov dword [esi + 0x304], eax
mov dword [esi + 0x308], 4
je 0x4b94ba
push dword [ebp - 0x1c]
call fcn.00564e3f
pop ecx
jmp 0x4b94ba
push 0
push dword [esi + 0x118]
call fcn.0059bf90
pop ecx
push eax
push dword [esi + 0x118]
push dword [esi + 0x2b8]
call edi
cmp eax, 0xffffffff
je 0x4b9555
push 0
push str._r_n._r_n
call fcn.0059bf90
pop ecx
push eax
push str._r_n._r_n
push dword [esi + 0x2b8]
call edi
cmp eax, 0xffffffff
je 0x4b9555
push 0
mov eax, 0x1000
sub eax, ebx
push eax
lea eax, [ebp + ebx]
push eax
push dword [esi + 0x2b8]
call dword [sym.imp.WS2_32.dll_recv]
add eax, ebx
cmp dword [ebp - 0x1c], 0
mov byte [ebp + eax], 0
je 0x4b9963
push dword [ebp - 0x1c]
call fcn.00564e3f
pop ecx
mov al, 1
jmp 0x4b94bc