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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov ebp, 0x68
push edi
mov ecx, ebp
xor eax, eax
mov edi, 0x40af30
rep stosd dword es:[edi], eax
mov ecx, 0x1a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov byte [esp + 0x25], al
mov eax, dword [0x40af28]
xor edx, edx
xor esi, esi
test eax, eax
mov dword [0x40b0d0], edx
mov dword [esp + 0x18], 0x54504e54
mov dword [esp + 0x1c], 0x4e54504e
mov word [esp + 0x20], bp
mov word [esp + 0x22], 1
jle 0x4014fd
mov ebp, dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
mov edi, 0x40b0d8
push 0xd431
mov dword [esp + 0x88], 0xffffffff
call ebp
mov edx, dword [edi]
mov word [esp + 0x82], ax
lea eax, [esp + 0x80]
push 0x10
push eax
push 0
lea ecx, [esp + 0x24]
push 0x68
push ecx
push edx
mov word [esp + 0x98], 2
call ebx
mov eax, dword [0x40af28]
inc esi
add edi, 8
cmp esi, eax
jl 0x4014a9
mov edx, dword [0x40b0d0]
mov ebp, 0x68
test eax, eax
mov dword [esp + 0x10], 0
jle 0x4016e5
mov ebx, 0x40b0d8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x90]
push eax
mov eax, dword [ebx]
push ecx
push 0
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4016c5
cmp dword [esp + 0x18], 0x54504e54
jne 0x4016c5
cmp dword [esp + 0x1c], 0x4e54504e
jne 0x4016c5
cmp word [esp + 0x20], bp
jne 0x4016c5
cmp word [esp + 0x22], 1
jne 0x4016c5
mov al, byte [esp + 0x27]
test al, al
jne 0x4015a8
mov al, byte [esp + 0x28]
test al, al
jne 0x4015a8
mov al, byte [esp + 0x29]
test al, al
jne 0x4015a8
mov al, byte [esp + 0x2a]
test al, al
jne 0x4015a8
mov al, byte [esp + 0x2b]
test al, al
jne 0x4015a8
mov al, byte [esp + 0x2c]
test al, al
je 0x401512
mov al, byte [esp + 0x25]
cmp al, 1
je 0x4015b8
cmp al, 3
jne 0x401512
mov edi, dword [0x40b0d0]
cmp edi, 8
jge 0x401512
mov esi, str.TinyES3
lea eax, [esp + 0x3d]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4015f4
test cl, cl
je 0x4015f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4015f4
add eax, 2
add esi, 2
test cl, cl
jne 0x4015d0
xor eax, eax
jmp 0x4015f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401637
mov esi, str.TinyELCA2S3
lea eax, [esp + 0x3d]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40162a
test cl, cl
je 0x401626
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40162a
add eax, 2
add esi, 2
test cl, cl
jne 0x401606
xor eax, eax
jmp 0x40162f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401512
lea eax, [edi + edi*2]
mov edx, dword [esp + 0x27]
lea eax, [edi + eax*4]
shl eax, 2
inc edi
lea ecx, [eax + 0x40af30]
mov dword [0x40b0d0], edi
mov dword [ecx], edx
mov dx, word [esp + 0x2b]
mov word [ecx + 4], dx
mov ecx, dword [esp + 0x2d]
mov edx, dword [esp + 0x39]
mov dword [eax + 0x40af38], ecx
mov dword [eax + 0x40af3c], edx
mov edx, dword [esp + 0x3d]
lea ecx, [eax + 0x40af40]
lea eax, [eax + 0x40af51]
mov dword [ecx], edx
mov edx, dword [esp + 0x41]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x45]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x49]
mov dword [ecx + 0xc], edx
mov dl, byte [esp + 0x4d]
mov byte [ecx + 0x10], dl
mov ecx, dword [esp + 0x4e]
mov edx, dword [esp + 0x52]
mov dword [eax], ecx
mov ecx, dword [esp + 0x56]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5a]
mov dword [eax + 8], ecx
mov cl, byte [esp + 0x5e]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
jmp 0x401512
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40af28]
inc eax
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401512
mov edx, dword [0x40b0d0]
neg edx
sbb edx, edx
pop edi
neg edx
dec edx
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x90
ret