Function at 0x40c221
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bf38
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x45e0a0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x45e0a0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
call dword [eax + 0x6c]
lea eax, [ebx + 0xe4]
call fcn.00404c0f
lea eax, [ebx + 0x10c]
call fcn.00404c0f
lea eax, [ebx + 0xac]
call fcn.00404c0f
lea eax, [ebx + 0xc8]
call fcn.00404c0f
lea edi, [ebx + 0x100]
call fcn.0040ef21
lea edi, [ebx + 0x128]
call fcn.0040ef21
mov ax, word [ebp + 0xc]
push esi
lea ecx, [ebx + 0x90]
mov word [ebx + 8], ax
call fcn.004031ae
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0xc], eax
je 0x40c8ec
mov esi, ebx
call fcn.0040c118
test eax, eax
je 0x40c8ec
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x40c8c3
push edi
push str._r_n_r_n
push dword [esp + 0x1c]
call fcn.0040ed8f
cmp eax, 0xffffffff
je 0x40c8ec
add eax, 2
push eax
push edi
push dword [esp + 0x1c]
lea esi, [esp + 0xbc]
call fcn.0040edae
lea esi, [esp + 0x20]
mov dword [esp + 0xf8], edi
call fcn.0040eddc
mov edi, 0x454678
push edi
mov byte [esp + 0xfc], 1
call fcn.00434db0
pop ecx
push eax
push edi
lea eax, [esp + 0xb8]
push eax
xor eax, eax
call fcn.0040f188
mov esi, eax
inc esi
inc esi
push esi
push edi
lea eax, [esp + 0xb8]
push eax
call fcn.0040ed8f
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40c5b0
mov eax, dword [esp + 0x10]
sub eax, esi
push eax
push esi
lea eax, [esp + 0xb8]
push eax
lea esi, [esp + 0xd8]
call fcn.0040edae
mov esi, 0x45467c
push esi
mov byte [esp + 0xfc], 2
call fcn.00434db0
pop ecx
push eax
push esi
lea eax, [esp + 0xd4]
push eax
xor eax, eax
call fcn.0040f188
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40c573
push eax
push 0
lea eax, [esp + 0xd4]
push eax
lea esi, [esp + 0xa0]
call fcn.0040edae
mov esi, 0x45466c
push esi
mov byte [esp + 0xfc], 3
call fcn.00434db0
pop ecx
push eax
lea edi, [esp + 0x98]
call fcn.0040f224
push eax
push 0
mov ecx, edi
call fcn.004010ca
push esi
call fcn.00434db0
pop ecx
push 0xffffffffffffffff
push eax
mov ebx, edi
call fcn.0040f292
inc eax
push eax
mov ecx, edi
call fcn.004010ca
cmp dword [esp + 0xa8], 0
je 0x40c55a
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0xd4]
push eax
lea esi, [esp + 0x84]
call fcn.0040edae
mov esi, 0x45466c
push esi
mov byte [esp + 0xfc], 4
call fcn.00434db0
pop ecx
push eax
lea edi, [esp + 0x7c]
call fcn.0040f224
push eax
push 0
mov ecx, edi
call fcn.004010ca
push esi
call fcn.00434db0
pop ecx
push 0xffffffffffffffff
push eax
mov ebx, edi
call fcn.0040f292
inc eax
push eax
mov ecx, edi
call fcn.004010ca
lea eax, [esp + 0x68]
lea ecx, [esp + 0x94]
call fcn.00404d44
mov esi, eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x94]
call fcn.00404d64
mov edi, eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x94]
call fcn.00404d44
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x70]
push eax
call fcn.00410123
mov eax, dword [esp + 0xb4]
add esp, 0x1c
cmp dword [esp + 0xac], 0x10
jae 0x40c502
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x3c]
call fcn.004031cb
mov byte [esp + 0xf8], 5
cmp dword [esp + 0x90], 0x10
mov esi, dword [esp + 0x7c]
jae 0x40c526
lea esi, [esp + 0x7c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040edff
push esi
mov ecx, eax
call fcn.004031ae
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.00401308
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.00401308
push 0
push 1
lea ecx, [esp + 0x9c]
call fcn.00401308
mov ebx, dword [esp + 0x2c]
mov edi, 0x454678
mov esi, dword [esp + 0x10]
add esi, 2
push esi
push edi
lea eax, [esp + 0xb8]
push eax
call fcn.0040ed8f
push 0
push 1
lea ecx, [esp + 0xd4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x100], 1
call fcn.00401308
cmp dword [esp + 0x10], 0xffffffff
jne 0x40c384
push str.host
lea ecx, [esp + 0x3c]
call fcn.004031cb
mov byte [esp + 0xf8], 6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040ef45
mov edi, eax
lea esi, [esp + 0x2c]
call fcn.0040efac
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x23], al
mov byte [esp + 0x100], 1
call fcn.00401308
cmp byte [esp + 0x1b], 0
je 0x40c652
push str.host
lea ecx, [esp + 0x3c]
call fcn.004031cb
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x100], 7
call fcn.0040edff
push dword [esp + 0x34]
mov ecx, eax
call fcn.004031ae
push edi
push 1
lea ecx, [esp + 0x40]
call fcn.00401308
mov esi, dword [esp + 0x14]
push edi
push 0x454688
push esi
call fcn.0040ed8f
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40c74f
push edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
call fcn.00401353
push str.http:__
lea ecx, [esp + 0x7c]
mov byte [esp + 0xfc], 8
call fcn.004031ae
push str.host
lea ecx, [esp + 0x3c]
call fcn.004031cb
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x100], 9
call fcn.0040edff
push 0xffffffffffffffff
push edi
lea esi, [esp + 0x80]
call fcn.00404ca0
push edi
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x100], 8
call fcn.00401308
mov eax, dword [0x45fb34]
mov ecx, 0x45fb34
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
push str.:_ld
push eax
mov byte [esp + 0x104], 0xa
call fcn.00410110
add esp, 0xc
push dword [esp + 0x10]
mov eax, esi
push eax
call fcn.0040ed74
mov edi, dword [esp + 0x1c]
mov eax, esi
mov esi, dword [esp + 0x14]
push eax
call fcn.0040f088
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00402f9a
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.00401308
xor edi, edi
push edi
push 0x454678
push esi
call fcn.0040ed8f
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40c8a1
push 0xf
pop esi
push edi
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], esi
call fcn.00401353
push str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [esp + 0x98]
mov byte [esp + 0xfc], 0xb
call fcn.004031ae
cmp dword [ebx + 0x50], edi
je 0x40c877
cmp dword [ebx + 0x6c], edi
je 0x40c877
push edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], esi
call fcn.00401353
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x3c]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 0xc
call fcn.00401038
push 0x45467c
lea eax, [esp + 0x7c]
push eax
call fcn.0040ed74
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x58]
lea esi, [esp + 0x80]
call fcn.00404ca0
lea eax, [esp + 0x38]
push eax
call fcn.0042d1c0
push str.Proxy_Authorization:_Basic
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x100], 0xd
call fcn.0040ed74
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x40c82d
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x38]
push ecx
call fcn.0042d3a0
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040ed74
push 0x454678
lea eax, [esp + 0x98]
push eax
call fcn.0040ed74
lea esi, [esp + 0x38]
call fcn.0042d210
push edi
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x100], 0xb
call fcn.00401308
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x94]
push eax
add edi, 2
call fcn.0040f088
push 0
push 1
lea ecx, [esp + 0x9c]
call fcn.00401308
xor edi, edi
lea eax, [esp + 0x20]
mov byte [esp + 0xf8], 0
call fcn.0040f5f7
push edi
push 1
lea ecx, [esp + 0xb8]
call fcn.00401308
jmp 0x40c8c7
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x18], 0x10
mov edi, dword [esi + 0x14]
jb 0x40c8d5
mov esi, dword [esi + 4]
jmp 0x40c8d8
add esi, 4
push edi
push esi
mov esi, ebx
call fcn.0040bbba
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
jmp 0x40c8ee
xor eax, eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004347e5
mov esp, ebp
pop ebp
ret 0xc