Function at 0x10027480
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 + 0x18], 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 + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
ja 0x1002769d
mov ebp, dword [esp + 0x14]
sub ebp, edi
dec ebp
jns 0x100274db
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x1002750a
add edi, esi
push 0x1d4c0
push ebp
push edi
call fcn.10027ba0
test eax, eax
mov dword [esp + 0x3c], eax
je 0x10027678
jmp 0x1002754e
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.10027780
test eax, eax
je 0x100276cf
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10027539
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002767c
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 0x100275ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x100275da
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x100275da
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.100047c0
add esp, 0x14
test eax, eax
je 0x100276df
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 0x100275e2
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 0x100275ee
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
add ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x100275ee
mov ebx, dword [esp + 0x10]
cmp eax, 1
jl 0x100276fd
test esi, esi
je 0x10027603
mov byte [ebx + esi], 0
mov eax, dword [esp + 0x3c]
sub ebp, eax
jne 0x1002765a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x48]
add eax, edi
push eax
mov dword [esp + 0x18], eax
call fcn.1017c342
add esp, 4
mov ebp, eax
test esi, esi
je 0x10027643
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 0x10027658
push eax
call fcn.1017c36b
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.100600d0
mov ebx, eax
add esp, 0xc
neg ebx
sbb ebx, ebx
inc ebx
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x100274bb
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 [0x10201328]
test eax, eax
je 0x100276c3
push str.CTransfer::RecvUntilTerminator:_TMGateway:_Timed_Out_waiting_for_response_from_SMTP_server
push str.CTransfer
push 4
push 0x10200a94
call fcn.1008b760
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 0x10027709
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