Function at 0x467150
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x520078]
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 esi, esi
mov dword [ebp - 0x34], edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [ebp - 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call fcn.00467ff0
mov dword [edi + 0x84], esi
mov dword [edi + 0x88], esi
mov dword [edi + 0x8c], esi
lea eax, [edi + 0x98]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], esi
cmp dword [eax + 0x14], 8
jb 0x4671cc
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 0x4671e9
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 0x467206
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 0x467223
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 9
call fcn.004799b0
mov ecx, dword [eax + 4]
cmp ecx, 6
ja 0x467247
jne 0x46724c
cmp dword [eax + 8], 3
jb 0x46724c
mov esi, 4
push 0x10000000
push 0
push 0
push esi
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.004678d0
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], 0xa
test ebx, ebx
je 0x4672c9
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4672c9
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e3310]
mov ecx, ebx
call esi
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x4672c9
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, ebx
call esi
mov byte [ebp - 4], 9
mov eax, dword [edi]
test eax, eax
jne 0x4672f9
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047e0e0
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x51d458
push eax
call fcn.004ac830
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 0x46733c
push dword [ebp - 0x14]
push str.Unable_to_set_WinHTTP_protocols___08lx__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047e0e0
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x51d458
push eax
call fcn.004ac830
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 0x467362
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x467313
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x467389
push str.Unable_to_set_WinHTTP_timeouts_
jmp 0x4672d8
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.0049384c
mov esp, ebp
pop ebp
ret 4