Function at 0x475770
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6e03
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.00474450
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
xor eax, eax
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 7
mov word [esi + 0x9c], ax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], 7
mov word [esi + 0xb4], ax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], 7
mov word [esi + 0xcc], ax
mov dword [esi + 0xe4], 0xfde9
mov dword [esi + 0xe8], 1
mov dword [esi + 0xec], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], 7
mov word [esi + 0xec], ax
mov dword [esi + 0x104], eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], 7
mov word [esi + 0x104], ax
mov byte [ebp - 4], 0xf
mov dword [esi + 0x11c], 0xfde9
mov dword [esi + 0x120], eax
test edi, edi
jne 0x4758db
call fcn.0043b980
test al, al
mov ecx, 4
cmovne edi, ecx
push dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x10000000
push 0
push 0
push edi
push str.Avast_SimpleHttp_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
mov ecx, esi
call fcn.00476890
mov eax, dword [esi]
test eax, eax
je 0x475997
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x80
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4759b9
or dword [ebp - 0x14], 0x200
call fcn.0043b900
test al, al
je 0x47593d
or dword [ebp - 0x14], 0x800
push 4
lea eax, [ebp - 0x14]
push eax
push 0x54
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47595c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4759db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4759fd
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret 0x14
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043e110
push 0x5057bc
lea eax, [ebp - 0x28]
push eax
call fcn.004a0209
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00476970
push 0x5057bc
lea eax, [ebp - 0x28]
push eax
call fcn.004a0209
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00476970
push 0x5057bc
lea eax, [ebp - 0x28]
push eax
call fcn.004a0209
push str.Unable_to_set_WinHTTP_timeouts_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043e110
push 0x5057bc
lea eax, [ebp - 0x28]
push eax
call fcn.004a0209
int3