Function at 0x40cbf4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44baa2
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x45e0a0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x45e0a0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, ebx
call fcn.0040c118
test eax, eax
je 0x40ce8f
xor esi, esi
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
call fcn.00401353
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0xe4]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0xb4], esi
call fcn.00401038
push 0x454678
lea eax, [esp + 0x48]
push eax
call fcn.0040ed74
lea eax, [ebx + 0x100]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x104]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0040efac
test al, al
jne 0x40cd25
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40ccc1
call fcn.00434d0f
mov edi, dword [esp + 0x18]
cmp edi, dword [esi + 4]
jne 0x40cccf
call fcn.00434d0f
push 0xffffffffffffffff
push 0
lea eax, [edi + 0xc]
lea esi, [esp + 0x4c]
call fcn.00404ca0
push 0x4546e4
mov eax, esi
push eax
call fcn.0040ed74
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 4]
jne 0x40ccfa
call fcn.00434d0f
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x28]
lea esi, [esp + 0x4c]
call fcn.00404ca0
push 0x454678
mov eax, esi
push eax
call fcn.0040ed74
lea esi, [esp + 0x14]
call fcn.0040f652
jmp 0x40cc99
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x40ce47
push str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [esp + 0x80]
call fcn.004031cb
mov byte [esp + 0xa8], 1
cmp dword [ebx + 0x50], edi
je 0x40ce1d
cmp dword [ebx + 0x6c], edi
je 0x40ce1d
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 0xf
call fcn.00401353
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x3c]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 2
call fcn.00401038
push 0x45467c
lea eax, [esp + 0x64]
push eax
call fcn.0040ed74
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x58]
lea esi, [esp + 0x68]
call fcn.00404ca0
lea eax, [esp + 0x24]
push eax
call fcn.0042d1c0
push str.Proxy_Authorization:_Basic
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xb0], 3
call fcn.0040ed74
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x40cdd6
lea eax, [esp + 0x64]
lea ecx, [esp + 0x24]
push ecx
call fcn.0042d3a0
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0040ed74
push 0x454678
lea eax, [esp + 0x80]
push eax
call fcn.0040ed74
lea esi, [esp + 0x24]
call fcn.0042d210
push edi
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], 1
call fcn.00401308
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.00404ca0
push edi
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 0
call fcn.00401308
push 0x454678
lea eax, [esp + 0x48]
push eax
call fcn.0040ed74
cmp dword [esp + 0x5c], 0x10
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
jae 0x40ce6d
lea eax, [esp + 0x48]
push ecx
push eax
mov esi, ebx
call fcn.0040bbba
xor ecx, ecx
cmp dword [esp + 0x14], eax
push edi
sete cl
push 1
mov esi, ecx
lea ecx, [esp + 0x4c]
call fcn.00401308
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004347e5
mov esp, ebp
pop ebp
ret