Function at 0x58f190
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x67d070]
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 edi, dword [ebp + 8]
xor bh, bh
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x31], 1
nop dword [eax]
push edi
mov ecx, esi
call fcn.0058dde0
test al, al
je 0x58f47e
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x162], 0
je 0x58f23d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x184], 0
je 0x58f23d
mov edx, dword [esi + 0x24]
cmp dword [edx + 0x18], 0
lea ecx, [edx + 8]
sete al
test al, al
jne 0x58f23d
cmp dword [edx + 0x34], 8
lea eax, [edx + 0x20]
jb 0x58f214
mov eax, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x58f21c
mov ecx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x184]
push ecx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x58f3ae
mov eax, dword [esi + 0x24]
mov ecx, esi
push edi
mov al, byte [eax + 0x163]
call fcn.0058f0c0
test al, al
je 0x58f468
push 0
push dword [esi + 0xb0]
lea edi, [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x58f445
cmp byte [ebp + 0xc], 0
je 0x58f281
push edi
call fcn.0058e8e0
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
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
push 0x13
call fcn.0058e680
test al, al
je 0x58f401
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00582a60
add esp, 8
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0058e990
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x58f32b
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x58f3d9
add eax, eax
cmp eax, 0x1000
jb 0x58f322
test cl, 0x1f
jne 0x58f3d9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x58f3d9
sub ecx, eax
cmp ecx, 4
jb 0x58f3d9
cmp ecx, 0x23
ja 0x58f3d9
mov ecx, eax
push ecx
call fcn.00505e00
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 0x58f440
cmp dword [esi + 0x38], 0xb
jne 0x58f47e
mov eax, dword [esi + 0x24]
mov ecx, esi
mov byte [eax + 0x162], 1
call fcn.0058e220
test bh, bh
jne 0x58f47e
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x184], 2
jne 0x58f391
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 2
push eax
push 0x4d
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x58f3de
call fcn.0057e620
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov edi, dword [ebp - 0x38]
add esp, 8
mov bh, 1
jmp 0x58f1d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.0058eb80
call fcn.0057e620
push str.Failed_to_set_the_proxy_credentials
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x58f47e
call fcn.005bc371
call fcn.0057e620
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x622628
push esi
call dword [edi + 0x24]
add esp, 0x10
jmp 0x58f47e
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x58f440
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x58f3d9
add eax, eax
cmp eax, 0x1000
jb 0x58f437
test cl, 0x1f
jne 0x58f3d9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x58f3d9
sub ecx, eax
cmp ecx, 4
jb 0x58f3d9
cmp ecx, 0x23
ja 0x58f3d9
mov ecx, eax
push ecx
call fcn.00505e00
add esp, 4
mov al, byte [ebp - 0x31]
jmp 0x58f480
call fcn.0057e620
push str.initHttpDownload:_failed_to_receive_the_response_from_server
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.0058eb80
jmp 0x58f47e
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 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.00599c70
mov esp, ebp
pop ebp
ret 8