Function at 0x411f60
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454140
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x471078]
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
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 0x2c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call fcn.00414500
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
lea eax, [edi + 0x98]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x411fdc
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xb0]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x411ff9
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xcc]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x412016
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xe4]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x412033
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push 0x11c
push ecx
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 9
push eax
call fcn.00438180
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call fcn.004153f0
mov esi, eax
mov ecx, eax
call dword [0x4572d8]
call esi
mov eax, dword [ebp - 0x14c]
cmp eax, 6
jne 0x412089
cmp dword [ebp - 0x148], 3
jae 0x41208b
jmp 0x412090
jbe 0x412090
mov ebx, 4
push dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x10000000
push 0
push 0
push ebx
push str.Avast_SimpleHttp_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
mov ecx, edi
call fcn.004126a0
mov eax, dword [edi]
test eax, eax
jne 0x4120df
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x46edb0
push eax
call fcn.00438104
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
jne 0x412122
push dword [ebp - 0x14]
push str.Unable_to_set_WinHTTP_protocols___08lx__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b5b0
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x46edb0
push eax
call fcn.00438104
or dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x14]
push 4
push eax
push 0x54
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x412148
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4120f9
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x41216f
push str.Unable_to_set_WinHTTP_timeouts_
jmp 0x4120be
mov eax, edi
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.0041e04a
mov esp, ebp
pop ebp
ret 4