Function at 0x5e3990
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x686b88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x75e7a4]
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
nop dword [eax + eax]
push ebx
mov ecx, esi
call fcn.005e28c0
test al, al
je 0x5e3c2d
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x15a], 0
je 0x5e3a32
mov ecx, dword [esi + 0x24]
cmp dword [ecx + 0x10], 0
sete al
test al, al
jne 0x5e3a32
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
jb 0x5e3a05
mov eax, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x5e3a0f
mov edx, dword [ecx]
jmp 0x5e3a11
mov edx, ecx
push 0
push eax
mov eax, dword [ecx + 0x17c]
push edx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x5e3b80
mov eax, dword [esi + 0x24]
mov ecx, esi
push ebx
mov al, byte [eax + 0x15b]
call fcn.005e38e0
test al, al
je 0x5e3c17
push 0
push dword [esi + 0xb0]
lea edi, [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x5e3bf4
cmp byte [ebp + 0xc], 0
je 0x5e3a76
push edi
call fcn.005e3190
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.005e2f70
test al, al
je 0x5e3bb0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.005d6da0
add esp, 8
mov ecx, esi
push dword [ebp - 0x30]
call fcn.005e3220
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5e3b20
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x5e3bab
add eax, eax
cmp eax, 0x1000
jb 0x5e3b17
test cl, 0x1f
jne 0x5e3bab
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x5e3bab
sub ecx, eax
cmp ecx, 4
jb 0x5e3bab
cmp ecx, 0x23
ja 0x5e3bab
mov ecx, eax
push ecx
call fcn.004caec0
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 0x5e3bef
cmp dword [esi + 0x38], 0xb
jne 0x5e3c2d
mov eax, dword [esi + 0x24]
mov ecx, esi
mov byte [eax + 0x15a], 1
call fcn.005e2b60
cmp byte [ebp - 0x2a], 0
jne 0x5e3c2d
call fcn.005d1f50
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ebx, dword [ebp - 0x34]
add esp, 8
mov byte [ebp - 0x2a], 1
jmp 0x5e39d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.005e3410
call fcn.005d1f50
push str.Failed_to_set_the_proxy_credentials
push 0x7108ac
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x5e3c2d
call fcn.006321a4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5e3bef
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x5e3bab
add eax, eax
cmp eax, 0x1000
jb 0x5e3be6
test cl, 0x1f
jne 0x5e3bab
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x5e3bab
sub ecx, eax
cmp ecx, 4
jb 0x5e3bab
cmp ecx, 0x23
ja 0x5e3bab
mov ecx, eax
push ecx
call fcn.004caec0
add esp, 4
mov al, byte [ebp - 0x29]
jmp 0x5e3c2f
call fcn.005d1f50
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.005e3410
jmp 0x5e3c2d
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.00612996
mov esp, ebp
pop ebp
ret 8