Function at 0x41dbf8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052a4
mov eax, dword [ebp - 8]
call fcn.004052a4
mov eax, dword [ebp + 0xc]
call fcn.004052a4
xor eax, eax
push ebp
push 0x41de96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, 0x41deb0
call fcn.00404e78
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x564]
call fcn.004035bc
xor eax, eax
push ebp
push 0x41dc88
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
lea eax, [ebp - 0x564]
call fcn.00403ac0
call fcn.00402f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41dc9c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041db28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x41de68
xor edx, edx
push ebp
push 0x41de61
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
call fcn.00404e24
push dword [ebp - 0xc]
push 0x41dec0
push dword [ebp - 8]
push 0x41ded0
push 0x41dee4
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004051b8
push dword [ebp - 0xc]
push 0x41def0
push dword [ebp - 4]
push 0x41dee4
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004051b8
push dword [ebp - 0xc]
push 0x41df00
push 0x41dee4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051b8
push dword [ebp - 0xc]
push 0x41df1c
push 0x41dee4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051b8
push dword [ebp - 0xc]
push 0x41df3c
push 0x41dee4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051b8
lea eax, [ebp - 0xc]
mov edx, 0x41dee4
call fcn.004050f0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41dd6f
sub eax, 4
mov eax, dword [eax]
push 0
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_send
xor ebx, ebx
lea eax, [ebp - 0x10]
call fcn.00404e24
lea eax, [ebp - 0x418]
xor ecx, ecx
mov edx, 0x400
call fcn.00403900
push 0
push 0x400
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
test esi, esi
jle 0x41de26
lea edi, [ebp - 0x418]
test bl, bl
jne 0x41de09
cmp byte [edi], 0xd
je 0x41ddd0
cmp byte [edi], 0xa
jne 0x41ddee
lea eax, [ebp - 0x568]
movzx edx, byte [edi]
call fcn.0040500c
mov edx, dword [ebp - 0x568]
lea eax, [ebp - 0x10]
call fcn.004050f0
jmp 0x41ddf6
lea eax, [ebp - 0x10]
call fcn.00404e24
mov eax, dword [ebp - 0x10]
mov edx, 0x41df5c
call fcn.0040524c
jne 0x41de22
mov bl, 1
jmp 0x41de22
push 0
mov edx, edi
mov ecx, 1
lea eax, [ebp - 0x564]
call fcn.00403744
call fcn.00402f98
inc edi
dec esi
jne 0x41ddc2
cmp dword [ebp - 0x18], 0
jg 0x41dd89
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00404e78
lea eax, [ebp - 0x564]
call fcn.00403764
call fcn.00402f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41de68
mov eax, dword [ebp - 0x14]
call fcn.0041dbf0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41de9d
lea eax, [ebp - 0x568]
call fcn.00404e24
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404e48
lea eax, [ebp + 0xc]
call fcn.00404e24
ret