Function at 0x4674c0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddd16
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.00468360
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 0x46753c
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 0x467559
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 0x467576
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 0x467593
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 9
call fcn.00479d20
mov ecx, dword [eax + 4]
cmp ecx, 6
ja 0x4675b7
jne 0x4675bc
cmp dword [eax + 8], 3
jb 0x4675bc
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.00467c40
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 0x467639
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x467639
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 0x467639
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 0x467669
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.0047e450
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x51d3f8
push eax
call fcn.004acc20
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 0x4676ac
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.0047e450
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x51d3f8
push eax
call fcn.004acc20
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 0x4676d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x467683
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x4676f9
push str.Unable_to_set_WinHTTP_timeouts_
jmp 0x467648
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.00493bec
mov esp, ebp
pop ebp
ret 4