Function at 0x4572e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afa66
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x4c], 0
jne 0x45731e
mov eax, dword [ebp + 8]
jmp 0x457684
lea ecx, [ebp - 0xc18]
call fcn.004372e0
lea ecx, [ebp - 0xc14]
mov dword [ebp - 4], 0
call fcn.004372e0
cmp dword [ebp + 8], 0x197
mov ebx, 0
mov byte [ebp - 4], 1
sete bl
mov dword [ebp - 0xc30], 0
add ebx, 0x28
nop dword [eax + eax]
lea eax, [ebp - 0xc30]
mov dword [ebp - 0xc1c], 0x400
push eax
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc10]
push eax
push 0
push ebx
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4573b0
lea eax, [ebp - 0xc10]
push eax
push str.Found_auth_scheme:__ws_n
push 2
call fcn.00478ee8
add esp, 4
push eax
call fcn.00413cd0
add esp, 0xc
jmp 0x457360
mov ebx, dword [ebp + 8]
mov ecx, edi
cmp ebx, 0x197
jne 0x4573f7
push str.Proxy_authentication_required.
push ebx
mov dword [ebp - 0xc2c], 0x1002
mov dword [ebp - 0xc1c], 0x1003
mov dword [ebp - 0xc24], str.ProxyUN
mov dword [ebp - 0xc28], str.ProxyPwd
call fcn.00458350
mov eax, dword [edi]
mov esi, dword [eax + 0x50]
jmp 0x45742f
push str.WWW_server_requires_authentication.
push ebx
mov dword [ebp - 0xc2c], 0x1000
mov dword [ebp - 0xc1c], 0x1001
mov dword [ebp - 0xc24], str.Username
mov dword [ebp - 0xc28], str.Password
call fcn.00458350
mov eax, dword [edi]
mov esi, dword [eax + 0x54]
lea ecx, [ebp - 0xc14]
push ecx
lea ecx, [ebp - 0xc18]
push ecx
mov ecx, esi
call dword [0x4b24e4]
mov ecx, edi
call esi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00470010
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00470010
mov eax, dword [ebp - 0xc18]
add esp, 0x18
cmp dword [eax - 8], 0
jne 0x457588
mov ecx, dword [ebp - 0xc14]
cmp dword [ecx - 8], 0
jne 0x457588
push 0x80000002
push 0
lea ecx, [ebp - 0xc40]
call fcn.004385b0
push 0xf013f
push 0x80000002
push str.SoftwareCredantCMGShieldProxySettings
lea ecx, [ebp - 0xc40]
mov byte [ebp - 4], 2
call fcn.004388a0
test eax, eax
je 0x4575ca
push 0
push 0x4d99b4
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc20], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xc24]
lea ecx, [ebp - 0xc40]
call fcn.00438730
test eax, eax
jne 0x4575ca
cmp word [ebp - 0x410], ax
je 0x4575ca
push eax
push 0x4d99b4
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc20], 0x400
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0xc28]
lea ecx, [ebp - 0xc40]
call fcn.00438730
test eax, eax
jne 0x4575ca
cmp word [ebp - 0x810], ax
je 0x4575ca
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc18]
call fcn.00437360
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc14]
call fcn.00437360
lea ecx, [ebp - 0xc40]
mov byte [ebp - 4], 1
call fcn.004385e0
mov eax, dword [ebp - 0xc18]
push dword [eax - 8]
push eax
push dword [ebp - 0xc2c]
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x457655
mov eax, dword [ebp - 0xc14]
push dword [eax - 8]
push eax
push dword [ebp - 0xc1c]
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4575da
push str.Could_not_set_password_for_authentication.
jmp 0x45765a
lea ecx, [ebp - 0xc40]
call fcn.004385e0
jmp 0x45766c
mov esi, 0x20000137
cmp ebx, 0x197
jne 0x457607
lea ecx, [ebp - 0xc18]
push ecx
lea ecx, [edi + 0x50]
call fcn.00436890
lea eax, [ebp - 0xc14]
push eax
lea ecx, [edi + 0x54]
call fcn.00436890
jmp 0x45766a
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx - 8]
test edx, edx
je 0x45766a
mov eax, dword [edi + 0x54]
cmp dword [eax - 8], 0
je 0x45766a
push edx
push ecx
push 0x1002
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x45764e
mov eax, dword [edi + 0x54]
push dword [eax - 8]
push eax
push 0x1003
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x45764e
push str.Proxy_authentication_information_is_set
jmp 0x45765c
push str.Could_not_set_proxy_authentication_information
jmp 0x45765c
push str.Could_not_set_username_for_authentication.
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00458350
mov ebx, esi
lea ecx, [ebp - 0xc14]
call fcn.00436850
lea ecx, [ebp - 0xc18]
call fcn.00436850
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret 4