Function at 0x402e90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
mov eax, dword [esp + 0x38]
add esp, 4
xor ebp, ebp
mov edi, eax
test eax, eax
jle 0x402fad
mov ecx, dword fs:[0x2c]
mov edx, dword [0x40a428]
mov ebx, dword [ecx + edx*4]
mov eax, dword [ebx + 0xf8c0]
test eax, eax
je 0x402f03
push 2
push 0
lea esi, [ebx + 0xf8c8]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402f03
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageA]
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0xf8e4]
push 0
push edi
lea ecx, [ebp + eax]
push ecx
push edx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f8f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x40315f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add esp, 4
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_difftime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
sub ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul dword [0x4080d0]
fsubp st(1)
fild dword [0x409020]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x40315f
jmp 0x402fa1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll__ftime]
add esp, 4
sub edi, esi
add ebp, esi
test edi, edi
jg 0x402ec5
mov eax, dword [esp + 0x34]
sub eax, edi
push 1
push 0x14
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x402fd9
mov eax, 0xffffff9c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
mov edi, str.AUTEKEND
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x40311e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x40a428]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0xf8c0]
test eax, eax
je 0x40306c
push 2
push 0
lea esi, [ebx + 0xf8c8]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40306c
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageA]
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0xf8e4]
push 0
push edi
lea eax, [ebp + edx]
push eax
push ecx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x403100
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x403136
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll__ftime]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add esp, 4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_difftime]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
and edx, 0xffff
and eax, 0xffff
sub eax, edx
add esp, 8
mov dword [esp + 0x30], eax
mov eax, dword [0x409020]
fild dword [esp + 0x30]
cdq
fmul dword [0x4080d0]
sub eax, edx
sar eax, 1
fsubp st(1)
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x403151
jmp 0x403112
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__ftime]
add esp, 4
sub edi, esi
add ebp, esi
test edi, edi
jg 0x40302e
mov ebx, dword [esp + 0x34]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret 8