Function at 0x5476c0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5504d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x59de30]
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 esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x29], 1
mov byte [ebp - 0x2a], 0
jmp 0x547700
push ebx
mov ecx, esi
call fcn.00546260
test al, al
je 0x5478d8
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x152], 0
je 0x54775d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x10], 0
je 0x54775d
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
jb 0x547730
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x54773a
mov edx, dword [eax]
jmp 0x54773c
mov edx, eax
mov eax, dword [eax + 0x170]
push 0
push ecx
push edx
push eax
push 1
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x547861
mov eax, dword [esi + 0x24]
push ebx
mov al, byte [eax + 0x153]
mov ecx, esi
call fcn.005475a0
test al, al
je 0x5478c2
lea edi, [esi + 0xac]
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x54789f
cmp byte [ebp + 0xc], 0
je 0x54779d
push edi
call fcn.00546cc0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x13
mov ecx, esi
call fcn.00546a40
test al, al
je 0x547889
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0053b040
add esp, 8
mov ecx, esi
push dword [ebp - 0x30]
call fcn.00546d50
cmp dword [ebp - 0x14], 8
mov bl, al
mov dword [ebp - 4], 0xffffffff
jb 0x547805
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
je 0x54789a
cmp dword [esi + 0x38], 0xb
jne 0x5478d8
mov eax, dword [esi + 0x24]
mov ecx, esi
mov byte [eax + 0x152], 1
call fcn.00546600
cmp byte [ebp - 0x2a], 0
jne 0x5478d8
call fcn.00536cd0
mov ecx, dword [eax]
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push eax
call dword [ecx + 4]
mov ebx, dword [ebp - 0x34]
add esp, 8
mov byte [ebp - 0x2a], 1
jmp 0x547700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00546fc0
call fcn.00536cd0
mov ecx, dword [eax]
push str.Failed_to_set_the_proxy_credentials
push 0x557600
push eax
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x5478d8
cmp dword [ebp - 0x14], 8
jb 0x54789a
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
mov al, byte [ebp - 0x29]
jmp 0x5478da
call fcn.00536cd0
mov ecx, dword [eax]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
push eax
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00546fc0
jmp 0x5478d8
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xac], 0
xor al, al
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.004da4c1
mov esp, ebp
pop ebp
ret 8