Function at 0x469950
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d74f4
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x517074]
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 - 0x28], 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.0046a670
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
lea eax, [edi + 0x8c]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x4699c6
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xa4]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4699e3
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push 0x11c
push ecx
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 7
push eax
call fcn.004a5940
add esp, 0xc
mov dword [ebp - 0x144], 0x11c
lea eax, [ebp - 0x144]
push eax
call fcn.0046b4e0
mov esi, eax
mov ecx, eax
call dword [0x4db310]
call esi
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x469a39
cmp dword [ebp - 0x13c], 3
jae 0x469a3b
jmp 0x469a40
jbe 0x469a40
mov ebx, 4
push 0x10000000
push 0
push 0
push ebx
push str.Avast_SimpleHttp_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.0046a030
mov eax, dword [ebp - 0x18]
mov ebx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov byte [ebp - 4], 8
test ebx, ebx
je 0x469abd
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x469abd
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x469abd
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
mov byte [ebp - 4], 7
mov eax, dword [edi]
test eax, eax
jne 0x469aed
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x513ed8
push eax
call fcn.004a4f7b
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 0x469b30
push dword [ebp - 0x14]
push str.Unable_to_set_WinHTTP_protocols___08lx__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00477100
add esp, 0x10
lea eax, [ebp - 0x24]
push 0x513ed8
push eax
call fcn.004a4f7b
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 0x469b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x469b07
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x469b7d
push str.Unable_to_set_WinHTTP_timeouts_
jmp 0x469acc
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.0048bc9e
mov esp, ebp
pop ebp
ret 4