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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c631
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.0040a2e0
test eax, eax
je 0x40b23a
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esi + 0xe0]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0xac], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x422764
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esi + 0x100]
mov eax, dword [eax]
lea ebx, [esi + 0xfc]
mov esi, ebx
mov edi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
test esi, esi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
je 0x40b051
cmp esi, ebx
je 0x40b057
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x20]
je 0x40b0cd
test esi, esi
jne 0x40b067
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x40b072
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [edi + 0xc]
push edx
lea ecx, [esp + 0x48]
call dword [0x41e134]
push 0x4227cc
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp edi, dword [esi + 4]
jne 0x40b09a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0x28
push edi
lea ecx, [esp + 0x48]
call dword [0x41e134]
push 0x422764
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea esi, [esp + 0x10]
call fcn.0040ddd0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x40b042
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x14], 0
je 0x40b1ed
push str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov bl, 1
xor esi, esi
mov byte [esp + 0xa8], bl
cmp dword [edi + 0x4c], esi
je 0x40b1cc
cmp dword [edi + 0x68], esi
je 0x40b1cc
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [edi + 0x38]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x422768
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [edi + 0x54]
push ecx
lea ecx, [esp + 0x64]
call dword [0x41e134]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push str.Proxy_Authorization:_Basic
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x40b188
lea eax, [esp + 0x64]
lea edx, [esp + 0x24]
push edx
call fcn.00401650
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x422764
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea esi, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0x60]
mov byte [esp + 0xa8], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x48]
call dword [0x41e134]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x422764
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov ebx, eax
jae 0x40b211
lea ecx, [esp + 0x48]
push eax
push ecx
mov esi, edi
call fcn.00409b30
xor ecx, ecx
cmp ebx, eax
sete cl
mov dword [esp + 0xa8], 0xffffffff
mov esi, ecx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
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.00413588
mov esp, ebp
pop ebp
ret