Function at 0x41dccc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
push ebx
mov dword [ebp - 0x18], ecx
push 0x405830
lea ecx, [ebp - 0x2c]
call fcn.0044efe3
mov al, byte [0x4579ff]
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
je 0x41dd04
movsx eax, al
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
mov esi, dword [0x458858]
push edi
xor edi, edi
cmp esi, edi
je 0x41dd53
push 0xc
push 2
mov ecx, esi
call fcn.00414777
test al, al
je 0x41dd53
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push eax
push 0x405814
push 0xc
lea ecx, [ebp - 0x840]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
mov ebx, dword [ebp - 0x18]
push 0x8a
push 0x405788
mov ecx, ebx
call fcn.004161ec
push edi
push edi
mov esi, 0x8000
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0044ecce
push edi
push edi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0044ecce
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp byte [ebx + 0x44], 0
je 0x41ddbc
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004157e7
jmp 0x41ddca
push edi
push dword [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
je 0x41dec3
cmp eax, 0xffffffff
je 0x41dec3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lea esi, [edx + ecx]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x30], eax
je 0x41dda1
cmp byte [0x457918], 0
je 0x41de00
push 1
push esi
mov ecx, ebx
call fcn.004161ec
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x41de0c
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
jne 0x41de8c
movsx eax, byte [esi]
push eax
call fcn.0043d9b3
test eax, eax
pop ecx
je 0x41de77
movsx eax, byte [esi]
sub eax, 8
je 0x41de6d
dec eax
dec eax
jne 0x41de9f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004136fa
push eax
mov ecx, ebx
call fcn.0041d326
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x38]
inc bl
call fcn.00413720
test bl, bl
jne 0x41deae
mov ebx, dword [ebp - 0x18]
jmp 0x41de9c
cmp dword [ebp - 8], edi
jbe 0x41de9f
dec dword [ebp - 8]
jmp 0x41de9f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add ecx, eax
mov al, byte [esi]
mov byte [ecx + edx], al
inc dword [ebp - 8]
jmp 0x41de9f
cmp byte [esi], 0xa
jne 0x41de9f
mov ecx, ebx
call fcn.00416e30
mov byte [ebp - 1], 0
mov dword [ebp - 8], edi
inc esi
cmp esi, dword [ebp - 0x30]
jne 0x41dded
jmp 0x41dda1
lea ecx, [ebp - 0x28]
call fcn.00414f80
lea ecx, [ebp - 0x14]
call fcn.00414f80
mov ebx, dword [ebp - 0x18]
jmp 0x41ded3
lea ecx, [ebp - 0x28]
call fcn.00414f80
lea ecx, [ebp - 0x14]
call fcn.00414f80
mov esi, dword [0x458858]
cmp esi, edi
je 0x41df13
push 0xc
push 1
mov ecx, esi
call fcn.00414777
test al, al
je 0x41df13
push 0x40576c
push 0xc
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
pop ecx
pop ecx
mov ecx, eax
call fcn.0044ef88
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x41df28
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx + 0x10], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044f049
pop ebx
leave
ret