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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x449868]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44c974], 0
push ebx
push esi
push edi
mov dword [ebp - 0x428], 0x10
mov ebx, 0x44c978
mov dword [ebp - 0x420], 0
jbe 0x40e088
mov edi, dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [ebx]
mov eax, dword [0x44c2ec]
cmp ecx, eax
jne 0x40de87
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e09f
push 0
lea eax, [ebp - 0x404]
push 0x441a4c
push eax
mov dword [ebp - 0x408], 1
call fcn.0041b891
add esp, 8
add eax, 4
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call edi
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x40e09f
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [ebx]
mov esi, eax
mov dword [ebp - 0x424], esi
xor edi, edi
mov ecx, 0x44c374
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x40dec7
add ecx, 0x8c
inc edi
cmp ecx, 0x44c8ec
jne 0x40deb0
xor edi, edi
jmp 0x40ded3
imul edi, edi, 0x8c
add edi, 0x44c2f4
mov dword [ebp - 0x408], 4
test esi, esi
jg 0x40e099
test edi, edi
je 0x40dfc1
movzx eax, word [edi + 0x88]
push eax
push dword [edi + 0x84]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push edi
lea eax, [ebp - 0x404]
push str.User__s___Addr:__s_Port:__d___losed..._n
push eax
call fcn.0041b891
add esp, 0x14
cmp byte [ebp - 0x404], 0
mov dword [ebp - 0x424], eax
jne 0x40df2a
xor ecx, ecx
jmp 0x40df3c
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df33
sub ecx, edx
push ecx
lea eax, [ebp - 0x404]
push eax
mov ecx, 0x44c250
call fcn.0040f400
cmp dword [0x44c260], 0x8c
jbe 0x40dfb4
sub esp, 8
lea eax, [ebp - 0x41c]
push eax
mov ecx, 0x44c250
mov byte [ebp - 0x41c], 0xa
call fcn.0040f320
cmp eax, 0xffffffff
jne 0x40dfb4
cmp dword [0x44c264], 0x10
mov eax, 0x44c250
cmovae eax, dword [0x44c250]
dec eax
cmp dword [0x44c264], 0x10
push eax
mov ecx, 0x44c250
cmovae ecx, dword [0x44c250]
push ecx
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x44c250
call fcn.0040f240
mov byte [edi], 0
mov dword [edi + 0x80], 0xffffffff
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [0x44c870]
xor eax, eax
test edx, edx
je 0x40e01d
mov esi, dword [ebx]
mov ecx, 0x44c874
lea esp, [esp]
cmp dword [ecx], esi
je 0x40dfee
inc eax
add ecx, 4
cmp eax, edx
jb 0x40dfe0
jmp 0x40e01d
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x40e016
lea esi, [eax*4 + 0x44c874]
lea esp, [esp]
mov ecx, dword [esi + 4]
mov dword [esi], ecx
mov edx, dword [0x44c870]
inc eax
lea ecx, [edx - 1]
lea esi, [esi + 4]
cmp eax, ecx
jb 0x40e000
dec edx
mov dword [0x44c870], edx
mov edi, dword [ebp - 0x424]
add edi, 4
cmp byte [0x44caa0], 0
je 0x40e062
mov esi, 0x44c374
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40e04c
push 0
push edi
lea ecx, [ebp - 0x408]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_send]
add esi, 0x8c
cmp esi, 0x44c8ec
jne 0x40e034
mov edi, dword [sym.imp.WSOCK32.dll_send]
jmp 0x40e07a
push 0
push edi
mov edi, dword [sym.imp.WSOCK32.dll_send]
lea eax, [ebp - 0x408]
push eax
push dword [0x44c2f0]
call edi
cmp dword [0x44c870], 1
ja 0x40e09f
call fcn.0040f060
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WSOCK32.dll_send]
mov edx, dword [ebp - 0x420]
inc edx
add ebx, 4
mov dword [ebp - 0x420], edx
cmp edx, dword [0x44c974]
jb 0x40de22
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aca0
mov esp, ebp
pop ebp
ret