Function at 0x1002b9f0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
not ecx
dec ecx
xor edi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0xea60
ja 0x1002bc25
mov ebp, dword [esp + 0x18]
sub ebp, edi
dec ebp
jns 0x1002ba4b
xor ebp, ebp
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [ecx + 0x44], eax
je 0x1002ba92
mov edx, dword [esp + 0x34]
cmp edx, dword [ecx + 0x28]
jne 0x1002ba6a
mov eax, 1
jmp 0x1002ba71
cmp edx, dword [ecx + 0x2c]
jne 0x1002ba71
xor eax, eax
mov ecx, dword [esp + 0x14]
push 0x1d4c0
add edi, esi
push eax
push ebp
push edi
call fcn.1002c0d0
test eax, eax
mov dword [esp + 0x3c], eax
je 0x1002bc00
jmp 0x1002bad6
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.1002bd00
test eax, eax
je 0x1002bc57
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1002bac1
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002bc04
mov ecx, dword [esp + 0x34]
add edi, esi
push 0
push ebp
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x1002bb72
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1002bb62
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x1002bb62
mov eax, dword [eax + 0x2c]
lea edx, [esp + 0x24]
push 0
push edx
lea ecx, [esp + 0x44]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edi
call fcn.10004810
add esp, 0x14
test eax, eax
je 0x1002bc67
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add ecx, ebx
mov byte [ecx + edx], 0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x1002bb6a
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
add ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x1002bb76
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
add ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x1002bb76
mov ebx, dword [esp + 0x10]
cmp eax, 1
jl 0x1002bc85
test esi, esi
je 0x1002bb8b
mov byte [ebx + esi], 0
mov eax, dword [esp + 0x3c]
sub ebp, eax
jne 0x1002bbe2
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
add eax, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.1023d8fc
add esp, 4
mov ebp, eax
test esi, esi
je 0x1002bbcb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x44]
mov esi, ebp
mov eax, dword [edi]
test eax, eax
je 0x1002bbe0
push eax
call fcn.1023d925
add esp, 4
mov dword [edi], ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
sub ebx, eax
push eax
add ebx, esi
push ecx
push ebx
call fcn.1006c180
mov ebx, eax
add esp, 0xc
neg ebx
sbb ebx, ebx
inc ebx
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1002ba2b
mov eax, dword [esp + 0x4c]
mov byte [edi + esi], 0
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 0x20
mov byte [edi + esi], 0
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002bc4b
push str.CTransfer::RecvUntilTerminator:_TMGateway:_Timed_Out_waiting_for_response_from_SMTP_server
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20
mov byte [edi + esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add edx, eax
pop edi
pop esi
pop ebp
mov byte [edx + ecx], 0
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20
test esi, esi
je 0x1002bc91
mov edx, dword [esp + 0x38]
mov byte [ebx + edx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20