Function at 0x4dae54
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, 0xfffffa8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x548], ebx
mov dword [ebp - 0x54c], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4db0e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4db0f0
mov eax, ebx
call fcn.004093bc
mov esi, eax
test esi, esi
jne 0x4dae99
mov esi, ebx
jmp 0x4dae9c
lea esi, [ebx + 7]
mov dl, 0x2f
mov eax, esi
call fcn.004093a8
mov ebx, eax
test ebx, ebx
jne 0x4daec7
mov edx, 0x4db0f8
lea eax, [ebp - 0x141]
call fcn.00409244
lea eax, [ebp - 0x6d]
mov edx, esi
call fcn.00409244
jmp 0x4daee9
lea eax, [ebp - 0x141]
mov edx, ebx
call fcn.00409244
mov ecx, ebx
sub ecx, esi
lea eax, [ebp - 0x6d]
mov edx, esi
call fcn.004072b4
sub ebx, esi
mov byte [ebp + ebx - 0x6d], 0
lea eax, [ebp - 0x6d]
mov dl, 0x3a
call fcn.004093a8
mov ebx, eax
test ebx, ebx
jne 0x4daf08
mov edx, 0x4db0fc
lea eax, [ebp - 0x78]
call fcn.00409244
jmp 0x4daf16
lea edx, [ebx + 1]
lea eax, [ebp - 0x78]
call fcn.00409244
mov byte [ebx], 0
lea eax, [ebp - 0x548]
lea edx, [ebp - 0x78]
mov ecx, 0xb
call fcn.004043c8
mov eax, dword [ebp - 0x548]
push eax
lea eax, [ebp - 0x54c]
lea edx, [ebp - 0x6d]
mov ecx, 0x65
call fcn.004043c8
mov edx, dword [ebp - 0x54c]
mov eax, edi
pop ecx
call fcn.004d9574
mov ebx, eax
test ebx, ebx
jg 0x4daf5f
or ebx, 0xffffffff
jmp 0x4db0c2
push 3
lea eax, [ebp - 0x141]
mov dword [ebp - 0x56c], eax
mov byte [ebp - 0x568], 6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x574], eax
mov dword [ebp - 0x570], edx
lea eax, [ebp - 0x574]
mov dword [ebp - 0x564], eax
mov byte [ebp - 0x560], 0x10
lea eax, [ebp - 0x6d]
mov dword [ebp - 0x55c], eax
mov byte [ebp - 0x558], 6
lea eax, [ebp - 0x78]
mov dword [ebp - 0x554], eax
mov byte [ebp - 0x550], 6
lea ecx, [ebp - 0x56c]
mov edx, 0x4db100
lea eax, [ebp - 0x543]
call fcn.004098b8
push 0
lea eax, [ebp - 0x543]
call fcn.00409208
push eax
lea eax, [ebp - 0x543]
push eax
push ebx
call sub.wsock32.dll_send
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0041e428
lea edx, [ebp - 0x543]
mov ecx, 0x400
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x543]
push eax
push ebx
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x400
jl 0x4db035
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4daff7
mov edx, ebx
mov eax, 5
call fcn.004db5d0
push 0
push 0x400
lea eax, [ebp - 0x543]
push eax
push ebx
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
mov edx, ebx
mov eax, 5
call fcn.004db5d0
push 0
push 0x400
lea eax, [ebp - 0x543]
push eax
push ebx
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
push 2
push ebx
call sub.wsock32.dll_shutdown
cmp byte [ebp - 0x543], 0
jne 0x4db0bf
cmp byte [ebp - 0x542], 0x11
jne 0x4db0bf
cmp byte [ebp - 0x541], 0x11
jne 0x4db0bf
cmp byte [ebp - 0x540], 0x11
jne 0x4db0bf
lea edx, [ebp - 0x53f]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.004072b4
mov ebx, dword [ebp - 8]
jmp 0x4db0c2
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db0e7
lea eax, [ebp - 0x54c]
mov edx, 2
call fcn.0040417c
ret