Function at 0x47f4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ae182
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x38]
push 0
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esi + 0x38]
mov byte [esp + 0x30], 1
mov eax, dword [edx]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, 0x4c9e10
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4c9e10
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esi, 0x48
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push esi
call dword [sym.imp.MSVCP60.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049bd60
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
ja 0x47f58d
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.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__::erase_unsigned_int__unsigned_int_]
jmp 0x47f59c
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.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__::append_unsigned_int__char_]
mov ecx, dword [esp + 0xc]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x47f5ac
mov ecx, edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x47f5b6
mov eax, edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0049bdd0
add esp, 0xc
test eax, eax
jne 0x47f602
push 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edi, str.Proxy_Authorization:_Basic
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push ebp
mov ebp, dword [esp + 0x40]
not ecx
mov edx, dword [ebp + 8]
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x47f62f
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x47f66e
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x47f66e
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, str.Proxy_Authorization:_Basic
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
mov edi, eax
cmp ecx, edi
jae 0x47f682
mov edi, ecx
sub eax, dword [ebp + 8]
cmp eax, edi
ja 0x47f68f
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x47f6d6
mov ebx, dword [ebp + 8]
push 0
add ebx, edi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x47f6d6
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x47f6b5
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp + 4]
push ebx
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, 0x4c7658
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x47f6fd
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x47f73c
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x47f73c
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, 0x4c7658
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x14]
xor esi, esi
pop ebp
cmp ecx, esi
pop ebx
je 0x47f764
mov al, byte [ecx - 1]
test al, al
je 0x47f75a
cmp al, 0xff
je 0x47f75a
dec al
mov byte [ecx - 1], al
jmp 0x47f764
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
cmp ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x47f794
mov al, byte [ecx - 1]
test al, al
je 0x47f78a
cmp al, 0xff
je 0x47f78a
dec al
mov byte [ecx - 1], al
jmp 0x47f794
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4