Function at 0x4069b0
Capabilities:
Set http header

Disassembly:
push 0xffffffffffffffff
push 0x412afc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x406d2a
xor eax, eax
mov ecx, 0x81
mov dword [esp + 0x5c], eax
lea edi, [esp + 0x76]
mov dword [esp + 0x60], eax
mov word [esp + 0x74], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x58], 3
test eax, eax
jne 0x406a16
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x104
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ebx, dword [esp + 0xa98]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
lea eax, [esp + 0x58]
lea edx, [esp + 0x74]
push 0xc
push eax
push 0x26
push ebx
mov dword [esp + 0x6c], edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406a5d
call ebp
mov dword [esi + 0xc4], eax
mov ecx, dword [esi + 0xf4]
test ecx, ecx
je 0x406d2a
mov eax, dword [esi + 0xf0]
test eax, eax
jne 0x406a7a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ecx
push eax
push 0x1002
push ebx
call edi
test eax, eax
jne 0x406a90
call ebp
mov dword [esi + 0xc4], eax
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x406abf
mov eax, dword [esi + 0x100]
test eax, eax
jne 0x406aa9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ecx
push eax
push 0x1003
push ebx
call edi
test eax, eax
jne 0x406abf
call ebp
mov dword [esi + 0xc4], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x27e]
mov word [esp + 0x27c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
stosw word es:[edi], ax
mov eax, dword [esi + 0x100]
test eax, eax
jne 0x406aed
mov eax, ecx
mov esi, dword [esi + 0xf0]
test esi, esi
je 0x406af9
mov ecx, esi
push eax
push ecx
lea ecx, [esp + 0x284]
push str._s:_s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov dl, byte [esp + 0x23]
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x28]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x406b6a
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x27c]
push esi
push ecx
push edx
call fcn.00407840
add esp, 0xc
lea ecx, [esp + 0x28]
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0xa8c], 0
call fcn.0040b5e0
add esp, 8
mov eax, dword [esp + 0x4c]
mov byte [esp + 0xa84], 1
test eax, eax
jne 0x406b9c
mov eax, 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 [esp + 0x50]
push 0
push edx
push eax
call fcn.00407760
add esp, 0xc
mov ebx, eax
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x38]
push 0
mov byte [esp + 0x3c], 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 edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
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 0x406c02
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
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_]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x64]
push eax
push ecx
mov byte [esp + 0xa8c], 2
call fcn.0040b7a0
push eax
lea edx, [esp + 0x24]
push str.Proxy_Authorization:_Basic
push edx
mov byte [esp + 0xa98], 3
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0x14
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa88], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa88], 5
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 eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
jne 0x406c6b
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xa8c]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x406c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc4], eax
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x20]
add esp, 4
cmp ecx, esi
je 0x406cc8
mov al, byte [ecx - 1]
test al, al
je 0x406cbc
cmp al, 0xff
je 0x406cbc
dec al
mov byte [ecx - 1], al
jmp 0x406cc8
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x406cf8
mov al, byte [ecx - 1]
test al, al
je 0x406cee
cmp al, 0xff
je 0x406cee
dec al
mov byte [ecx - 1], al
jmp 0x406cf8
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], esi
cmp ecx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x406d2a
mov al, byte [ecx - 1]
test al, al
je 0x406d1e
cmp al, 0xff
je 0x406d1e
dec al
mov byte [ecx - 1], al
jmp 0x406d2a
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xa7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa78
ret 4